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 = 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
exec-once=wl-paste --watch cliphist store
bind = $mainMod, X, exec, cliphist list | ${fuzzel-command} --dmenu | cliphist decode | wl-copy
@ -343,6 +351,11 @@ in with lib; {
"command": "ario",
"animation": "",
"unfocus": "hide"
},
"spotify": {
"command": "spotify",
"animation": "",
"unfocus": "hide"
}
}
}
@ -494,16 +507,17 @@ in with lib; {
tooltip = false;
format = "{icon}";
format-icons = {
notification = "<span foreground='red'><sup></sup></span>";
none = "";
dnd-notification = "<span foreground='red'><sup></sup></span>";
notification = " <span foreground='red'><sup></sup></span> ";
none = " ";
dnd-notification =
" <span foreground='red'><sup></sup></span> ";
dnd-none = "";
inhibited-notification =
"<span foreground='red'><sup></sup></span>";
inhibited-none = "";
" <span foreground='red'><sup></sup></span> ";
inhibited-none = " ";
dnd-inhibited-notification =
"<span foreground='red'><sup></sup></span>";
dnd-inhibited-none = "";
" <span foreground='red'><sup></sup></span> ";
dnd-inhibited-none = " ";
};
return-type = "json";
exec-if = "which swaync-client";

View File

@ -4,7 +4,7 @@ set -eou pipefail
# Get the list of rooms with no local users
empty_rooms() {
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