mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -05:00
sway: add close button in tablet mode
This commit is contained in:
parent
e8a5219ee1
commit
5eace49fae
|
@ -7,11 +7,6 @@
|
||||||
options = {alyraffauf.apps.waybar.enable = lib.mkEnableOption "Enables waybar.";};
|
options = {alyraffauf.apps.waybar.enable = lib.mkEnableOption "Enables waybar.";};
|
||||||
|
|
||||||
config = lib.mkIf config.alyraffauf.apps.waybar.enable {
|
config = lib.mkIf config.alyraffauf.apps.waybar.enable {
|
||||||
# Packages that should be installed to the user profile.
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
blueberry
|
|
||||||
pavucontrol
|
|
||||||
];
|
|
||||||
|
|
||||||
xdg.configFile."waybar/style.css".text = ''
|
xdg.configFile."waybar/style.css".text = ''
|
||||||
* {
|
* {
|
||||||
|
@ -65,6 +60,7 @@
|
||||||
#inhibitor,
|
#inhibitor,
|
||||||
#custom-logout,
|
#custom-logout,
|
||||||
#custom-menu,
|
#custom-menu,
|
||||||
|
#custom-sway-close,
|
||||||
#tray {
|
#tray {
|
||||||
padding: 0 7.5px;
|
padding: 0 7.5px;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
|
@ -89,6 +85,7 @@
|
||||||
#tray,
|
#tray,
|
||||||
#clock,
|
#clock,
|
||||||
#custom-menu,
|
#custom-menu,
|
||||||
|
#custom-sway-close,
|
||||||
#hardware {
|
#hardware {
|
||||||
border-radius: 10;
|
border-radius: 10;
|
||||||
background: rgba ${
|
background: rgba ${
|
||||||
|
@ -100,7 +97,7 @@
|
||||||
padding: 0px 10px 0px 10px;
|
padding: 0px 10px 0px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock, #custom-menu {
|
#clock, #custom-menu, #custom-sway-close {
|
||||||
padding: 0px 20px 0px 20px;
|
padding: 0px 20px 0px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,6 +162,10 @@
|
||||||
"tooltip" = true;
|
"tooltip" = true;
|
||||||
"tooltip-format" = "{app}: {title}";
|
"tooltip-format" = "{app}: {title}";
|
||||||
};
|
};
|
||||||
|
"custom/sway-close" = {
|
||||||
|
"on-click" = ''${lib.getExe' config.wayland.windowManager.sway.package "swaymsg"} kill'';
|
||||||
|
"format" = "";
|
||||||
|
};
|
||||||
"river/window" = {
|
"river/window" = {
|
||||||
"max-length" = 100;
|
"max-length" = 100;
|
||||||
};
|
};
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
mainBar = {
|
mainBar = {
|
||||||
modules-left =
|
modules-left =
|
||||||
if config.alyraffauf.desktop.sway.tabletMode.menuButton
|
if config.alyraffauf.desktop.sway.tabletMode.menuButton
|
||||||
then ["custom/menu" "sway/workspaces" "sway/scratchpad" "sway/mode"]
|
then ["custom/menu" "custom/sway-close" "sway/workspaces" "sway/scratchpad" "sway/mode"]
|
||||||
else ["sway/workspaces" "sway/scratchpad" "sway/mode"];
|
else ["sway/workspaces" "sway/scratchpad" "sway/mode"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue