Compare commits

...

3 Commits

Author SHA1 Message Date
Nathan McCarty ff27ceddee
Add spotify scratchpad 2023-06-18 02:25:41 -04:00
Nathan McCarty f25a8f51e8
Tweak waybar 2023-06-18 01:44:28 -04:00
Nathan McCarty 366f76a619
Increase number of old rooms to delete nightly 2023-06-18 01:39:38 -04:00
2 changed files with 22 additions and 8 deletions

View File

@ -242,6 +242,14 @@ in with lib; {
windowrulev2 = workspace special silent,$dropario windowrulev2 = workspace special silent,$dropario
windowrulev2 = center,$dropario windowrulev2 = center,$dropario
# Spotify
bind = SUPER ALT, R, exec, pypr toggle spotify
$dropspotify = title:^(Spotify)$
windowrulev2 = float,$dropspotify
windowrulev2 = size 50% 70%,$dropspotify
windowrulev2 = workspace special silent,$dropspotify
windowrulev2 = center,$dropspotify
# Clipboard history management # Clipboard history management
exec-once=wl-paste --watch cliphist store exec-once=wl-paste --watch cliphist store
bind = $mainMod, X, exec, cliphist list | ${fuzzel-command} --dmenu | cliphist decode | wl-copy bind = $mainMod, X, exec, cliphist list | ${fuzzel-command} --dmenu | cliphist decode | wl-copy
@ -343,6 +351,11 @@ in with lib; {
"command": "ario", "command": "ario",
"animation": "", "animation": "",
"unfocus": "hide" "unfocus": "hide"
},
"spotify": {
"command": "spotify",
"animation": "",
"unfocus": "hide"
} }
} }
} }
@ -494,16 +507,17 @@ in with lib; {
tooltip = false; tooltip = false;
format = "{icon}"; format = "{icon}";
format-icons = { format-icons = {
notification = "<span foreground='red'><sup></sup></span>"; notification = " <span foreground='red'><sup></sup></span> ";
none = ""; none = " ";
dnd-notification = "<span foreground='red'><sup></sup></span>"; dnd-notification =
" <span foreground='red'><sup></sup></span> ";
dnd-none = ""; dnd-none = "";
inhibited-notification = inhibited-notification =
"<span foreground='red'><sup></sup></span>"; " <span foreground='red'><sup></sup></span> ";
inhibited-none = ""; inhibited-none = " ";
dnd-inhibited-notification = dnd-inhibited-notification =
"<span foreground='red'><sup></sup></span>"; " <span foreground='red'><sup></sup></span> ";
dnd-inhibited-none = ""; dnd-inhibited-none = " ";
}; };
return-type = "json"; return-type = "json";
exec-if = "which swaync-client"; exec-if = "which swaync-client";

View File

@ -4,7 +4,7 @@ set -eou pipefail
# Get the list of rooms with no local users # Get the list of rooms with no local users
empty_rooms() { empty_rooms() {
psql -d synapse -c "SELECT room_id FROM room_stats_current WHERE local_users_in_room = 0 \ psql -d synapse -c "SELECT room_id FROM room_stats_current WHERE local_users_in_room = 0 \
ORDER BY current_state_events DESC LIMIT 1;" -t --csv ORDER BY current_state_events DESC LIMIT 3;" -t --csv
} }
# Delete a room and purge its history # Delete a room and purge its history