BSPWM configuration for Thor

This commit is contained in:
Filippo Berto 2022-05-09 01:46:24 +02:00
parent 0cbcfa9fa0
commit f37f46c65a
9 changed files with 114 additions and 113 deletions

View file

@ -10,6 +10,9 @@ let
playerStatus = "${playerCtl} -f '{{emoji(status)}} {{title}} - {{artist}}' metadata | ${head} -c 60";
alacritty = "${pkgs.alacritty}/bin/alacritty";
btm = "${pkgs.bottom}/bin/btm";
systemctl = "${pkgs.systemd}/bin/systemctl";
loginctl = "${pkgs.systemd}/bin/loginctl";
shutdown = "${pkgs.systemd}/bin/shutdown";
colors = with pkgs.rice; palette.toARGBHex rec {
normal = {
@ -157,13 +160,14 @@ in
type = "internal/bspwm";
format = "<label-state>";
label = let
common = {
padding = 1;
separator = " ";
text = "%name%";
};
in
label =
let
common = {
padding = 1;
separator = " ";
text = "%name%";
};
in
{
focused = colors.selected // common;
occupied = colors.active // common;
@ -307,16 +311,16 @@ in
({ text = "Power off"; exec = "#powermenu.open.4"; })
]
[
({ text = "Logout"; exec = "${pkgs.systemd}/bin/loginctl terminate-session self"; })
({ text = "Logout"; exec = "${loginctl} terminate-session `loginctl session-status | head -n 1 | awk '{print $1}'`"; })
]
[
({ text = "Reboot"; exec = "${pkgs.systemd}/bin/systemctl reboot"; })
({ text = "Reboot"; exec = "${systemctl} reboot"; })
]
[
({ text = "Hibernate"; exec = "${pkgs.systemd}/bin/systemctl hibernate"; })
({ text = "Hibernate"; exec = "${systemctl} hibernate"; })
]
[
({ text = "Power off"; exec = "${pkgs.systemd}/bin/shutdown now"; })
({ text = "Power off"; exec = "${shutdown} now"; })
]
];
};