update: slightly WIP update with cool features
This commit is contained in:
@@ -5,4 +5,4 @@ msgId="3378455"
|
||||
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Eo [0-9]+% | head -1)
|
||||
|
||||
notify-send -i $HOME/.config/hypr/scripts/dunst/icons/volume-down.svg -a "changevolume" -u low -r "$msgId" \
|
||||
-h int:value:"$volume" "Громкость: $volume%"
|
||||
-h int:value:"$volume" "Громкость: $volume"
|
||||
|
||||
@@ -8,4 +8,4 @@ msgId="3378455"
|
||||
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Eo [0-9]+% | head -1)
|
||||
|
||||
notify-send -i $HOME/.config/hypr/scripts/dunst/icons/volume.svg -a "changevolume" -u low -r "$msgId" \
|
||||
-h int:value:"$volume" "Громкость: $volume%"
|
||||
-h int:value:"$volume" "Громкость: $volume"
|
||||
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
# Get current monitor
|
||||
current_monitor=$(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name')
|
||||
|
||||
# Fallback
|
||||
if [ -z "$current_monitor" ]; then
|
||||
current_monitor=$(hyprctl monitors -j | jq -r '.[0].name')
|
||||
fi
|
||||
|
||||
# Set workspaces
|
||||
count=1
|
||||
while IFS= read -r mon; do
|
||||
ws=$((count * 100))
|
||||
hyprctl --batch "dispatch focusmonitor $mon; dispatch workspace $ws"
|
||||
count=$((count + 1))
|
||||
done < <(hyprctl monitors -j | jq -r '.[].name')
|
||||
|
||||
# Return focus
|
||||
hyprctl dispatch focusmonitor "$current_monitor"
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
msgId="3378455"
|
||||
|
||||
if pgrep -f "systemd-inhibit --what=handle-lid-switch" > /dev/null; then
|
||||
pkill -f "systemd-inhibit --what=handle-lid-switch"
|
||||
# notify-send -u low -r "$msgId" "Lid Sleep" "Do Not Sleep on lid close DISABLED"
|
||||
else
|
||||
systemd-inhibit --what=handle-lid-switch --who="Lid Toggle Script" --why="User toggled lid sleep off" --mode=block sleep infinity &
|
||||
# notify-send -u low -r "$msgId" "Lid Sleep" "Do Not Sleep on lid close ENABLED"
|
||||
fi
|
||||
pkill -RTMIN+10 waybar
|
||||
Reference in New Issue
Block a user