mirror of
https://github.com/caperren/nixos-configs.git
synced 2025-11-08 11:41:14 +00:00
Tweaked waybar config for a prettier setup, added hyprpaper and black default background, improved nus/nrs
This commit is contained in:
@@ -23,30 +23,27 @@
|
||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
|
||||
programs.hyprlock.enable = true;
|
||||
programs.waybar.enable = true;
|
||||
services.hypridle.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
waybar
|
||||
dunst
|
||||
libnotify
|
||||
rofi-wayland
|
||||
nwg-look
|
||||
nwg-displays
|
||||
slurp
|
||||
grim
|
||||
arandr
|
||||
wl-clipboard
|
||||
wlogout
|
||||
dunst
|
||||
flameshot
|
||||
wofi
|
||||
swayimg
|
||||
grim
|
||||
hyprpaper
|
||||
hyprpicker
|
||||
kanshi
|
||||
libnotify
|
||||
mako
|
||||
|
||||
(pkgs.waybar.overrideAttrs (oldAttrs: {
|
||||
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
||||
}))
|
||||
nwg-displays
|
||||
nwg-look
|
||||
rofi-wayland
|
||||
slurp
|
||||
swayimg
|
||||
wl-clipboard
|
||||
wlogout
|
||||
wofi
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
# Nix rebuild, switch
|
||||
nrs = "pushd /etc/nixos && { trap 'popd' EXIT; sudo nixos-rebuild switch --flake .#$(hostname); }";
|
||||
nrs = "bash -c \"cd /etc/nixos && sudo nixos-rebuild switch --flake .#$(hostname) ; exit\"";
|
||||
|
||||
# Nix flake update, rebuild, switch
|
||||
nus = "cd /etc/nixos && sudo nix flake update && sudo nixos-rebuild switch --flake .#$(hostname)";
|
||||
nus = "bash -c \"cd /etc/nixos && sudo nix flake update && sudo nixos-rebuild switch --flake .#$(hostname) ; exit\"";
|
||||
|
||||
# Special cleanup, needed when efi partition runs out of space. Deletes all but the last five generations.
|
||||
# Remember to make that partition bigger in the future...
|
||||
|
||||
@@ -38,11 +38,14 @@ in
|
||||
};
|
||||
|
||||
home.file.".config/hypr/hypridle.conf".source = ./dotfiles/hypridle/hypridle.conf;
|
||||
home.file.".config/hypr/hyprpaper.conf".source = ./dotfiles/hyprpaper/hyprpaper.conf;
|
||||
home.file.".config/hypr/backgrounds/black.png".source = ./dotfiles/hyprpaper/black.png;
|
||||
home.file.".config/hypr/hyprland-common.conf".source = ./dotfiles/hyprland/hyprland-common.conf;
|
||||
home.file.".config/hypr/hyprland.conf".source = hyprlandConfigPath + "/hyprland.conf";
|
||||
home.file.".config/kanshi/config".source = kanshiConfigPath + "/config";
|
||||
home.file.".config/spotify-player/app.toml".text = spotifyPlayerAppTomlText;
|
||||
home.file.".config/waybar/config".source = waybarConfigPath + "/config";
|
||||
home.file.".config/waybar/style.css".source = ./dotfiles/waybar/style.css;
|
||||
home.file.".config/wlogout/layout".source = ./dotfiles/wlogout/layout;
|
||||
|
||||
gtk = {
|
||||
|
||||
@@ -165,6 +165,7 @@ bind = ,XF86MonBrightnessUp, exec, brightnessctl s +1%
|
||||
exec-once = kanshi
|
||||
exec-once = ydotoold
|
||||
exec-once = hypridle
|
||||
exec-once = hyprpaper
|
||||
|
||||
exec-once = wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 10%
|
||||
|
||||
|
||||
BIN
users/caperren/dotfiles/hyprpaper/black.png
Normal file
BIN
users/caperren/dotfiles/hyprpaper/black.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
5
users/caperren/dotfiles/hyprpaper/hyprpaper.conf
Normal file
5
users/caperren/dotfiles/hyprpaper/hyprpaper.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
preload = ~/.config/hypr/backgrounds/black.png
|
||||
wallpaper = ,~/.config/hypr/backgrounds/black.png
|
||||
|
||||
ipc = off
|
||||
splash = false
|
||||
@@ -2,25 +2,28 @@
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"modules-left": [
|
||||
"custom/logo",
|
||||
// "custom/logo",
|
||||
"clock",
|
||||
"temperature",
|
||||
"disk",
|
||||
"memory",
|
||||
"cpu",
|
||||
"hyprland/window"
|
||||
"cpu"
|
||||
],
|
||||
"modules-center": [
|
||||
"hyprland/window",
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"idle_inhibitor",
|
||||
"pulseaudio",
|
||||
"battery",
|
||||
"backlight",
|
||||
"custom/exit"
|
||||
],
|
||||
"reload_style_on_change": true,
|
||||
"custom/logo": {
|
||||
"format": "<span font='20'></span>",
|
||||
"format": "<span font='15'></span>",
|
||||
"tooltip": false
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
@@ -38,8 +41,51 @@
|
||||
"9": "9"
|
||||
}
|
||||
},
|
||||
"backlight": {
|
||||
"device": "intel_backlight",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": [
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"battery": {
|
||||
"bat": "BAT0",
|
||||
"adapter": "AC",
|
||||
"interval": 10,
|
||||
"full-at": 100,
|
||||
"states": {
|
||||
"full": 100,
|
||||
"good": 75,
|
||||
"warning": 30,
|
||||
"critical": 15,
|
||||
"empty": 5
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"temperature": {
|
||||
"interval": 1,
|
||||
"critical-threshold": 90,
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "<span font='16'>{icon}</span>",
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
@@ -48,9 +94,9 @@
|
||||
"tooltip-format-deactivated": "idle-inhibitor <span color='#ee99a0'>off</span>"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%I:%M:%S %p | %a | %F}",
|
||||
"format": "{:%I:%M:%S %p} |",
|
||||
"interval": 1,
|
||||
"tooltip-format": "\n<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"tooltip-format": "<big>{:%I:%M:%S %p | %a | %F}</big>\n\n<tt><big>{calendar}</big></tt>",
|
||||
"calendar-weeks-pos": "right",
|
||||
"today-format": "<span color='#7645AD'><b><u>{}</u></b></span>",
|
||||
"format-calendar": "<span color='#aeaeae'><b>{}</b></span>",
|
||||
@@ -59,34 +105,37 @@
|
||||
},
|
||||
"disk": {
|
||||
"interval": 30,
|
||||
"format": " {percentage_used}%",
|
||||
"path": "/"
|
||||
"format": " {}%",
|
||||
"tooltip-format": "{used} / {total} used"
|
||||
},
|
||||
"cpu": {
|
||||
"format": " {usage:02}% {icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}",
|
||||
"tooltip": false,
|
||||
"interval": 1,
|
||||
"format": " {usage}%",
|
||||
"min-length": 6,
|
||||
"max-length": 6,
|
||||
"format-icons": [
|
||||
"▁",
|
||||
"▂",
|
||||
"▃",
|
||||
"▄",
|
||||
"▅",
|
||||
"▆",
|
||||
"▇",
|
||||
"█"
|
||||
// green,
|
||||
"<span color='#69ff94'>▁</span>",
|
||||
// blue,
|
||||
"<span color='#2aa9ff'>▂</span>",
|
||||
// white,
|
||||
"<span color='#f8f8f2'>▃</span>",
|
||||
// white,
|
||||
"<span color='#f8f8f2'>▄</span>",
|
||||
// yellow,
|
||||
"<span color='#ffffa5'>▅</span>",
|
||||
// yellow,
|
||||
"<span color='#ffffa5'>▆</span>",
|
||||
// orange,
|
||||
"<span color='#ff9977'>▇</span>",
|
||||
// red,
|
||||
"<span color='#dd532e'>█</span>"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"format": " {percentage}%"
|
||||
"format": " {percentage:02}%"
|
||||
},
|
||||
"hyprland/window": {
|
||||
"format": "( {class} )",
|
||||
"rewrite": {
|
||||
"(.*) - Mozilla Firefox": "🌎 $1",
|
||||
"(.*) - zsh": "> [$1]"
|
||||
}
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{volume:02}% {icon}",
|
||||
@@ -116,7 +165,7 @@
|
||||
"spacing": 10
|
||||
},
|
||||
"custom/exit": {
|
||||
"format": "",
|
||||
"format": "| ",
|
||||
"on-click": "wlogout -b 2",
|
||||
"tooltip": false
|
||||
}
|
||||
|
||||
@@ -2,14 +2,15 @@
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"modules-left": [
|
||||
"custom/logo",
|
||||
// "custom/logo",
|
||||
"clock",
|
||||
"temperature",
|
||||
"disk",
|
||||
"memory",
|
||||
"cpu",
|
||||
"hyprland/window"
|
||||
"cpu"
|
||||
],
|
||||
"modules-center": [
|
||||
"hyprland/window",
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-right": [
|
||||
@@ -22,7 +23,7 @@
|
||||
],
|
||||
"reload_style_on_change": true,
|
||||
"custom/logo": {
|
||||
"format": "<span font='20'></span>",
|
||||
"format": "<span font='15'></span>",
|
||||
"tooltip": false
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
@@ -50,23 +51,42 @@
|
||||
},
|
||||
"battery": {
|
||||
"bat": "BAT0",
|
||||
"interval": 60,
|
||||
"adapter": "AC",
|
||||
"interval": 10,
|
||||
"full-at": 100,
|
||||
"states": {
|
||||
"full": 100,
|
||||
"good": 75,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
"critical": 15,
|
||||
"empty": 5
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"max-length": 25
|
||||
]
|
||||
},
|
||||
"temperature": {
|
||||
"hwmon-path": "/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon5/temp1_input",
|
||||
"interval": 1,
|
||||
"critical-threshold": 90,
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "<span font='16'>{icon}</span>",
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
@@ -75,9 +95,9 @@
|
||||
"tooltip-format-deactivated": "idle-inhibitor <span color='#ee99a0'>off</span>"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%I:%M:%S %p | %a | %F}",
|
||||
"format": "{:%I:%M:%S %p} |",
|
||||
"interval": 1,
|
||||
"tooltip-format": "\n<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"tooltip-format": "<big>{:%I:%M:%S %p | %a | %F}</big>\n\n<tt><big>{calendar}</big></tt>",
|
||||
"calendar-weeks-pos": "right",
|
||||
"today-format": "<span color='#7645AD'><b><u>{}</u></b></span>",
|
||||
"format-calendar": "<span color='#aeaeae'><b>{}</b></span>",
|
||||
@@ -86,34 +106,37 @@
|
||||
},
|
||||
"disk": {
|
||||
"interval": 30,
|
||||
"format": " {percentage_used}%",
|
||||
"path": "/"
|
||||
"format": " {}%",
|
||||
"tooltip-format": "{used} / {total} used"
|
||||
},
|
||||
"cpu": {
|
||||
"format": " {usage:02}% {icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}",
|
||||
"tooltip": false,
|
||||
"interval": 1,
|
||||
"format": " {usage}%",
|
||||
"min-length": 6,
|
||||
"max-length": 6,
|
||||
"format-icons": [
|
||||
"▁",
|
||||
"▂",
|
||||
"▃",
|
||||
"▄",
|
||||
"▅",
|
||||
"▆",
|
||||
"▇",
|
||||
"█"
|
||||
// green,
|
||||
"<span color='#69ff94'>▁</span>",
|
||||
// blue,
|
||||
"<span color='#2aa9ff'>▂</span>",
|
||||
// white,
|
||||
"<span color='#f8f8f2'>▃</span>",
|
||||
// white,
|
||||
"<span color='#f8f8f2'>▄</span>",
|
||||
// yellow,
|
||||
"<span color='#ffffa5'>▅</span>",
|
||||
// yellow,
|
||||
"<span color='#ffffa5'>▆</span>",
|
||||
// orange,
|
||||
"<span color='#ff9977'>▇</span>",
|
||||
// red,
|
||||
"<span color='#dd532e'>█</span>"
|
||||
]
|
||||
},
|
||||
"memory": {
|
||||
"format": " {percentage}%"
|
||||
"format": " {percentage:02}%"
|
||||
},
|
||||
"hyprland/window": {
|
||||
"format": "( {class} )",
|
||||
"rewrite": {
|
||||
"(.*) - Mozilla Firefox": "🌎 $1",
|
||||
"(.*) - zsh": "> [$1]"
|
||||
}
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{volume:02}% {icon}",
|
||||
@@ -143,7 +166,7 @@
|
||||
"spacing": 10
|
||||
},
|
||||
"custom/exit": {
|
||||
"format": "",
|
||||
"format": "| ",
|
||||
"on-click": "wlogout -b 2",
|
||||
"tooltip": false
|
||||
}
|
||||
|
||||
50
users/caperren/dotfiles/waybar/style.css
Normal file
50
users/caperren/dotfiles/waybar/style.css
Normal file
@@ -0,0 +1,50 @@
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-size: 14px;
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
transition-duration: 0s;
|
||||
}
|
||||
|
||||
window {
|
||||
background: rgba(0, 0, 0, 0.00);
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
color: rgba(217, 216, 216, 0.4);
|
||||
}
|
||||
|
||||
#workspaces button.visible {
|
||||
color: rgba(217, 216, 216, 1);
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
border-top: 3px solid rgba(217, 216, 216, 1);
|
||||
border-bottom: 3px solid rgba(217, 216, 216, 0);
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: rgba(238, 46, 36, 1);
|
||||
}
|
||||
|
||||
#memory,
|
||||
#idle_inhibitor,
|
||||
#pulseaudio,
|
||||
#backlight {
|
||||
margin: 0 6px 0 10px;
|
||||
}
|
||||
|
||||
#disk {
|
||||
margin: 0 0 0 10px;
|
||||
|
||||
}
|
||||
|
||||
#clock {
|
||||
margin: 0 6px 0 10px;
|
||||
}
|
||||
|
||||
#custom-exit {
|
||||
margin: 0 16px 0 6px;
|
||||
}
|
||||
Reference in New Issue
Block a user