Cleaned up scripts folder and moved some stuff
This commit is contained in:
parent
787982c35b
commit
a2f69c646a
33 changed files with 42 additions and 142 deletions
|
@ -31,8 +31,8 @@ dotfiles:
|
||||||
dst: ~/.config/nvim/coc-settings.json
|
dst: ~/.config/nvim/coc-settings.json
|
||||||
src: .config/nvim/coc-settings.json
|
src: .config/nvim/coc-settings.json
|
||||||
d_scripts:
|
d_scripts:
|
||||||
dst: ~/Scripts
|
dst: ~/.scripts
|
||||||
src: Scripts
|
src: .scripts
|
||||||
d_sway:
|
d_sway:
|
||||||
dst: ~/.config/sway
|
dst: ~/.config/sway
|
||||||
src: .config/sway
|
src: .config/sway
|
||||||
|
|
|
@ -4,3 +4,4 @@ set $mod Mod4
|
||||||
set $term alacritty
|
set $term alacritty
|
||||||
set $gnome-schema org.gnome.desktop.interface
|
set $gnome-schema org.gnome.desktop.interface
|
||||||
set $wallpaper ~/Pictures/Wallpapers/random/$(ls ~/Pictures/Wallpapers/random | sort -R | tail -n 1)
|
set $wallpaper ~/Pictures/Wallpapers/random/$(ls ~/Pictures/Wallpapers/random | sort -R | tail -n 1)
|
||||||
|
set $scripts ~/.config/sway/scripts
|
||||||
|
|
|
@ -6,8 +6,34 @@ bindsym $mod+Return exec $term
|
||||||
# kill focused window
|
# kill focused window
|
||||||
bindsym $mod+w kill
|
bindsym $mod+w kill
|
||||||
|
|
||||||
# start your launcher
|
# Modes for controlling gaps
|
||||||
bindsym $mod+Shift+p exec rofi-pass --bmarks
|
set $mode_gaps Gaps: (o) outer, (i) inner
|
||||||
|
set $mode_gaps_outer Outer Gaps: j|k|0|r|i
|
||||||
|
set $mode_gaps_inner Inner Gaps: j|k|0|r|o
|
||||||
|
bindsym $mod+g mode "$mode_gaps"
|
||||||
|
|
||||||
|
mode "$mode_gaps" {
|
||||||
|
bindsym o mode "$mode_gaps_outer"
|
||||||
|
bindsym i mode "$mode_gaps_inner"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
mode "$mode_gaps_inner" {
|
||||||
|
bindsym j gaps inner all minus 1
|
||||||
|
bindsym k gaps inner all plus 1
|
||||||
|
bindsym 0 gaps inner all set 0
|
||||||
|
bindsym r gaps inner all set 10
|
||||||
|
bindsym i mode "$mode_gaps_outer"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_outer" {
|
||||||
|
bindsym j gaps outer all minus 1
|
||||||
|
bindsym k gaps outer all plus 1
|
||||||
|
bindsym 0 gaps outer all set 0
|
||||||
|
bindsym r gaps outer all set 10
|
||||||
|
bindsym o mode "$mode_gaps_inner"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
# Drag floating windows by holding down $mod and left mouse button.
|
# Drag floating windows by holding down $mod and left mouse button.
|
||||||
# Resize them with right mouse button + $mod.
|
# Resize them with right mouse button + $mod.
|
||||||
|
@ -27,7 +53,7 @@ bindsym --locked XF86Search output eDP-1 toggle
|
||||||
|
|
||||||
# FZF
|
# FZF
|
||||||
# exit menu
|
# exit menu
|
||||||
bindsym $mod+Shift+e exec $term --class fzf-launcher -e $HOME/Scripts/sway-exit.sh
|
bindsym $mod+Shift+e exec $term --class fzf-launcher -e $scripts/exit.sh
|
||||||
# launch a program
|
# launch a program
|
||||||
bindsym $mod+d exec wofi
|
bindsym $mod+d exec wofi
|
||||||
bindsym $mod+Shift+d exec wofi --show run
|
bindsym $mod+Shift+d exec wofi --show run
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# vim:ft=i3config
|
# vim:ft=i3config
|
||||||
|
|
||||||
exec {
|
exec {
|
||||||
$HOME/Scripts/swayidle.sh
|
$scripts/idle.sh
|
||||||
autotiling
|
autotiling
|
||||||
redshift-gtk -m wayland
|
redshift-gtk -m wayland
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
swaylock="$HOME/Scripts/swaylock.sh"
|
swaylock="$HOME/.config/sway/scripts/lock.sh"
|
||||||
screenon="swaymsg 'output * dpms on'"
|
screenon="swaymsg 'output * dpms on'"
|
||||||
screenoff="swaymsg 'output * dpms off'"
|
screenoff="swaymsg 'output * dpms off'"
|
||||||
swayidle \
|
swayidle \
|
||||||
|
@ -10,4 +10,4 @@ swayidle \
|
||||||
timeout 600 "loginctl lock-session" \
|
timeout 600 "loginctl lock-session" \
|
||||||
timeout 610 "$screenoff" \
|
timeout 610 "$screenoff" \
|
||||||
resume "$screenon; lqsd -r" \
|
resume "$screenon; lqsd -r" \
|
||||||
before-sleep "playerctl pause; loginctl lock-session"
|
before-sleep "playerctl pause; loginctl lock-session" \
|
|
@ -1,10 +1,3 @@
|
||||||
# This file is written by xdg-user-dirs-update
|
|
||||||
# If you want to change or add directories, just edit the line you're
|
|
||||||
# interested in. All local changes will be retained on the next run.
|
|
||||||
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
|
|
||||||
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
|
|
||||||
# absolute path. No other format is supported.
|
|
||||||
#
|
|
||||||
XDG_DESKTOP_DIR="$HOME/Desktop"
|
XDG_DESKTOP_DIR="$HOME/Desktop"
|
||||||
XDG_DOWNLOAD_DIR="$HOME/Downloads"
|
XDG_DOWNLOAD_DIR="$HOME/Downloads"
|
||||||
XDG_TEMPLATES_DIR="$HOME/Templates"
|
XDG_TEMPLATES_DIR="$HOME/Templates"
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"format": "{}",
|
"format": "{}",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"exec": "$HOME/Scripts/mediaplayer.py 2>/dev/null",
|
"exec": "$HOME/.config/waybar/scripts/mediaplayer.py 2>/dev/null",
|
||||||
"max-length": 50,
|
"max-length": 50,
|
||||||
"on-click": "playerctl play-pause",
|
"on-click": "playerctl play-pause",
|
||||||
"on-click-right": "playerctl next",
|
"on-click-right": "playerctl next",
|
||||||
|
|
|
@ -18,6 +18,7 @@ export GOPATH=~/.bin/go
|
||||||
|
|
||||||
# fzf settings
|
# fzf settings
|
||||||
export FZF_DEFAULT_COMMAND='rg --files --hidden 2>/dev/null'
|
export FZF_DEFAULT_COMMAND='rg --files --hidden 2>/dev/null'
|
||||||
|
export FZF_DEFAULT_OPTS='-m --bind ctrl-a:select-all,ctrl-d:deselect-all,ctrl-t:toggle-all'
|
||||||
export FZF_COMPLETION_TRIGGER='**'
|
export FZF_COMPLETION_TRIGGER='**'
|
||||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||||
export FZF_CTRL_T_OPTS='--preview "/usr/bin/cat {} | nvimpager -c "'
|
export FZF_CTRL_T_OPTS='--preview "/usr/bin/cat {} | nvimpager -c "'
|
||||||
|
|
|
@ -140,7 +140,6 @@ update() {
|
||||||
zinit update -p
|
zinit update -p
|
||||||
$HOME/.tmux/plugins/tpm/bin/update_plugins all
|
$HOME/.tmux/plugins/tpm/bin/update_plugins all
|
||||||
}
|
}
|
||||||
{%@@ if profile == "Moria" @@%}
|
|
||||||
|
|
||||||
docker-update() {
|
docker-update() {
|
||||||
for dir in $HOME/Git/dotfiles/docker/*; do
|
for dir in $HOME/Git/dotfiles/docker/*; do
|
||||||
|
@ -151,7 +150,6 @@ update() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
{%@@ endif @@%}
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
1=base
|
1=base
|
||||||
fi
|
fi
|
||||||
|
@ -166,11 +164,9 @@ update() {
|
||||||
plugins)
|
plugins)
|
||||||
plugins
|
plugins
|
||||||
;;
|
;;
|
||||||
{%@@ if profile == "Moria" @@%}
|
|
||||||
docker)
|
docker)
|
||||||
docker-update
|
docker-update
|
||||||
;;
|
;;
|
||||||
{%@@ endif @@%}
|
|
||||||
*)
|
*)
|
||||||
printf "$1: not a valid action"
|
printf "$1: not a valid action"
|
||||||
;;
|
;;
|
||||||
|
@ -187,7 +183,7 @@ tether() { adb shell su -c "service call connectivity 33 i32 1 s16 me" > /dev/nu
|
||||||
alias reflect='sudo reflector --latest 200 --threads 8 --verbose --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist'
|
alias reflect='sudo reflector --latest 200 --threads 8 --verbose --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist'
|
||||||
|
|
||||||
# better ls
|
# better ls
|
||||||
alias ls='ls_extended -I'
|
alias ls='ls_extended -Ih'
|
||||||
|
|
||||||
# default icon for notify-send
|
# default icon for notify-send
|
||||||
alias notify-send='notify-send --icon=alarm'
|
alias notify-send='notify-send --icon=alarm'
|
||||||
|
|
|
@ -7,7 +7,7 @@ import json
|
||||||
import struct
|
import struct
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
VERSION = '7.1b2'
|
VERSION = '7.2.2'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.stdin.buffer
|
sys.stdin.buffer
|
||||||
|
@ -63,6 +63,8 @@ def install():
|
||||||
}
|
}
|
||||||
locations = {
|
locations = {
|
||||||
'chrome': os.path.join(home_path, '.config', 'google-chrome', 'NativeMessagingHosts'),
|
'chrome': os.path.join(home_path, '.config', 'google-chrome', 'NativeMessagingHosts'),
|
||||||
|
'chrome-beta': os.path.join(home_path, '.config', 'google-chrome-beta', 'NativeMessagingHosts'),
|
||||||
|
'chrome-unstable': os.path.join(home_path, '.config', 'google-chrome-unstable', 'NativeMessagingHosts'),
|
||||||
'chromium': os.path.join(home_path, '.config', 'chromium', 'NativeMessagingHosts'),
|
'chromium': os.path.join(home_path, '.config', 'chromium', 'NativeMessagingHosts'),
|
||||||
'firefox': os.path.join(home_path, '.mozilla', 'native-messaging-hosts'),
|
'firefox': os.path.join(home_path, '.mozilla', 'native-messaging-hosts'),
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
if cat /proc/cmdline | grep -q "video=eDP-1:d"; then
|
if cat /proc/cmdline | grep -q "video=eDP-1:d"; then
|
||||||
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && kodi
|
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && kodi
|
||||||
else
|
else
|
||||||
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && $HOME/Scripts/sway-run.sh > /dev/null 2>&1
|
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && $HOME/.config/sway/scripts/run.sh > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
mbsync -a
|
|
||||||
notmuch new
|
|
||||||
notifymuch
|
|
|
@ -1,3 +0,0 @@
|
||||||
sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d
|
|
||||||
sudo ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d
|
|
||||||
sudo ln -s /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d
|
|
|
@ -1,64 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
TYPE=$(cat <<EOF | fzf
|
|
||||||
Region
|
|
||||||
One monitor
|
|
||||||
All monitors
|
|
||||||
EOF
|
|
||||||
);
|
|
||||||
|
|
||||||
LOC=$(cat <<EOF | fzf
|
|
||||||
Copy to clipboard
|
|
||||||
Save as
|
|
||||||
Save with a generated name
|
|
||||||
EOF
|
|
||||||
);
|
|
||||||
|
|
||||||
swaymsg move container to workspace 9
|
|
||||||
|
|
||||||
case "$TYPE" in
|
|
||||||
Region)
|
|
||||||
case "$LOC" in
|
|
||||||
|
|
||||||
Copy to clipboard)
|
|
||||||
grim -g "$(slurp)" | wl-copy
|
|
||||||
;;
|
|
||||||
Save as)
|
|
||||||
grim -g "$(slurp)"
|
|
||||||
;;
|
|
||||||
Save with a generated name)
|
|
||||||
grim -g "$(slurp)" $(xdg-user-dir PICTURES)/Screenshots/$(date +'%Y-%m-%d-%H%M%S.png')
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
One monitor)
|
|
||||||
case "$LOC" in
|
|
||||||
|
|
||||||
Copy to clipboard)
|
|
||||||
;;
|
|
||||||
Save as)
|
|
||||||
;;
|
|
||||||
Save with a generated name)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
All monitors)
|
|
||||||
case "$LOC" in
|
|
||||||
|
|
||||||
Copy to clipboard)
|
|
||||||
;;
|
|
||||||
Save as)
|
|
||||||
;;
|
|
||||||
Save with a generated name)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
exit 1
|
|
||||||
esac
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
displays=$(xrandr | grep " connected" | wc -l)
|
|
||||||
if [ $displays -eq 1 ]; then
|
|
||||||
i3lock-fancy; echo "systemctl suspend" > /home/reekymarko/Scripts/suspendcommand
|
|
||||||
else
|
|
||||||
echo "won't suspend, external display connected"
|
|
||||||
echo " " > /home/reekymarko/Scripts/suspendcommand
|
|
||||||
fi
|
|
|
@ -1,13 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
# Terminate already running bar instances
|
|
||||||
killall -q polybar
|
|
||||||
|
|
||||||
# Wait until the processes have been shut down
|
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|
||||||
|
|
||||||
# Launch bar1 and bar2
|
|
||||||
polybar top &
|
|
||||||
|
|
||||||
|
|
||||||
echo "Bars launched..."
|
|
|
@ -1,26 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
|
|
||||||
gr="FocalTechPS/2 FocalTech Touchpad"
|
|
||||||
#gr="SynPS/2 Synaptics TouchPad"
|
|
||||||
|
|
||||||
|
|
||||||
#Creates a file if it does not exist to store the 0 or 1 bit to check if touchpad is enabled or disabled. Set to 0 by default
|
|
||||||
if [ ! -f .touchpad ];
|
|
||||||
then
|
|
||||||
echo 0 > .touchpad;
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep -q 0 ".touchpad";
|
|
||||||
then
|
|
||||||
xinput enable "$gr";
|
|
||||||
echo 1 > .touchpad;
|
|
||||||
echo "Touchpad enabled"
|
|
||||||
notify-send "Touchpad enabled"
|
|
||||||
else
|
|
||||||
xinput disable "$gr";
|
|
||||||
echo 0 > .touchpad;
|
|
||||||
echo "Touchpad Disabled"
|
|
||||||
notify-send "Touchpad disabled"
|
|
||||||
fi
|
|
Loading…
Reference in a new issue