diff --git a/.config/aliasrc b/.config/aliasrc index fa0a458d..96252a77 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -22,7 +22,7 @@ alias \ # These common commands are just too long! Abbreviate them. alias \ - ka="pkill -9" \ + ka="pkill -15" \ g="git" \ trem="transmission-remote" \ YT="youtube-viewer" \ diff --git a/.config/i3/config b/.config/i3/config index c0045db8..038b4d7b 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -271,7 +271,7 @@ bindsym $mod+Shift+bracketright exec --no-startup-id mpc seek +120 bindsym Print exec --no-startup-id maim pic-full-"$(date '+%y%m%d-%H%M-%S').png" bindsym Shift+Print exec --no-startup-id maimpick bindsym $mod+Print exec --no-startup-id dmenurecord -bindsym $mod+Scroll_Lock exec --no-startup-id "pkill -9 screenkey || screenkey" +bindsym $mod+Scroll_Lock exec --no-startup-id "pkill -15 screenkey || screenkey" bindsym $mod+Delete exec $stoprec bindsym XF86Launch1 exec --no-startup-id xset dpms force off diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf index 0589ee7b..d6dd7deb 100644 --- a/.config/ranger/rc.conf +++ b/.config/ranger/rc.conf @@ -114,7 +114,7 @@ map cd console cd%space #map Mb shell mocp -r #map MN shell mocp -s && mocp -c && mocp -a %s && mocp -p #map Mo shell mocp -j 0%% -#map MK shell pkill -9 mocp +#map MK shell pkill -15 mocp # Tagging / Marking map at tag_toggle @@ -475,14 +475,14 @@ map Txh console shell cp ~/Documents/LaTeX/handout.tex%space #Image commands map bg shell setbg %f map bw shell wal -i %f && setbg %f -map C shell pkill -9 w3mimgdisplay && convert -rotate 90 %s %s -map F shell pkill -9 w3mimgdisplay && convert -flop %s %s -map bl shell pkill -9 w3mimgdisplay && convert %s -resize 1440x1080\> bl_%s +map C shell pkill -15 w3mimgdisplay && convert -rotate 90 %s %s +map F shell pkill -15 w3mimgdisplay && convert -flop %s %s +map bl shell pkill -15 w3mimgdisplay && convert %s -resize 1440x1080\> bl_%s map TR shell convert %s -transparent white %s #Music (mpd) shortcuts map MS shell mpd -map MK shell pkill -9 mpd +map MK shell pkill -15 mpd map Ma shell mpc add "%s" map Ms shell mpc play map Mp shell mpc toggle diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index de254b89..39629fc7 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -39,7 +39,7 @@ super + shift + w super + grave dmenuunicode super + Scroll_Lock - pkill -9 screenkey || screenkey + pkill -15 screenkey || screenkey super + Insert showclip super + shift + x @@ -47,7 +47,7 @@ super + shift + x super + shift + BackSpace prompt "Reboot computer?" "sudo -A reboot" super + shift + Escape - prompt 'Leave Xorg?' 'pkill -x Xorg' + prompt 'Leave Xorg?' 'pkill -15 Xorg' super + x ifinstalled slock && ( slock & xset dpms force off ; mpc pause ; pauseallmpv ) XF86Launch1 @@ -260,7 +260,7 @@ super + o # remove and restore polybar #super + b -#\{ pgrep polybar && \{ pkill -9 polybar ; bspc config top_padding 0 \} \} || \{ launch_polybar ; bspc config top_padding 24 \} +#\{ pgrep polybar && \{ pkill -15 polybar ; bspc config top_padding 0 \} \} || \{ launch_polybar ; bspc config top_padding 24 \} super + {i,o} bspc node -f {prev,next}.local diff --git a/.local/bin/displayselect b/.local/bin/displayselect index c8cc8e58..4c980af8 100755 --- a/.local/bin/displayselect +++ b/.local/bin/displayselect @@ -59,7 +59,7 @@ onescreen() { # If only one output available or chosen. postrun() { # Stuff to run to clean up. setbg # Fix background if screen size/arangement has changed. remaps # Re-remap keys if keyboard added (for laptop bases) - { pkill -9 dunst ; setsid -f dunst ;} >/dev/null 2>&1 # Restart dunst to ensure proper location on screen + { pkill -15 dunst ; setsid -f dunst ;} >/dev/null 2>&1 # Restart dunst to ensure proper location on screen } # Get all possible displays diff --git a/.local/bin/launch_polybar b/.local/bin/launch_polybar index 1ecdb3d8..57138dc9 100755 --- a/.local/bin/launch_polybar +++ b/.local/bin/launch_polybar @@ -1,7 +1,7 @@ #!/bin/sh # Terminate already running bar instances -pkill -9 -q polybar +pkill -15 -q polybar # Wait until the processes have been shut down while pidof polybar >/dev/null; do sleep 1; done diff --git a/.local/bin/remaps b/.local/bin/remaps index b1e26358..4fa4ca19 100755 --- a/.local/bin/remaps +++ b/.local/bin/remaps @@ -6,6 +6,6 @@ xset r rate 300 50 # Map the caps lock key to super... setxkbmap -option caps:super # But when it is pressed only once, treat it as escape. -pkill -9 xcape 2>/dev/null ; xcape -e 'Super_L=Escape' +pkill -15 xcape 2>/dev/null ; xcape -e 'Super_L=Escape' # Map the menu button to right super as well. xmodmap -e 'keycode 135 = Super_R' diff --git a/.local/bin/td-toggle b/.local/bin/td-toggle index 33a8182a..e161491a 100755 --- a/.local/bin/td-toggle +++ b/.local/bin/td-toggle @@ -4,7 +4,7 @@ if pidof transmission-daemon >/dev/null ; then - [ "$(printf "No\\nYes" | dmenu -i -p "Turn off transmission-daemon?")" = "Yes" ] && pkill -9 transmission-da && notify-send "transmission-daemon disabled." + [ "$(printf "No\\nYes" | dmenu -i -p "Turn off transmission-daemon?")" = "Yes" ] && pkill -15 transmission-da && notify-send "transmission-daemon disabled." else ifinstalled transmission-cli || exit [ "$(printf "No\\nYes" | dmenu -i -p "Turn on transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send "tranmission-daemon enabled."