init
This commit is contained in:
6
kanshi/apply-wallpaper.sh
Executable file
6
kanshi/apply-wallpaper.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
sleep 0.5
|
||||
WALLPAPER=$(cat ~/.config/swww/current-wallpaper 2>/dev/null)
|
||||
if [ -n "$WALLPAPER" ] && [ -f "$WALLPAPER" ]; then
|
||||
swww img "$WALLPAPER"
|
||||
fi
|
||||
15
kanshi/config
Normal file
15
kanshi/config
Normal file
@@ -0,0 +1,15 @@
|
||||
profile laptop {
|
||||
output eDP-1 enable
|
||||
exec ~/.config/kanshi/apply-wallpaper.sh
|
||||
}
|
||||
|
||||
profile laptop_and_hdmi {
|
||||
output eDP-1 enable
|
||||
output HDMI-A-1 enable
|
||||
exec ~/.config/kanshi/apply-wallpaper.sh
|
||||
}
|
||||
|
||||
profile {
|
||||
output "*"
|
||||
exec ~/.config/kanshi/apply-wallpaper.sh
|
||||
}
|
||||
Reference in New Issue
Block a user