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---###
|
||||
wal -R
|
||||
nitrogen --restore &
|
||||
nitrogen --restore
|
||||
picom -b
|
||||
|
||||
###---Global Settings---###
|
||||
@ -65,11 +65,7 @@ bspc config window_gap 10
|
||||
###---Rules---###
|
||||
bspc rule -a "Syncthing GTK" state=floating
|
||||
bspc rule -a Gimp state=floating
|
||||
bspc rule -a wttr 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 float state=floating
|
||||
bspc rule -a Spotify desktop='^4'
|
||||
bspc rule -a Spt desktop='^4'
|
||||
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 "\#\ "
|
||||
interval = 600
|
||||
|
||||
click-left = setsid alacritty --class=updatearch,updatearch -e update-arch
|
||||
click-left = setsid alacritty --class=float,float -e update-arch
|
||||
|
||||
format-prefix = " "
|
||||
|
||||
@ -343,14 +343,14 @@ click-left = ~/.config/polybar/bin/switch-bluetooth
|
||||
type = custom/script
|
||||
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
|
||||
|
||||
[module/mail]
|
||||
type = custom/script
|
||||
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 &
|
||||
|
||||
[module/docker]
|
||||
@ -395,7 +395,7 @@ type = custom/script
|
||||
exec = curl --silent "https://wttr.in/?format=2"
|
||||
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]
|
||||
type = custom/text
|
||||
|
@ -1,25 +1,4 @@
|
||||
:
|
||||
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
|
||||
|
||||
#-----------------------------------------------------------Functions--------------------------------------------------------------
|
||||
# lock screen
|
||||
super + F1
|
||||
~/.local/bin/lock
|
||||
@ -52,23 +31,44 @@ super + F11
|
||||
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
|
||||
XF86Eject
|
||||
XF86Eject
|
||||
prompt "Shutdown computer?" "sudo -A shutdown -h now"
|
||||
shift + XF86Eject
|
||||
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
|
||||
super + e
|
||||
~/.local/bin/deadd-switch
|
||||
|
||||
#
|
||||
# BSPWM
|
||||
#
|
||||
|
||||
# terminal emulator
|
||||
super + Return
|
||||
alacritty
|
||||
alacritty
|
||||
|
||||
# program launcher
|
||||
super + @space
|
||||
@ -78,10 +78,13 @@ super + @space
|
||||
super + Escape
|
||||
pkill -USR1 -x sxhkd
|
||||
|
||||
#
|
||||
# bspwm hotkeys
|
||||
#
|
||||
# Misc apps
|
||||
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
|
||||
super + alt + {q,r}
|
||||
bspc {quit,wm -r}
|
||||
@ -102,10 +105,6 @@ super + y
|
||||
super + g
|
||||
bspc node -s biggest
|
||||
|
||||
#
|
||||
# state/flags
|
||||
#
|
||||
|
||||
# set the window state
|
||||
super + {t,shift + t,s,f}
|
||||
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
||||
@ -114,10 +113,6 @@ super + {t,shift + t,s,f}
|
||||
super + ctrl + {m,x,y,z}
|
||||
bspc node -g {marked,locked,sticky,private}
|
||||
|
||||
#
|
||||
# focus/swap
|
||||
#
|
||||
|
||||
# focus the node in the given direction
|
||||
super + {_,shift + }{h,j,k,l}
|
||||
bspc node -{f,s} {west,south,north,east}
|
||||
@ -148,10 +143,6 @@ super + {o,i}
|
||||
super + {_,shift + }{1-9,0}
|
||||
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||
|
||||
#
|
||||
# preselect
|
||||
#
|
||||
|
||||
# preselect the direction
|
||||
super + ctrl + {h,j,k,l}
|
||||
bspc node -p {west,south,north,east}
|
||||
@ -168,10 +159,6 @@ super + ctrl + space
|
||||
super + ctrl + shift + space
|
||||
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
|
||||
super + alt + {h,j,k,l}
|
||||
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
||||
|
Loading…
Reference in New Issue
Block a user