forked from extern/zaneyos
Add keybinding module and replace network module with it instead
This commit is contained in:
parent
00dc4993b6
commit
cd72f5ad62
@ -13,8 +13,8 @@ in with lib; {
|
|||||||
position = "top";
|
position = "top";
|
||||||
|
|
||||||
modules-center = if simplebar == true then [ "hyprland/window" ]
|
modules-center = if simplebar == true then [ "hyprland/window" ]
|
||||||
else [ "network" "pulseaudio" "cpu" "hyprland/workspaces" "memory" "disk" "clock" ];
|
else [ "custom/hyprbindings" "pulseaudio" "cpu" "hyprland/workspaces" "memory" "disk" "clock" ];
|
||||||
modules-left = if simplebar == true then ["custom/startmenu" "hyprland/workspaces" "cpu" "memory" "network" ]
|
modules-left = if simplebar == true then ["custom/startmenu" "hyprland/workspaces" "cpu" "memory" "custom/hyprbindings" ]
|
||||||
else [ "custom/startmenu" "hyprland/window" ];
|
else [ "custom/startmenu" "hyprland/window" ];
|
||||||
modules-right = if simplebar == true then [ "idle_inhibitor" "custom/themeselector" "custom/notification" "pulseaudio" "clock" "tray" ]
|
modules-right = if simplebar == true then [ "idle_inhibitor" "custom/themeselector" "custom/notification" "pulseaudio" "clock" "tray" ]
|
||||||
else [ "idle_inhibitor" "custom/themeselector" "custom/notification" "battery" "tray" ];
|
else [ "idle_inhibitor" "custom/themeselector" "custom/notification" "battery" "tray" ];
|
||||||
@ -80,7 +80,7 @@ in with lib; {
|
|||||||
car = "";
|
car = "";
|
||||||
default = ["" "" ""];
|
default = ["" "" ""];
|
||||||
};
|
};
|
||||||
on-click = "pavucontrol";
|
on-click = "sleep 0.1 && pavucontrol";
|
||||||
};
|
};
|
||||||
"custom/themeselector" = {
|
"custom/themeselector" = {
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
@ -92,7 +92,12 @@ in with lib; {
|
|||||||
tooltip = false;
|
tooltip = false;
|
||||||
format = " ";
|
format = " ";
|
||||||
# exec = "rofi -show drun";
|
# exec = "rofi -show drun";
|
||||||
on-click = "rofi-launcher";
|
on-click = "sleep 0.1 && rofi-launcher";
|
||||||
|
};
|
||||||
|
"custom/hyprbindings" = {
|
||||||
|
tooltip = false;
|
||||||
|
format = " Bindings";
|
||||||
|
on-click = "sleep 0.1 && list-hypr-bindings";
|
||||||
};
|
};
|
||||||
"idle_inhibitor" = {
|
"idle_inhibitor" = {
|
||||||
format = "{icon}";
|
format = "{icon}";
|
||||||
@ -118,7 +123,7 @@ in with lib; {
|
|||||||
return-type = "json";
|
return-type = "json";
|
||||||
exec-if = "which swaync-client";
|
exec-if = "which swaync-client";
|
||||||
exec = "swaync-client -swb";
|
exec = "swaync-client -swb";
|
||||||
on-click = "task-waybar";
|
on-click = "sleep 0.1 && task-waybar";
|
||||||
escape = true;
|
escape = true;
|
||||||
};
|
};
|
||||||
"battery" = {
|
"battery" = {
|
||||||
@ -411,6 +416,24 @@ in with lib; {
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
''}
|
''}
|
||||||
}
|
}
|
||||||
|
#custom-hyprbindings {
|
||||||
|
color: #${palette.base0E};
|
||||||
|
${if slickbar == true || slickbar-num == true then ''
|
||||||
|
background: #${palette.base00};
|
||||||
|
border-radius: 50px 15px 50px 15px;
|
||||||
|
margin: 5px;
|
||||||
|
padding: 2px 20px;
|
||||||
|
'' else if simplebar == true then ''
|
||||||
|
color: #${config.colorScheme.colors.base05};
|
||||||
|
background: transparent;
|
||||||
|
margin: 4px;
|
||||||
|
'' else ''
|
||||||
|
background: #${palette.base01};
|
||||||
|
margin: 4px;
|
||||||
|
padding: 2px 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
''}
|
||||||
|
}
|
||||||
#tray {
|
#tray {
|
||||||
color: #${palette.base05};
|
color: #${palette.base05};
|
||||||
${if slickbar == true || slickbar-num == true then ''
|
${if slickbar == true || slickbar-num == true then ''
|
||||||
|
Loading…
Reference in New Issue
Block a user