mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Use SIGTERM instead of SIGKILL
After proper research, `SIGKILL` should be prevented if possible; Use `SIGTERM` instead Source: [In what order should I send signals to gracefully shutdown processes?](https://stackoverflow.com/a/37692419)
This commit is contained in:
parent
636c35a126
commit
e78420475e
@ -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" \
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -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."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user