mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Added shortcuts for frequently used apps
This commit is contained in:
parent
6f5e0b1b62
commit
92bd48547e
@ -45,7 +45,7 @@ end
|
|||||||
|
|
||||||
###---Wallpaper & opacity---###
|
###---Wallpaper & opacity---###
|
||||||
wal -R
|
wal -R
|
||||||
nitrogen --restore &
|
nitrogen --restore
|
||||||
picom -b
|
picom -b
|
||||||
|
|
||||||
###---Global Settings---###
|
###---Global Settings---###
|
||||||
@ -65,11 +65,7 @@ bspc config window_gap 10
|
|||||||
###---Rules---###
|
###---Rules---###
|
||||||
bspc rule -a "Syncthing GTK" state=floating
|
bspc rule -a "Syncthing GTK" state=floating
|
||||||
bspc rule -a Gimp state=floating
|
bspc rule -a Gimp state=floating
|
||||||
bspc rule -a wttr state=floating
|
bspc rule -a float state=floating
|
||||||
bspc rule -a neomutt state=floating
|
|
||||||
bspc rule -a newsboat state=floating
|
|
||||||
bspc rule -a updatearch state=floating
|
|
||||||
bspc rule -a lf state=floating
|
|
||||||
bspc rule -a Spotify desktop='^4'
|
bspc rule -a Spotify desktop='^4'
|
||||||
bspc rule -a Spt desktop='^4'
|
bspc rule -a Spt desktop='^4'
|
||||||
bspc rule -a Emacs state=tiled
|
bspc rule -a Emacs state=tiled
|
||||||
|
@ -320,7 +320,7 @@ type = custom/script
|
|||||||
exec = sh ~/.local/share/polybar-scripts/polybar-scripts/updates-arch-combined/updates-arch-combined.sh | tr -d "\#\ "
|
exec = sh ~/.local/share/polybar-scripts/polybar-scripts/updates-arch-combined/updates-arch-combined.sh | tr -d "\#\ "
|
||||||
interval = 600
|
interval = 600
|
||||||
|
|
||||||
click-left = setsid alacritty --class=updatearch,updatearch -e update-arch
|
click-left = setsid alacritty --class=float,float -e update-arch
|
||||||
|
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
|
|
||||||
@ -343,14 +343,14 @@ click-left = ~/.config/polybar/bin/switch-bluetooth
|
|||||||
type = custom/script
|
type = custom/script
|
||||||
exec = ~/.config/polybar/bin/rsscount
|
exec = ~/.config/polybar/bin/rsscount
|
||||||
|
|
||||||
click-left = setsid alacritty --class newsboat,newsboat -e /usr/bin/newsboat
|
click-left = setsid alacritty --class float,float -e /usr/bin/newsboat
|
||||||
click-middle = setsid ~/.local/bin/newsup
|
click-middle = setsid ~/.local/bin/newsup
|
||||||
|
|
||||||
[module/mail]
|
[module/mail]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = ~/.config/polybar/bin/mailcount
|
exec = ~/.config/polybar/bin/mailcount
|
||||||
|
|
||||||
click-left = setsid alacritty --class neomutt,neomutt -e neomutt
|
click-left = setsid alacritty --class float,float -e neomutt
|
||||||
click-middle = mailsync &
|
click-middle = mailsync &
|
||||||
|
|
||||||
[module/docker]
|
[module/docker]
|
||||||
@ -395,7 +395,7 @@ type = custom/script
|
|||||||
exec = curl --silent "https://wttr.in/?format=2"
|
exec = curl --silent "https://wttr.in/?format=2"
|
||||||
interval = 900
|
interval = 900
|
||||||
|
|
||||||
click-left = setsid alacritty --class wttr,wttr -e ~/.config/polybar/bin/wttr-and-wait
|
click-left = setsid alacritty --class float,float -e ~/.config/polybar/bin/wttr-and-wait
|
||||||
|
|
||||||
[module/seperator]
|
[module/seperator]
|
||||||
type = custom/text
|
type = custom/text
|
||||||
|
@ -1,25 +1,4 @@
|
|||||||
:
|
#-----------------------------------------------------------Functions--------------------------------------------------------------
|
||||||
shift + Print
|
|
||||||
maimpick
|
|
||||||
|
|
||||||
# desktop screenshot
|
|
||||||
Print
|
|
||||||
TIMESTAMP=$(date '+%Y-%m-%d-%H%M%S'); maim ~/Pictures/Screenshots/pic-full-$TIMESTAMP.png && notify-send -i ~/Pictures/Screenshots/pic-full-$TIMESTAMP.png "Desktop Screenshot pic-full-$TIMESTAMP.png"
|
|
||||||
|
|
||||||
# Audio controls
|
|
||||||
XF86AudioRaiseVolume
|
|
||||||
~/.local/bin/volume inc
|
|
||||||
XF86AudioLowerVolume
|
|
||||||
~/.local/bin/volume dec
|
|
||||||
XF86AudioMute
|
|
||||||
~/.local/bin/volume mute
|
|
||||||
|
|
||||||
# Screen brightness controls
|
|
||||||
XF86MonBrightnessUp
|
|
||||||
~/.local/bin/brightness inc
|
|
||||||
XF86MonBrightnessDown
|
|
||||||
~/.local/bin/brightness dec
|
|
||||||
|
|
||||||
# lock screen
|
# lock screen
|
||||||
super + F1
|
super + F1
|
||||||
~/.local/bin/lock
|
~/.local/bin/lock
|
||||||
@ -52,23 +31,44 @@ super + F11
|
|||||||
super + F12
|
super + F12
|
||||||
=
|
=
|
||||||
|
|
||||||
|
#-----------------------------------------------------------Audio & screen brightness & shutdown--------------------------------------------------------------
|
||||||
|
# Audio controls
|
||||||
|
XF86AudioRaiseVolume
|
||||||
|
~/.local/bin/volume inc
|
||||||
|
XF86AudioLowerVolume
|
||||||
|
~/.local/bin/volume dec
|
||||||
|
XF86AudioMute
|
||||||
|
~/.local/bin/volume mute
|
||||||
|
|
||||||
|
# Screen brightness controls
|
||||||
|
XF86MonBrightnessUp
|
||||||
|
~/.local/bin/brightness inc
|
||||||
|
XF86MonBrightnessDown
|
||||||
|
~/.local/bin/brightness dec
|
||||||
|
|
||||||
# Shutdown / reboot
|
# Shutdown / reboot
|
||||||
XF86Eject
|
XF86Eject
|
||||||
prompt "Shutdown computer?" "sudo -A shutdown -h now"
|
prompt "Shutdown computer?" "sudo -A shutdown -h now"
|
||||||
shift + XF86Eject
|
shift + XF86Eject
|
||||||
prompt "Reboot computer?" "sudo -A reboot"
|
prompt "Reboot computer?" "sudo -A reboot"
|
||||||
|
|
||||||
|
#-----------------------------------------------------------Screenshots--------------------------------------------------------------
|
||||||
|
shift + Print
|
||||||
|
maimpick
|
||||||
|
|
||||||
|
# desktop screenshot
|
||||||
|
Print
|
||||||
|
TIMESTAMP=$(date '+%Y-%m-%d-%H%M%S'); maim ~/Pictures/Screenshots/pic-full-$TIMESTAMP.png && notify-send -i ~/Pictures/Screenshots/pic-full-$TIMESTAMP.png "Desktop Screenshot pic-full-$TIMESTAMP.png"
|
||||||
|
|
||||||
|
|
||||||
|
#-----------------------------------------------------------App shortcuts--------------------------------------------------------------
|
||||||
# Notification center
|
# Notification center
|
||||||
super + e
|
super + e
|
||||||
~/.local/bin/deadd-switch
|
~/.local/bin/deadd-switch
|
||||||
|
|
||||||
#
|
|
||||||
# BSPWM
|
|
||||||
#
|
|
||||||
|
|
||||||
# terminal emulator
|
# terminal emulator
|
||||||
super + Return
|
super + Return
|
||||||
alacritty
|
alacritty
|
||||||
|
|
||||||
# program launcher
|
# program launcher
|
||||||
super + @space
|
super + @space
|
||||||
@ -78,10 +78,13 @@ super + @space
|
|||||||
super + Escape
|
super + Escape
|
||||||
pkill -USR1 -x sxhkd
|
pkill -USR1 -x sxhkd
|
||||||
|
|
||||||
#
|
# Misc apps
|
||||||
# bspwm hotkeys
|
ctrl + alt + {l, n, r, w, s, c, v}
|
||||||
#
|
alacritty --class float,float -e {lf, neomutt, /usr/bin/newsboat, ~/.config/polybar/bin/wttr-and-wait, spt, castero, nvim}
|
||||||
|
ctrl + alt + {b, e, S, N}
|
||||||
|
{brave, emacs, spotify, nitrogen}
|
||||||
|
|
||||||
|
#-----------------------------------------------------------Bspwm--------------------------------------------------------------
|
||||||
# quit/restart bspwm
|
# quit/restart bspwm
|
||||||
super + alt + {q,r}
|
super + alt + {q,r}
|
||||||
bspc {quit,wm -r}
|
bspc {quit,wm -r}
|
||||||
@ -102,10 +105,6 @@ super + y
|
|||||||
super + g
|
super + g
|
||||||
bspc node -s biggest
|
bspc node -s biggest
|
||||||
|
|
||||||
#
|
|
||||||
# state/flags
|
|
||||||
#
|
|
||||||
|
|
||||||
# set the window state
|
# set the window state
|
||||||
super + {t,shift + t,s,f}
|
super + {t,shift + t,s,f}
|
||||||
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
||||||
@ -114,10 +113,6 @@ super + {t,shift + t,s,f}
|
|||||||
super + ctrl + {m,x,y,z}
|
super + ctrl + {m,x,y,z}
|
||||||
bspc node -g {marked,locked,sticky,private}
|
bspc node -g {marked,locked,sticky,private}
|
||||||
|
|
||||||
#
|
|
||||||
# focus/swap
|
|
||||||
#
|
|
||||||
|
|
||||||
# focus the node in the given direction
|
# focus the node in the given direction
|
||||||
super + {_,shift + }{h,j,k,l}
|
super + {_,shift + }{h,j,k,l}
|
||||||
bspc node -{f,s} {west,south,north,east}
|
bspc node -{f,s} {west,south,north,east}
|
||||||
@ -148,10 +143,6 @@ super + {o,i}
|
|||||||
super + {_,shift + }{1-9,0}
|
super + {_,shift + }{1-9,0}
|
||||||
bspc {desktop -f,node -d} '^{1-9,10}'
|
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||||
|
|
||||||
#
|
|
||||||
# preselect
|
|
||||||
#
|
|
||||||
|
|
||||||
# preselect the direction
|
# preselect the direction
|
||||||
super + ctrl + {h,j,k,l}
|
super + ctrl + {h,j,k,l}
|
||||||
bspc node -p {west,south,north,east}
|
bspc node -p {west,south,north,east}
|
||||||
@ -168,10 +159,6 @@ super + ctrl + space
|
|||||||
super + ctrl + shift + space
|
super + ctrl + shift + space
|
||||||
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
||||||
|
|
||||||
#
|
|
||||||
# move/resize
|
|
||||||
#
|
|
||||||
|
|
||||||
# expand a window by moving one of its side outward
|
# expand a window by moving one of its side outward
|
||||||
super + alt + {h,j,k,l}
|
super + alt + {h,j,k,l}
|
||||||
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
||||||
|
Loading…
Reference in New Issue
Block a user