add autoaspm and rotate screen button

This commit is contained in:
2025-03-23 11:13:08 +01:00
parent e32e753bce
commit af13b31ce3
2 changed files with 126 additions and 2 deletions

View File

@@ -54,7 +54,7 @@
margin: 0 5px;
}
#custom-vkeyboard, #custom-appkill {
#custom-vkeyboard, #custom-appkill, #custom-rotate {
padding: 0px 50px;
margin: 0px 0px;
font-size: 20px;
@@ -135,13 +135,17 @@
color: red;
background-color: black;
}
#custom-rotate {
color: white;
background-color: black;
}
'';
settings = [{
layer = "bottom";
position = "top";
height = 22;
tray = { spacing = 10; };
modules-center = [ "clock" "custom/appkill" ];
modules-center = [ "custom/rotate" "clock" "custom/appkill" ];
modules-left = [ "sway/mode" "sway/workspaces" "sway/window" ];
#modules-left = [ "wlr/workspaces" ];
modules-right = [ "idle_inhibitor" "pulseaudio" "network" "cpu" "memory" "backlight" "temperature" "battery" "tray" ];
@@ -269,6 +273,12 @@
on-click = "${pkgs.sway}/bin/swaymsg kill";
tooltip = false;
};
"custom/rotate" = {
format = " ";
icon-size = 20;
on-click = "${pkgs.sway}/bin/swaymsg output eDP-1 transform 180 clockwise";
tooltip = false;
};
}];
};
};