Compare commits

2 Commits

Author SHA1 Message Date
6e5c801507 laptop thinkpad config 2025-07-03 01:38:05 +09:30
86c7d6f997 Updated waybar for laptop 2025-07-03 01:37:22 +09:30
3 changed files with 19 additions and 9 deletions

View File

@@ -369,6 +369,13 @@ window-rule {
default-column-width { proportion 0.66667; } default-column-width { proportion 0.66667; }
} }
window-rule {
// Nautilus open dialog should be floating
match app-id="org.gnome.Nautilus" title=r#"^Open"#
open-floating true
}
// Example: block out two password managers from screen capture. // Example: block out two password managers from screen capture.
// (This example rule is commented out with a "/-" in front.) // (This example rule is commented out with a "/-" in front.)
/-window-rule { /-window-rule {
@@ -412,6 +419,7 @@ binds {
// toggle notification panel // toggle notification panel
Mod+Shift+N hotkey-overlay-title="Toggle notification window" { spawn "swaync-client" "-t"; } Mod+Shift+N hotkey-overlay-title="Toggle notification window" { spawn "swaync-client" "-t"; }
XF86NotificationCenter hotkey-overlay-title="Toggle notification window" { spawn "swaync-client" "-t"; }
// You can also use a shell. Do this if you need pipes, multiple commands, etc. // You can also use a shell. Do this if you need pipes, multiple commands, etc.
// Note: the entire command goes as a single argument in the end. // Note: the entire command goes as a single argument in the end.
// Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; } // Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; }
@@ -423,6 +431,7 @@ binds {
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
XF86AudioPlay allow-when-locked=true { spawn "playerctl" "play-pause"; } XF86AudioPlay allow-when-locked=true { spawn "playerctl" "play-pause"; }
XF86Favorites allow-when-locked=true { spawn "playerctl" "play-pause"; }
// Open/close the Overview: a zoomed-out view of workspaces and windows. // Open/close the Overview: a zoomed-out view of workspaces and windows.
// You can also move the mouse into the top-left hot corner, // You can also move the mouse into the top-left hot corner,

View File

@@ -1,8 +1,8 @@
{ {
"layer": "top", // Waybar at top layer "layer": "top", // Waybar at top layer
"output": ["eDP-1", "DP-1"], // Only display on on monitor "output": ["DP-1", "eDP-1"], // Only display on on monitor
"position": "top", // Waybar position (top|bottom|left|right) "position": "top", // Waybar position (top|bottom|left|right)
"height": 36, // Waybar height (to be removed for auto height) "height": 28, // Waybar height (to be removed for auto height)
// Choose the order of the modules // Choose the order of the modules
"modules-left": [ "modules-left": [
"custom/logo", "custom/logo",
@@ -42,7 +42,7 @@
}, },
"wlr/taskbar": { "wlr/taskbar": {
"active-first": true, "active-first": true,
"icon-size": 24, "icon-size": 20,
"on-click": "activate", "on-click": "activate",
"on-click-middle": "close", "on-click-middle": "close",
"app_ids-mapping": { "app_ids-mapping": {
@@ -59,7 +59,7 @@
} }
}, },
"tray": { "tray": {
// "icon-size": 21, "icon-size": 20,
"spacing": 10 "spacing": 10
}, },
"clock": { "clock": {
@@ -92,7 +92,7 @@
"on-click-right": "exec wezterm -e btm" "on-click-right": "exec wezterm -e btm"
}, },
"memory": { "memory": {
"format": "{percentage}% / {used:0.1f}GiB ", "format": "{percentage}% ",
"on-click-right": "exec wezterm -e btm" "on-click-right": "exec wezterm -e btm"
}, },
"temperature": { "temperature": {
@@ -118,7 +118,7 @@
}, },
"format": "{capacity}% {icon}", "format": "{capacity}% {icon}",
"format-charging": "{capacity}% 󱐋", "format-charging": "{capacity}% 󱐋",
"format-plugged": "{capacity}% ", "format-plugged": "",
"format-alt": "{capacity}% {time}", "format-alt": "{capacity}% {time}",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },

View File

@@ -12,6 +12,7 @@
#waybar { #waybar {
background-color: alpha(@base, 0.7); background-color: alpha(@base, 0.7);
/* background: transparent; */ /* background: transparent; */
margin: 0px;
} }
#custom-logo { #custom-logo {
@@ -19,7 +20,7 @@
background-color: @base; background-color: @base;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 24px; background-size: 40%;
padding: 0px 8px 0px 24px; padding: 0px 8px 0px 24px;
} }
@@ -34,7 +35,7 @@
#custom-pl-pulse, #custom-pl-pulse,
#custom-pl-idle-before, #custom-pl-idle-before,
#custom-pl-tray { #custom-pl-tray {
font-size: 26px; font-size: 24px;
} }
#workspaces *, #workspaces *,
@@ -43,8 +44,8 @@
#clock, #clock,
#idle_inhibitor, #idle_inhibitor,
#cpu, #cpu,
#battery,
#memory, #memory,
#battery,
#temperature, #temperature,
#pulseaudio, #pulseaudio,
#custom-power, #custom-power,