add hyprland and scripts
This commit is contained in:
parent
83ed8e6997
commit
d54d6c376c
6 changed files with 199 additions and 7 deletions
14
scripts/autostart
Executable file
14
scripts/autostart
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
nextcloud &
|
||||
waybar &
|
||||
|
||||
swaybg \
|
||||
-o DP-1 -i ~/Pictures/backgrounds/demonslayer.jpg \
|
||||
-o HDMI-A-1 -i ~/Pictures/backgrounds/nier.jpg &
|
||||
|
||||
swayidle -w \
|
||||
timeout 600 'swaylock &' & # swaymsg dunt work \
|
||||
# timeout 400 'swaymsg "output * dpms off"' \
|
||||
# resume 'swaymsg "output * dpms on"' &
|
||||
|
||||
11
scripts/play-pause
Executable file
11
scripts/play-pause
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$(playerctl --list-all | wc -l)" -lt 2 ]
|
||||
then
|
||||
playerctl play-pause
|
||||
else
|
||||
playerctl --list-all | \
|
||||
xargs -I _ playerctl --player _ metadata --format '_ - {{title}}' | \
|
||||
wofi --dmenu | awk '{print $1}' | \
|
||||
xargs -I _ playerctl --player _ play-pause
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue