Compare commits

...

3 commits

Author SHA1 Message Date
5076625c18
Add bluetooth management 2025-08-08 16:25:19 +10:00
c7e003b735
Add brightness control to niri 2025-08-08 16:22:53 +10:00
4a5ea07130
Improve battery and network in waybar 2025-08-08 16:09:54 +10:00
4 changed files with 22 additions and 8 deletions

View file

@ -96,7 +96,7 @@ kitty-terminal:
[group("graphical")]
niri-window-manager:
@just _echowarning "1) Installing niri and related tools"
paru -S cliphist fuzzel gdm gnome-keyring inter-font mako niri-git noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra polkit-kde-agent swayidle swaylock ttf-firacode-nerd ttf-font-awesome waybar wl-clipboard wlsunset wpaperd xdg-desktop-portal-gnome xwayland-satellite-git
paru -S blueberry brightnessctl cliphist fuzzel gdm gnome-keyring inter-font mako niri-git noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra polkit-kde-agent swayidle swaylock ttf-firacode-nerd ttf-font-awesome waybar wl-clipboard wlsunset wpaperd xdg-desktop-portal-gnome xwayland-satellite-git
@just _echowarning "\n2) Stowing niri config"
stow --dotfiles -S niri

View file

@ -232,9 +232,6 @@ binds {
Control+Shift+Escape {
spawn "kitty" "-e" "btop"
}
// 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.
// Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; }
// Volume keys mappings for PipeWire & WirePlumber.
XF86AudioRaiseVolume allow-when-locked=true {
spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"
@ -248,6 +245,13 @@ binds {
XF86AudioMicMute allow-when-locked=true {
spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"
}
// Brightness keys mappings
XF86MonBrightnessDown allow-when-locked=true {
spawn "brightnessctl" "set" "5%-";
}
XF86MonBrightnessUp allow-when-locked=true {
spawn "brightnessctl" "set" "5%+";
}
Alt+F4 {
close-window
}

View file

@ -16,8 +16,8 @@
"modules-right": [
"tray",
"idle_inhibitor",
"battery",
"power-profiles-daemon",
"battery",
"wireplumber",
"bluetooth",
"network"
@ -56,7 +56,14 @@
}
},
"battery": {
"format": "{icon} {capacity}%"
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
]
},
"power-profiles-daemon": {
"format-icons": {
@ -77,12 +84,14 @@
},
"bluetooth": {
"format-disabled": "",
"format-connected": " {num_connections}"
"format-connected": " {num_connections}",
"on-click": "blueberry"
},
"network": {
"format-ethernet": "󰛳 Wired",
"format-wifi": " {essid}",
"format-disconnected": "󰅛 Disconnected",
"on-click": "$TERMINAL -e nmtui",
"tooltip-format-ethernet": "Interface: {ifname}\nIP: {ipaddr}\nGateway: {gwaddr}",
"tooltip-format-wifi": "{frequency}GHz {signalStrength}%\n\nInterface: {ifname}\nIP: {ipaddr}\nGateway: {gwaddr}",
"tooltip-format-disconnected": ""

View file

@ -100,7 +100,8 @@ button:hover {
color: #15161e;
}
#battery.critical:not(.charging) {
#battery.critical:not(.charging),
#battery.warning:not(.charging) {
background-color: #f7768e;
color: #15161e;
}