Update binds and add compact versions of more waybar modules

This commit is contained in:
Evie Litherland-Smith 2023-07-10 15:51:03 +01:00
parent 488a3b47ee
commit 7a3534ee1b
7 changed files with 110 additions and 47 deletions

View file

@ -186,7 +186,7 @@
xdg.configFile."hypr/display.conf".text = '' xdg.configFile."hypr/display.conf".text = ''
monitor=desc:Iiyama North America PLB2403WS 0574281251316,1920x1200,0x185,1 monitor=desc:Iiyama North America PLB2403WS 0574281251316,1920x1200,0x185,1
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,1920x1080,1920x0,1,transform,1 monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,1920x1080,1920x0,1,transform,1
monitor=eDP-1,1920x1080,0x1385,1 monitor=eDP-1,1920x1080,640x1385,1.5
monitor=,preferred,auto,auto monitor=,preferred,auto,auto
''; '';
}; };

View file

@ -135,13 +135,21 @@ in {
bind = SUPER SHIFT, K, movewindow, u bind = SUPER SHIFT, K, movewindow, u
bind = SUPER SHIFT, J, movewindow, d bind = SUPER SHIFT, J, movewindow, d
bind = SUPER, A, moveworkspacetomonitor, 1 current
bind = SUPER, A, workspace, 1 bind = SUPER, A, workspace, 1
bind = SUPER, S, moveworkspacetomonitor, 2 current
bind = SUPER, S, workspace, 2 bind = SUPER, S, workspace, 2
bind = SUPER, D, moveworkspacetomonitor, 3 current
bind = SUPER, D, workspace, 3 bind = SUPER, D, workspace, 3
bind = SUPER, F, moveworkspacetomonitor, 4 current
bind = SUPER, F, workspace, 4 bind = SUPER, F, workspace, 4
bind = SUPER, U, moveworkspacetomonitor, 5 current
bind = SUPER, U, workspace, 5 bind = SUPER, U, workspace, 5
bind = SUPER, I, moveworkspacetomonitor, 6 current
bind = SUPER, I, workspace, 6 bind = SUPER, I, workspace, 6
bind = SUPER, O, moveworkspacetomonitor, 7 current
bind = SUPER, O, workspace, 7 bind = SUPER, O, workspace, 7
bind = SUPER, P, moveworkspacetomonitor, 8 current
bind = SUPER, P, workspace, 8 bind = SUPER, P, workspace, 8
bind = SUPER SHIFT, A, movetoworkspace, 1 bind = SUPER SHIFT, A, movetoworkspace, 1
bind = SUPER SHIFT, S, movetoworkspace, 2 bind = SUPER SHIFT, S, movetoworkspace, 2
@ -171,25 +179,34 @@ in {
bindm = SUPER, mouse:273, resizewindow bindm = SUPER, mouse:273, resizewindow
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
windowrule = float, ^(foot)$ windowrule = workspace 2,(neovide)
windowrule = float, ^(pavucontrol)$ windowrule = workspace 3,(firefox)
windowrule = float, ^(.blueman-manager-wrapped)$ windowrule = workspace 4,(libreoffice).*
windowrule = float, ^(nm-connection-editor)$ windowrule = workspace 4,(Zotero)
windowrule = float, ^(otpclient)$ windowrule = workspace 5,(Signal)
windowrule = float, ^(thunar)$ windowrule = workspace 5,(fractal)
windowrule = workspace 5,(discord)
windowrule = center, ^(foot)$ windowrule = workspace 5,(teams-for-linux)
windowrule = center, ^(pavucontrol)$ windowrule = workspace 5,title:^(Zoom|zoom).*,xwayland:1
windowrule = center, ^(.blueman-manager-wrapped)$ windowrule = nofullscreenrequest,title:^(Zoom|zoom).*
windowrule = center, ^(nm-connection-editor)$ windowrule = workspace 6,(Nxplayer.bin)
windowrule = move 2% 6%, ^(otpclient)$ windowrule = float,class:(Nxplayer.bin),title:^(NoMachine)$
windowrule = maximize,class:(Nxplayer.bin),title:^(NoMachine).+$
windowrule = workspace 2, neovide windowrule = float,(foot)
windowrule = workspace 3, firefox windowrule = center,(foot)
windowrule = workspace 5 silent, ^(Signal|fractal|discord|teams-for-linux)$ windowrule = float,(pavucontrol)
windowrule = workspace 4, thunar windowrule = size 800 600,(pavucontrol)
windowrule = workspace 4, libreoffice.* windowrule = move 100%-820 10%,(pavucontrol)
windowrule = workspace 4, Zotero windowrule = float,(.blueman-manager-wrapped)
windowrule = size 800 600,(.blueman-manager-wrapped)
windowrule = move 100%-820 10%,(.blueman-manager-wrapped)
windowrule = float,(nm-connection-editor)
windowrule = size 800 600,(nm-connection-editor)
windowrule = move 100%-820 10%,(nm-connection-editor)
windowrule = float,(otpclient)
windowrule = move 10% 10%,(otpclient)
windowrule = float,(thunar)
windowrule = center,(thunar)
''; '';
}; };
xdg.configFile."hypr/display.conf".text = lib.mkDefault '' xdg.configFile."hypr/display.conf".text = lib.mkDefault ''

