mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-19 16:27:45 +02:00
Compare commits
No commits in common. "61c4f7e252293588a6f374db85fb3d8002041505" and "20d7179ce17f0cb42b842afb2faeb8c0a65fe0cd" have entirely different histories.
61c4f7e252
...
20d7179ce1
@ -52,6 +52,8 @@ super + F7
|
||||
dmenumount
|
||||
super + F8
|
||||
dmenuumount
|
||||
super + F9
|
||||
sudo -A systemctl restart NetworkManager
|
||||
super + F10
|
||||
prompt "Lock computer?" "slock"
|
||||
super + F11
|
||||
|
BIN
.config/wall.png
Normal file
BIN
.config/wall.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 855 KiB |
@ -1,6 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Based on a script by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||||
# In LARBS, ~/.config/wall.png is the location of the system wallpaper. This
|
||||
# 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"
|
||||
|
||||
|
@ -1,13 +0,0 @@
|
||||
#!/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
|
Loading…
x
Reference in New Issue
Block a user