add autoaspm and rotate screen button
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user