1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-19 16:27:45 +02:00

Compare commits

...

3 Commits

Author SHA1 Message Date
61c4f7e252 removed not used hotkeys 2023-10-24 19:01:34 +02:00
b2e73bc5a1 background/lock: added lock bg script and updated classic one 2023-10-24 18:58:55 +02:00
923f64a486 removed unneeded files 2023-10-24 18:54:22 +02:00
4 changed files with 15 additions and 11 deletions

View File

@ -33,7 +33,7 @@ super + shift + l
setxkbmap -query | grep -q 'nodeadkeys' && $(setxkbmap de ru ; notify-send -u low 'SXHKD' 'Set keymap to russian') || $(setxkbmap de nodeadkeys ; notify-send -u low 'SXHKD' 'Set keymap to german') setxkbmap -query | grep -q 'nodeadkeys' && $(setxkbmap de ru ; notify-send -u low 'SXHKD' 'Set keymap to russian') || $(setxkbmap de nodeadkeys ; notify-send -u low 'SXHKD' 'Set keymap to german')
super + shift + r super + shift + r
pkill -usr1 -x sxhkd ; notify-send -u low 'SXHKD' 'Reloaded config' pkill -usr1 -x sxhkd ; notify-send -u low 'SXHKD' 'Reloaded config'
super + Return super + Return
$TERMINAL $TERMINAL
@ -52,8 +52,6 @@ super + F7
dmenumount dmenumount
super + F8 super + F8
dmenuumount dmenuumount
super + F9
sudo -A systemctl restart NetworkManager
super + F10 super + F10
prompt "Lock computer?" "slock" prompt "Lock computer?" "slock"
super + F11 super + F11

Binary file not shown.

Before

Width:  |  Height:  |  Size: 855 KiB

View File

@ -1,13 +1,6 @@
#!/bin/sh #!/bin/sh
# In LARBS, ~/.config/wall.png is the location of the system wallpaper. This # Based on a script by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
# script, if given an argument, moves it there. This script without an
# argument sets ~/.config/wall.png as the wallpaper, which is required on login
# if you don't want a black screen.
#
# You may also give a directory name to select a random image from that
# directory as a wallpaper. Be careful that the directory only has images.
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
bgloc="${XDG_DATA_HOME:-$HOME/.local/share}/bg" bgloc="${XDG_DATA_HOME:-$HOME/.local/share}/bg"

13
.local/bin/tools/setlock Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
# Based on a script by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
bgloc="${XDG_DATA_HOME:-$HOME/.local/share}/lock"
trueloc="$(readlink -f "$1")" &&
case "$(file --mime-type -b "$trueloc")" in
image/* ) ln -f "$(readlink -f "$1")" "$bgloc" && notify-send -i "$bgloc" "Changing lock background..." ;;
inode/directory ) ln -f "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc" && notify-send -i "$bgloc" "Random lock background chosen." ;;
*) notify-send "🖼️ Error" "Not a valid image or directory." ; exit 1;;
esac