mocp
This commit is contained in:
parent
717292d072
commit
b841191a21
|
@ -8,7 +8,6 @@
|
||||||
lxqt.lxqt-policykit
|
lxqt.lxqt-policykit
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
swappy
|
|
||||||
hyprpicker
|
hyprpicker
|
||||||
emote
|
emote
|
||||||
];
|
];
|
||||||
|
@ -37,8 +36,13 @@
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
|
|
||||||
bind = [
|
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, N, exec, alacritty -e mocp"
|
||||||
|
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
|
||||||
"$mod, B, exec, emote &"
|
"$mod, B, exec, emote &"
|
||||||
"$mod+Shift, Z, exec, grim - | swappy -f -"
|
"$mod+Shift, Z, exec, grim - | swappy -f -"
|
||||||
"$mod, Z, exec, sh ~/nix/home/hyprland/screen.sh &"
|
"$mod, Z, exec, sh ~/nix/home/hyprland/screen.sh &"
|
||||||
|
@ -54,7 +58,7 @@
|
||||||
"$mod, Q, killactive"
|
"$mod, Q, killactive"
|
||||||
"$mod, M, exit, hyprland"
|
"$mod, M, exit, hyprland"
|
||||||
"$mod, W, togglefloating"
|
"$mod, W, togglefloating"
|
||||||
"$mod, U, exec, systemctl suspend"
|
"$mod, T, exec, systemctl suspend"
|
||||||
"$mod, L, exec, amixer -q sset Master 5%+"
|
"$mod, L, exec, amixer -q sset Master 5%+"
|
||||||
"$mod, K, exec, amixer -q sset Master 5%-"
|
"$mod, K, exec, amixer -q sset Master 5%-"
|
||||||
"$mod, Return, fullscreen"
|
"$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