View file

@ -11,20 +11,20 @@ in {
margin-right = 20; margin-right = 20;
margin-bottom = 5; margin-bottom = 5;
"modules-left" = [ "modules-left" = [
"clock#compact" "wlr/workspaces"
"cpu" "cpu"
"memory" "memory"
"temperature" "temperature"
]; ];
"modules-center" = [ "modules-center" = [
"wlr/workspaces" "clock#compact"
]; ];
"modules-right" = [ "modules-right" = [
"pulseaudio" "pulseaudio#compact"
"bluetooth" "bluetooth#compact"
"network#compact" "network#compact"
"backlight" "backlight"
"battery" "battery#compact"
"tray" "tray"
]; ];
"clock#compact" = modules."clock#compact"; "clock#compact" = modules."clock#compact";
@ -32,11 +32,11 @@ in {
memory = modules.memory; memory = modules.memory;
temperature = modules.temperature; temperature = modules.temperature;
"wlr/workspaces" = modules."wlr/workspaces"; "wlr/workspaces" = modules."wlr/workspaces";
pulseaudio = modules.pulseaudio; "pulseaudio#compact" = modules."pulseaudio#compact";
bluetooth = modules.bluetooth; "bluetooth#compact" = modules."bluetooth#compact";
"network#compact" = modules."network#compact"; "network#compact" = modules."network#compact";
backlight = modules.backlight; backlight = modules.backlight;
battery = modules.battery; "battery#compact" = modules."battery#compact";
tray = modules.tray; tray = modules.tray;
}; };
} }

View file

