mocp
This commit is contained in:
parent
7139ba764a
commit
8f8bede1a9
|
@ -8,7 +8,6 @@
|
|||
lxqt.lxqt-policykit
|
||||
grim
|
||||
slurp
|
||||
swappy
|
||||
hyprpicker
|
||||
emote
|
||||
];
|
||||
|
@ -37,8 +36,13 @@
|
|||
"$mod" = "SUPER";
|
||||
|
||||
bind = [
|
||||
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
|
||||
"$mod, P, exec, mocp -f"
|
||||
"$mod, O, exec, mocp -r"
|
||||
"$mod, U, exec, mocp --volume +5"
|
||||
"$mod, I, exec, mocp --volume -5"
|
||||
"$mod+space, exec, sh ~/nix/home/hyprland/pause.sh"
|
||||
"$mod, N, exec, alacritty -e mocp"
|
||||
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
|
||||
"$mod, B, exec, emote &"
|
||||
"$mod+Shift, Z, exec, grim - | swappy -f -"
|
||||
"$mod, Z, exec, sh ~/nix/home/hyprland/screen.sh &"
|
||||
|
@ -54,7 +58,7 @@
|
|||
"$mod, Q, killactive"
|
||||
"$mod, M, exit, hyprland"
|
||||
"$mod, W, togglefloating"
|
||||
"$mod, U, exec, systemctl suspend"
|
||||
"$mod, T, exec, systemctl suspend"
|
||||
"$mod, L, exec, amixer -q sset Master 5%+"
|
||||
"$mod, K, exec, amixer -q sset Master 5%-"
|
||||
"$mod, Return, fullscreen"
|
||||
|
|
14
home/hyprland/pause.sh
Executable file
14
home/hyprland/pause.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Get the current state of MOC
|
||||
state=$(mocp -Q %state)
|
||||
|
||||
# Check the state and toggle accordingly
|
||||
if [ "$state" == "PLAY" ]; then
|
||||
mocp -P
|
||||
elif [ "$state" == "PAUSE" ]; then
|
||||
mocp -U
|
||||
else
|
||||
echo "MOC is not currently playing or paused."
|
||||
fi
|
||||
|
Loading…
Reference in a new issue