laptop fixes

This commit is contained in:
2026-07-21 20:29:28 +02:00
parent 7e7c62ec42
commit 1e2f869bf3
4 changed files with 51 additions and 15 deletions
+2 -2
View File
@@ -81,8 +81,8 @@ hl.bind(main_mod .. " + XF86AudioRaiseVolume", hl.dsp.exec_cmd("playerctl next")
hl.bind(main_mod .. " + XF86AudioLowerVolume", hl.dsp.exec_cmd("playerctl previous"), { locked = true }) hl.bind(main_mod .. " + XF86AudioLowerVolume", hl.dsp.exec_cmd("playerctl previous"), { locked = true })
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd('light -A 5'), { locked = true }) hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd('light -A 5'), { locked = true })
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd('light -U 5'), { locked = true }) hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd('light -U 5'), { locked = true })
hl.bind(main_mod .. " + XF86MonBrightnessDown", hl.dsp.exec_cmd('light -S 0.1 && notify-send "Brightness set to min"'), { locked = true }) hl.bind(main_mod .. " + XF86MonBrightnessDown", hl.dsp.exec_cmd('light -S 0.0'), { locked = true })
hl.bind(main_mod .. " + XF86MonBrightnessUp", hl.dsp.exec_cmd('light -S 100 && notify-send "Brightness set to max"'), { locked = true }) hl.bind(main_mod .. " + XF86MonBrightnessUp", hl.dsp.exec_cmd('light -S 100'), { locked = true })
hl.bind("XF86Calculator", hl.dsp.exec_cmd("qalculate-qt"), { locked = true }) hl.bind("XF86Calculator", hl.dsp.exec_cmd("qalculate-qt"), { locked = true })
-- Retain i3's hjkl and arrow-key directional workflow. -- Retain i3's hjkl and arrow-key directional workflow.
@@ -1,10 +1,11 @@
# Laptop-specific Noctalia layout. Shared privacy/theme defaults live in 10-base.toml. # Laptop-specific Noctalia layout. Shared privacy/theme defaults live in 10-base.toml.
[bar.main] [bar.main]
position = "top" position = "top"
layer = "overlay" layer = "top"
scale = 0.95
capsule_radius = 5 capsule_radius = 5
center = ["group:g3", "notifications"] center = ["group:g3", "notifications"]
end = ["bluetooth", "volume", "control-center", "group:g1", "session"] end = ["group:g2", "group:g6", "group:g5", "group:g1", "session"]
font_weight = 400 font_weight = 400
margin_ends = 0 margin_ends = 0
padding = 0 padding = 0
@@ -14,8 +15,8 @@ shadow = false
auto_hide = false auto_hide = false
smart_auto_hide = false smart_auto_hide = false
reserve_space = true reserve_space = true
start = ["tray", "group:g4", "group:g2", "privacy"] start = ["tray", "group:g4", "privacy"]
thickness = 39 thickness = 28
widget_spacing = 10 widget_spacing = 10
[[bar.main.capsule_group]] [[bar.main.capsule_group]]
@@ -30,7 +31,7 @@ padding = 6.0
enabled = true enabled = true
fill = "surface_variant" fill = "surface_variant"
id = "g2" id = "g2"
members = ["network_rx", "network_tx", "network"] members = ["network_rx", "network_tx", "network", "bluetooth"]
opacity = 1.0 opacity = 1.0
padding = 6.0 padding = 6.0
@@ -47,10 +48,28 @@ radius = 5.0
enabled = true enabled = true
fill = "surface_variant" fill = "surface_variant"
id = "g4" id = "g4"
members = ["cpu", "temp", "ram", "disk", "battery"] members = ["gpu-mode", "cpu", "temp", "ram", "disk"]
opacity = 1.0 opacity = 1.0
padding = 6.0 padding = 6.0
[[bar.main.capsule_group]]
enabled = true
fill = "surface_variant"
id = "g5"
members = ["battery-rate", "battery", "power_profile"]
opacity = 1.0
padding = 6.0
radius = 5.0
[[bar.main.capsule_group]]
enabled = true
fill = "surface_variant"
id = "g6"
members = ["input_volume", "volume"]
opacity = 1.0
padding = 6.0
radius = 5.0
[widget.cpu] [widget.cpu]
type = "alex/system-status:cpu" type = "alex/system-status:cpu"
@@ -68,6 +87,12 @@ stat = "disk_pct"
display = "text" display = "text"
path = "/" path = "/"
[widget.battery-rate]
type = "alex/system-status:battery-rate"
[widget.gpu-mode]
type = "alex/system-status:gpu-mode"
[control_center] [control_center]
sidebar = "full" sidebar = "full"
sidebar_section = "full" sidebar_section = "full"
@@ -12,3 +12,11 @@ entry = "cpu.luau"
[[widget]] [[widget]]
id = "memory" id = "memory"
entry = "memory.luau" entry = "memory.luau"
[[widget]]
id = "battery-rate"
entry = "battery-rate.luau"
[[widget]]
id = "gpu-mode"
entry = "gpu-mode.luau"
+10 -7
View File
@@ -32,9 +32,12 @@ bind e new-window -n tmux.conf "exec \${EDITOR:-nvim} ~/.tmux.conf"
# --- Vim-style panes ---------------------------------------------------------- # --- Vim-style panes ----------------------------------------------------------
# Keep the familiar split keys and always inherit the active pane's directory. # Keep the familiar split keys and always inherit the active pane's directory.
bind - split-window -v -c "#{pane_current_path}" bind m split-window -v -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}" bind n split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}"
# Re-tile the current window using Ctrl-a, Ctrl-h / Ctrl-a, Ctrl-k.
bind C-h select-layout even-vertical
bind C-k select-layout even-horizontal
bind -r h select-pane -L bind -r h select-pane -L
bind -r j select-pane -D bind -r j select-pane -D
@@ -47,15 +50,15 @@ bind -r L resize-pane -R 5
bind -r \{ swap-pane -U bind -r \{ swap-pane -U
bind -r \} swap-pane -D bind -r \} swap-pane -D
bind z resize-pane -Z bind z resize-pane -Z
bind x confirm-before -p "kill pane #P? (y/n)" kill-pane bind w confirm-before -p "kill pane #P? (y/n)" kill-pane
# --- Windows, sessions, and buffers ------------------------------------------ # --- Windows, sessions, and buffers ------------------------------------------
bind -r n next-window bind -r f next-window
bind -r p previous-window bind -r b previous-window
bind Tab last-window bind Tab last-window
bind w choose-tree -Zw bind d choose-tree -Zw
bind s choose-tree -Zs bind s choose-tree -Zs
bind f command-prompt -p "switch to session:" "switch-client -t '%%'" bind g command-prompt -p "switch to session:" "switch-client -t '%%'"
bind [ choose-buffer bind [ choose-buffer
bind P paste-buffer # tmux buffer fallback; prefix + ] pastes the system clipboard bind P paste-buffer # tmux buffer fallback; prefix + ] pastes the system clipboard
bind C-l send-keys C-l \; clear-history bind C-l send-keys C-l \; clear-history