mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
feat(sxhkd): split config feature into seperate ones for laptop/desktop
This commit is contained in:
parent
21996faf2d
commit
05cc2dbe2f
88
sxhkd/.config/sxhkd/sxhkdrc.desktop
Normal file
88
sxhkd/.config/sxhkd/sxhkdrc.desktop
Normal file
@ -0,0 +1,88 @@
|
||||
#-----------------------------------------------------------Functions--------------------------------------------------------------
|
||||
# lock screen
|
||||
super + F1
|
||||
xset s activate
|
||||
|
||||
# dmenu password selector
|
||||
super + F2
|
||||
~/.local/bin/pass-dmenu
|
||||
|
||||
# dmenu authenticator
|
||||
super + F3
|
||||
~/.local/bin/oath-dmenu
|
||||
|
||||
# ssh shell
|
||||
super + F4
|
||||
~/.local/bin/ssh-dmenu -p SSH:
|
||||
|
||||
# player controls
|
||||
super + F5
|
||||
playerctl stop
|
||||
super + F6
|
||||
playerctl previous
|
||||
super + F7
|
||||
playerctl play-pause
|
||||
super + F8
|
||||
playerctl next
|
||||
|
||||
# Wireguard
|
||||
super + F11
|
||||
~/.local/bin/wireguard-switch
|
||||
|
||||
# dmenu calculator
|
||||
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
|
||||
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--------------------------------------------------------------
|
||||
# terminal emulator
|
||||
super + Return
|
||||
st
|
||||
|
||||
# program launcher
|
||||
super + @space
|
||||
dmenu-frecency
|
||||
|
||||
# make sxhkd reload its configuration files:
|
||||
super + Escape
|
||||
pkill -USR1 -x sxhkd
|
||||
|
||||
# Misc apps
|
||||
super + ctrl + alt + {l, n, r, s, c, v, k, a, u, e}
|
||||
$TERMINAL -e {lf, neomutt, /usr/bin/newsboat, spt, castero, nvim, ~/.local/bin/calendar-and-wait, ~/.local/bin/audit, ~/.local/bin/update-arch}
|
||||
super + ctrl + alt + {b, e, S}
|
||||
{brave, emacs, spotify}
|
||||
super + ctrl + alt + {t}
|
||||
~/.local/bin/tldr-dmenu
|
||||
super + ctrl + alt + {m}
|
||||
~/.local/bin/dmenuunicode
|
||||
super + ctrl + alt + {w}
|
||||
alacritty --class fullscreen,fullscreen -e ~/.config/polybar/bin/wttr-and-wait
|
3
sxhkd/.local/bin/sxhkd/calendar-and-wait
Executable file
3
sxhkd/.local/bin/sxhkd/calendar-and-wait
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
khal list && read -n 1 -p ""
|
17
sxhkd/.local/bin/sxhkd/volume
Executable file
17
sxhkd/.local/bin/sxhkd/volume
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
case $1 in
|
||||
inc)
|
||||
pamixer --allow-boost -i 3
|
||||
;;
|
||||
dec)
|
||||
pamixer --allow-boost -d 3
|
||||
;;
|
||||
mute)
|
||||
pamixer -t
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
pkill -RTMIN+15 "${STATUSBAR:-dwmblocks}"
|
3
sxhkd/.local/bin/sxhkd/wttr-and-wait
Executable file
3
sxhkd/.local/bin/sxhkd/wttr-and-wait
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env fish
|
||||
|
||||
wttr && read -n 1 -p ""
|
Loading…
Reference in New Issue
Block a user