@ -11,13 +11,13 @@ in {
margin-right = 20; margin-right = 20;
margin-bottom = 5; margin-bottom = 5;
"modules-left" = [ "modules-left" = [
"clock" "wlr/workspaces"
"cpu" "cpu"
"memory" "memory"
"temperature" "temperature"
]; ];
"modules-center" = [ "modules-center" = [
"wlr/workspaces" "clock"
]; ];
"modules-right" = [ "modules-right" = [
"pulseaudio" "pulseaudio"

View file

@ -36,7 +36,22 @@
}; };
"clock#compact" = { "clock#compact" = {
format = "{:%R 󰅐 }"; format = "{:%R 󰅐 }";
tooltip-format = "{:%A %Y-%m-%d 󰃭 }"; format-alt = "{:%A %Y-%m-%d 󰃭 }";
tooltip-format = "<tt>{calendar}</tt>";
calendar = {
mode = "year";
mode-mon-col = 3;
weeks-pos = "right";
on-scroll = 1;
on-click-right = "mode";
format = {
months = "<span color='#ffead3'><b>{}</b></span>";
days = "<span color='#ecc6d9'><b>{}</b></span>";
weeks = "<span color='#99ffdd'><b>W{}</b></span>";
weekdays = "<span color='#ffcc66'><b>{}</b></span>";
today = "<span color='#ff6699'><b><u>{}</u></b></span>";
};
};
}; };
cpu = { cpu = {
format = "{usage}% 󰻠"; format = "{usage}% 󰻠";
@ -53,7 +68,8 @@
]; ];
}; };
backlight = { backlight = {
format = "{percent}% {icon}"; format = "{icon}";
tooltip-format = "{percent}%";
format-icons = [ format-icons = [
"" ""
"" ""
@ -71,10 +87,32 @@
warning = 30; warning = 30;
critical = 15; critical = 15;
}; };
format = "{capacity}% {icon}"; format = "{time} {capacity}% {icon}";
format-charging = "{capacity}% 󰂄"; format-charging = "{time} {capacity}% 󰂄";
format-plugged = "{capacity}% 󰚥"; format-plugged = "{capacity}% 󰚥";
format-alt = "{time} {icon}"; format-icons = [
"󱃍"
"󰁺"
"󰁻"
"󰁼"
"󰁽"
"󰁾"
"󰁿"
"󰂀"
"󰂁"
"󰂂"
"󰁹"
];
};
"battery#compact" = {
states = {
warning = 30;
critical = 15;
};
format = "{icon}";
format-charging = "󰂄";
format-plugged = "󰚥";
tooltip-format = "{time} {capacity}%";
format-icons = [ format-icons = [
"󱃍" "󱃍"
"󰁺" "󰁺"
@ -95,7 +133,6 @@
tooltip-format = "{ifname}"; tooltip-format = "{ifname}";
format-linked = "{ifname} (No IP) 󰈁"; format-linked = "{ifname} (No IP) 󰈁";
format-disconnected = "Disconnected 󰈂"; format-disconnected = "Disconnected 󰈂";
format-alt = "{ifname}: {ipaddr}/{cidr}";
on-click = "nm-connection-editor"; on-click = "nm-connection-editor";
}; };
"network#compact" = { "network#compact" = {
@ -114,6 +151,15 @@
format-connected = "󰂱 {device_alias}"; format-connected = "󰂱 {device_alias}";
on-click = "blueman-manager"; on-click = "blueman-manager";
}; };
"bluetooth#compact" = {
format = "󰂯";
format-disabled = "󰂲";
format-off = "󰂲";
format-on = "󰂯";
format-connected = "󰂱";
tooltip-format = "{status} | {device_alias}";
on-click = "blueman-manager";
};
pulseaudio = { pulseaudio = {
scroll-step = 5; scroll-step = 5;
format = "{volume}% {icon} {format_source}"; format = "{volume}% {icon} {format_source}";
@ -167,7 +213,7 @@
"wlr/workspaces" = { "wlr/workspaces" = {
on-click = "activate"; on-click = "activate";
disable-scroll = true; disable-scroll = true;
all-outputs = true; all-outputs = false;
format = "{icon}"; format = "{icon}";
format-icons = { format-icons = {
"1" = "󰟀"; "1" = "󰟀";
@ -181,8 +227,6 @@
urgent = ""; urgent = "";
default = "󰣘"; default = "󰣘";
}; };
sort-by-name = true; sort-by-number = true;
sort-by-coordinates = false;
sort-by-number = false;
}; };
} }

View file

@ -75,12 +75,12 @@ window#waybar.hidden {
} }
/* left section */ /* left section */
#clock, #workspaces,
#cpu, #cpu,
#memory, #memory,
#temperature, #temperature,
/* centre section */ /* centre section */
#workspaces, #clock,
/* right section */ /* right section */
#pulseaudio, #pulseaudio,
#bluetooth, #bluetooth,
@ -99,7 +99,7 @@ window#waybar.hidden {
background: @lavender; background: @lavender;
} }
#clock { #workspaces {
background: @lavender; background: @lavender;
} }
#cpu { #cpu {
@ -111,7 +111,7 @@ window#waybar.hidden {
#temperature { #temperature {
background: @red; background: @red;
} }
#workspaces { #clock {
background: @yellow; background: @yellow;
} }
#pulseaudio { #pulseaudio {

View file

@ -11,10 +11,12 @@ in {
margin-left = 20; margin-left = 20;
margin-right = 20; margin-right = 20;
margin-bottom = 5; margin-bottom = 5;
"modules-left" = []; "modules-left" = ["wlr/workspaces"];
"modules-center" = ["wlr/workspaces"]; "modules-center" = ["clock#compact"];
"modules-right" = []; "modules-right" = ["tray"];
"wlr/workspaces" = modules."wlr/workspaces"; "wlr/workspaces" = modules."wlr/workspaces";
"clock#compact" = modules."clock#compact";
tray = modules.tray;
}; };
}; };
} }