chore: merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
Ahwx 2024-09-04 21:16:10 +02:00
commit df6f1dc43e
18 changed files with 865 additions and 55 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 824 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 749 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View file

@ -26,14 +26,12 @@
</div> </div>
</h1> </h1>
<!--
### Gallery ### Gallery
<p align="center"> <p align="center">
<img src="./.github/assets/screenshots/1.png" /> <br> <img src="./.github/assets/screenshots/sakura-desktop.png" /> <br>
Screenshots last updated <b>2024-04-09</b> Screenshots last updated <b>2024-09-04</b>
</p> --> </p>
# Overview # Overview
@ -217,6 +215,7 @@ Other dotfiles that I learned / copy from:
- [Frost-Phoenix/nixos-config](https://github.com/Frost-Phoenix/nixos-config): This is the repository that I cloned and changed to my needs. Their credits are in their repository's readme. - [Frost-Phoenix/nixos-config](https://github.com/Frost-Phoenix/nixos-config): This is the repository that I cloned and changed to my needs. Their credits are in their repository's readme.
- [notthebee/nix-config](https://github.com/notthebee/nix-config) - [notthebee/nix-config](https://github.com/notthebee/nix-config)
- [Ruixi-rebirth/melted-flakes](https://github.com/Ruixi-rebirth/melted-flakes): Waybar configuration mostly
<!-- Links --> <!-- Links -->
[Hyprland]: https://github.com/hyprwm/Hyprland [Hyprland]: https://github.com/hyprwm/Hyprland

82
flake.lock generated
View file

@ -41,11 +41,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1724006173, "lastModified": 1724850097,
"narHash": "sha256-1ROh0buuxiMyc6eIb3CIbJsmYO7PhLqSYs55mOx1XTk=", "narHash": "sha256-3BHxvFb3NJzch1X8puRMkVZujOoarQ1llu3ZcwuvsKU=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "aquamarine", "repo": "aquamarine",
"rev": "7f8df01d4297b9068a9592400f16044602844f86", "rev": "23c7925dd31e79e8c06086ace3edb129a070ac01",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -56,11 +56,11 @@
}, },
"catppuccin": { "catppuccin": {
"locked": { "locked": {
"lastModified": 1724156255, "lastModified": 1724469296,
"narHash": "sha256-rpUCeS/QZwQdJmDrvCm0hRi8bFvQNQKAnIMK5ZDBfpM=", "narHash": "sha256-p3R4LUNk6gC+fTKRUm9ByXaoRIocnQMwVuJSIxECQ8o=",
"owner": "catppuccin", "owner": "catppuccin",
"repo": "nix", "repo": "nix",
"rev": "8886a68edadb1d93c7101337f995ffce4b410ff2", "rev": "874e668ddaf3687e8d38ccd0188a641ffefe1cfb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -299,11 +299,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1723986931, "lastModified": 1724435763,
"narHash": "sha256-Fy+KEvDQ+Hc8lJAV3t6leXhZJ2ncU5/esxkgt3b8DEY=", "narHash": "sha256-UNky3lJNGQtUEXT2OY8gMxejakSWPTfWKvpFkpFlAfM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "2598861031b78aadb4da7269df7ca9ddfc3e1671", "rev": "c2cd2a52e02f1dfa1c88f95abeb89298d46023be",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -395,11 +395,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1724085862, "lastModified": 1724967012,
"narHash": "sha256-qIPLv+MmTVZ0sjhx99EZhe/2aGzy5JOskmlqPd6DNFQ=", "narHash": "sha256-Zn5Eq6Elq0SRInPrEYGGoo972JzVxd5zExF7FSuTKlo=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "c86db7bbb0cf14d4955ee3a4d13c0ed9f8a0e0ae", "rev": "604eb21a7e55d85ec7f6cb8cba39fc4c20a07a9d",
"revCount": 5115, "revCount": 5157,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/hyprwm/Hyprland" "url": "https://github.com/hyprwm/Hyprland"
@ -453,11 +453,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1721324361, "lastModified": 1724174162,
"narHash": "sha256-BiJKO0IIdnSwHQBSrEJlKlFr753urkLE48wtt0UhNG4=", "narHash": "sha256-fOOBLwil6M9QWMCiSULwjMQzrXhHXUnEqmjHX5ZHeVI=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprlang", "repo": "hyprlang",
"rev": "adbefbf49664a6c2c8bf36b6487fd31e3eb68086", "rev": "16e5c9465f04477d8a3dd48a0a26bf437986336c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -473,11 +473,11 @@
"systems": "systems_2" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1722957040, "lastModified": 1724326010,
"narHash": "sha256-YSrWqhsc/lH2gnFpejCMTC6Bo0zdgYZJmq561SbJ/II=", "narHash": "sha256-84Zzoi6bWAnDKDxoqiv3DCIjQmP1Y8vynP6//Wtnpc4=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprpicker", "repo": "hyprpicker",
"rev": "cbd963e1032552a7b195301de616c521c7d9f848", "rev": "38fe668e58014c75cf28f7cb5fc136aa710e7039",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -498,11 +498,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1722869141, "lastModified": 1724863980,
"narHash": "sha256-0KU4qhyMp441qfwbirNg3+wbm489KnEjXOz2I/RbeFs=", "narHash": "sha256-7Ke9wFRYPUIXwm5ZndGHkWBKj6BsFTkSEXUNXQRHE54=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprutils", "repo": "hyprutils",
"rev": "0252fd13e78e60fb0da512a212e56007515a49f7", "rev": "aadf9a27dddd2272ca354ba5a22a0c2d1f919039",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -590,11 +590,11 @@
"umu": "umu" "umu": "umu"
}, },
"locked": { "locked": {
"lastModified": 1723945279, "lastModified": 1724549799,
"narHash": "sha256-3W+/u3v/e0dTOxht6wW6pL+kr44e8Amb8A1Z3Bx8BUE=", "narHash": "sha256-F4lN1qmMJpJALwZ2ENb6MDSXG40om7ktZyAt7yh/DS8=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "bcf8116981cc332c2734d4c82a034f115780853d", "rev": "963803d3be8ed721b21326804513dec884e9d494",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -677,11 +677,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1723856861, "lastModified": 1724395761,
"narHash": "sha256-OTDg91+Zzs2SpU3csK4xVdSQFoG8cK1lNUwKmTqERyE=", "narHash": "sha256-zRkDV/nbrnp3Y8oCADf5ETl1sDrdmAW6/bBVJ8EbIdQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "cd7b95ee3725af7113bacbce91dd6549cee58ca5", "rev": "ae815cee91b417be55d43781eb4b73ae1ecc396c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -693,11 +693,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1723991338, "lastModified": 1724819573,
"narHash": "sha256-Grh5PF0+gootJfOJFenTTxDTYPidA3V28dqJ/WV7iis=", "narHash": "sha256-GnR7/ibgIH1vhoy8cYdmXE6iyZqKqFxQSVkFgosBh6w=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8a3354191c0d7144db9756a74755672387b702ba", "rev": "71e91c409d1e654808b2621f28a327acfdad8dc2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -786,11 +786,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1724159175, "lastModified": 1725014731,
"narHash": "sha256-3z9wRL+h+gTVFtecCUGrRaW6nvPPAtBCIDE9KAmZj7c=", "narHash": "sha256-4Y3FY4JzZsKQ0FKfdoWCt2BJFWDrnCk+Fi3+oo2kb0M=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "0b86d5643d99e3982471f0d79e553871c6f35396", "rev": "8a0c673833f8c455f54b1c4596fb19715c8d1101",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -907,11 +907,11 @@
}, },
"locked": { "locked": {
"dir": "packaging/nix", "dir": "packaging/nix",
"lastModified": 1723697867, "lastModified": 1724179424,
"narHash": "sha256-LTfbJXR8x35oZ8Mo3R0WTVEp9toWpVfzD21xCSr64IM=", "narHash": "sha256-2r2y1p9YQuaWCxuFj45MVRqJ/uWglhzY5O9BW1jRXcg=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "c71a45ad53036f4c668bcbe1be7a49f9d3460151", "rev": "dd3105e4ceef83bdc9d7437139f9475325e2a66d",
"revCount": 699, "revCount": 700,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix" "url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix"
@ -940,11 +940,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1722365976, "lastModified": 1724073926,
"narHash": "sha256-Khdm+mDzYA//XaU0M+hftod+rKr5q9SSHSEuiQ0/9ow=", "narHash": "sha256-nWlUL43jOFHf+KW6Hqrx+W/r1XdXuDyb0wC/SrHsOu4=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland", "repo": "xdg-desktop-portal-hyprland",
"rev": "7f2a77ddf60390248e2a3de2261d7102a13e5341", "rev": "a08ecbbf33598924e93542f737fc6169a26b481e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -36,8 +36,8 @@
general = { general = {
"$mainMod" = "ALT"; "$mainMod" = "ALT";
layout = "dwindle"; layout = "dwindle";
gaps_in = 0; gaps_in = 5;
gaps_out = 0; gaps_out = 10;
border_size = 2; border_size = 2;
"col.active_border" = "rgb(cba6f7) rgb(94e2d5) 45deg"; "col.active_border" = "rgb(cba6f7) rgb(94e2d5) 45deg";
"col.inactive_border" = "0x00000000"; "col.inactive_border" = "0x00000000";
@ -56,7 +56,7 @@
}; };
dwindle = { dwindle = {
no_gaps_when_only = true; no_gaps_when_only = false; # Is ugly with current Waybar setup
force_split = 0; force_split = 0;
special_scale_factor = 1.0; special_scale_factor = 1.0;
split_width_multiplier = 1.0; split_width_multiplier = 1.0;

View file

@ -3,7 +3,7 @@
programs.kitty = { programs.kitty = {
enable = true; enable = true;
theme = "Catppuccin-Mocha"; theme = "Atelier Cave Dark";
font = { font = {
name = "JetBrainsMono Nerd Font"; name = "JetBrainsMono Nerd Font";
@ -23,7 +23,7 @@
active_tab_font_style = "normal"; active_tab_font_style = "normal";
inactive_tab_font_style = "normal"; inactive_tab_font_style = "normal";
tab_bar_style = "powerline"; tab_bar_style = "powerline";
tab_powerline_style = "round"; tab_powerline_style = "slanted";
active_tab_foreground = "#1e1e2e"; active_tab_foreground = "#1e1e2e";
active_tab_background = "#cba6f7"; active_tab_background = "#cba6f7";
inactive_tab_foreground = "#bac2de"; inactive_tab_foreground = "#bac2de";

View file

@ -1,6 +1,8 @@
{ inputs, pkgs, ... }: { inputs, pkgs, ... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
anki-bin # Learn languages
vimv # Bulk rename
audacity # Record audio stuff audacity # Record audio stuff
obs-studio # Record video stuff obs-studio # Record video stuff
exiftool # Read exif data from CLI exiftool # Read exif data from CLI

View file

@ -1,6 +1,7 @@
{ inputs, pkgs, ... }: { inputs, pkgs, ... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
vimv
jq jq
wireguard-tools # VPN connections wireguard-tools # VPN connections
openresolv # required for wireguard-tools openresolv # required for wireguard-tools

View file

@ -1,6 +1,808 @@
{ ... }: { config, lib, pkgs, user, ... }:
{ {
imports = [ (import ./waybar.nix) ] programs.waybar = {
++ [ (import ./settings.nix) ] enable = true;
++ [ (import ./style.nix) ]; package = pkgs.waybar.overrideAttrs (oa: {
mesonFlags = (oa.mesonFlags or [ ]) ++ [ "-Dexperimental=true" ];
});
systemd = {
enable = false;
target = "graphical-session.target";
};
style = ''
* {
font-family: "JetBrainsMono Nerd Font";
font-size: 12pt;
font-weight: bold;
border-radius: 0px;
transition-property: background-color;
transition-duration: 0.5s;
} }
@keyframes blink_red {
to {
background-color: rgb(242, 143, 173);
color: rgb(26, 24, 38);
}
}
.warning, .critical, .urgent {
animation-name: blink_red;
animation-duration: 1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
window#waybar {
background-color: transparent;
}
window > box {
margin-left: 5px;
margin-right: 5px;
margin-top: 5px;
background-color: rgb(30, 30, 46);
}
#workspaces {
padding-left: 0px;
padding-right: 4px;
}
#workspaces button {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 6px;
padding-right: 6px;
}
#workspaces button.active {
background-color: rgb(181, 232, 224);
color: rgb(26, 24, 38);
}
#workspaces button.urgent {
color: rgb(26, 24, 38);
}
#workspaces button:hover {
background-color: rgb(248, 189, 150);
color: rgb(26, 24, 38);
}
tooltip {
background: rgb(48, 45, 65);
}
tooltip label {
color: rgb(217, 224, 238);
}
#mode, #clock, #memory, #temperature,#cpu,#mpd, #custom-wall, #temperature, #backlight, #pulseaudio, #network, #battery, #custom-powermenu, #custom-cava-internal {
padding-left: 10px;
padding-right: 10px;
}
/* #mode { */
/* margin-left: 10px; */
/* background-color: rgb(248, 189, 150); */
/* color: rgb(26, 24, 38); */
/* } */
#memory {
color: rgb(181, 232, 224);
}
#cpu {
color: rgb(245, 194, 231);
}
#clock {
color: rgb(217, 224, 238);
}
/* #idle_inhibitor {
color: rgb(221, 182, 242);
}*/
#custom-wall {
color: rgb(221, 182, 242);
}
#temperature {
color: rgb(150, 205, 251);
}
#backlight {
color: rgb(248, 189, 150);
}
#pulseaudio {
color: rgb(245, 224, 220);
}
#network {
color: #ABE9B3;
}
#network.disconnected {
color: rgb(255, 255, 255);
}
#battery.charging, #battery.full, #battery.discharging {
color: rgb(250, 227, 176);
}
#battery.critical:not(.charging) {
color: rgb(242, 143, 173);
}
#custom-powermenu {
color: rgb(242, 143, 173);
}
#tray {
padding-right: 8px;
padding-left: 10px;
}
#mpd.paused {
color: #414868;
font-style: italic;
}
#mpd.stopped {
background: transparent;
}
#mpd {
color: #c0caf5;
}
#custom-cava-internal{
font-family: "Hack Nerd Font" ;
}
'';
settings = [{
"layer" = "top";
"position" = "top";
modules-left = [
"hyprland/workspaces"
"temperature"
#"idle_inhibitor"
"mpd"
"custom/cava-internal"
];
modules-center = [
"clock"
];
modules-right = [
"pulseaudio"
"backlight"
"memory"
"cpu"
"network"
"battery"
"custom/powermenu"
"tray"
];
"custom/cava-internal" = {
"exec" = "sleep 1s && cava-internal";
"tooltip" = false;
};
"hyprland/workspaces" = {
"format" = "{icon}";
"on-click" = "activate";
# "on-scroll-up" = "hyprctl dispatch workspace e+1";
# "on-scroll-down" = "hyprctl dispatch workspace e-1";
};
"idle_inhibitor" = {
"format" = "{icon}";
"format-icons" = {
"activated" = "";
"deactivated" = "";
};
"tooltip" = false;
};
"backlight" = {
"device" = "intel_backlight";
"on-scroll-up" = "light -A 5";
"on-scroll-down" = "light -U 5";
"format" = "{icon} {percent}%";
"format-icons" = [ "󰃝" "󰃞" "󰃟" "󰃠" ];
};
"pulseaudio" = {
"scroll-step" = 1;
"format" = "{icon} {volume}%";
"format-muted" = "󰖁 Muted";
"format-icons" = {
"default" = [ "" "" "" ];
};
"on-click" = "pamixer -t";
"tooltip" = false;
};
"battery" = {
"interval" = 10;
"states" = {
"warning" = 20;
"critical" = 10;
};
"format" = "{icon} {capacity}%";
"format-icons" = [ "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ];
"format-full" = "{icon} {capacity}%";
"format-charging" = "󰂄 {capacity}%";
"tooltip" = false;
};
"clock" = {
"interval" = 1;
"format" = "{:%I:%M %p %A %b %d}";
"tooltip" = true;
/* "tooltip-format"= "{=%A; %d %B %Y}\n<tt>{calendar}</tt>" */
"tooltip-format" = "\nPs\nGolang\n<tt>{calendar}</tt>";
};
"memory" = {
"interval" = 1;
"format" = "󰍛 {percentage}%";
"states" = {
"warning" = 85;
};
};
"cpu" = {
"interval" = 1;
"format" = "󰻠 {usage}%";
};
"mpd" = {
"max-length" = 25;
"format" = "<span foreground='#bb9af7'></span> {title}";
"format-paused" = " {title}";
"format-stopped" = "<span foreground='#bb9af7'></span>";
"format-disconnected" = "";
"on-click" = "mpc --quiet toggle";
"on-click-right" = "mpc update; mpc ls | mpc add";
"on-click-middle" = "kitty --class='ncmpcpp' ncmpcpp ";
"on-scroll-up" = "mpc --quiet prev";
"on-scroll-down" = "mpc --quiet next";
"smooth-scrolling-threshold" = 5;
"tooltip-format" = "{title} - {artist} ({elapsedTime:%M:%S}/{totalTime:%H:%M:%S})";
};
"network" = {
"format-disconnected" = "󰯡 Disconnected";
"format-ethernet" = "󰀂 {ifname} ({ipaddr})";
"format-linked" = "󰖪 {essid} (No IP)";
"format-wifi" = "󰖩 {essid}";
"interval" = 1;
"tooltip" = false;
};
"temperature" = {
# "hwmon-path"= "${env:HWMON_PATH}";
#"critical-threshold"= 80;
"tooltip" = false;
"format" = " {temperatureC}°C";
};
"custom/powermenu" = {
"format" = "";
"on-click" = "pkill rofi || ~/.config/rofi/powermenu.sh";
"tooltip" = false;
};
"tray" = {
"icon-size" = 15;
"spacing" = 5;
};
}];
};
#other config & style
home.file = {
".config/waybar/light_config".text = ''
[
{
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": [
"󰃝", "󰃞", "󰃟", "󰃠"
],
"on-scroll-down": "light -U 5",
"on-scroll-up": "light -A 5"
},
"battery": {
"format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-full": "{icon} {capacity}%",
"format-icons": [
"󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"
],
"interval": 10,
"states": {
"critical": 10,
"warning": 20
},
"tooltip": false
},
"clock": {
"format": "{:%I:%M %p %A %b %d}",
"interval": 1,
"tooltip": true,
"tooltip-format": "\nPs\nGolang\n<tt>{calendar}</tt>"
},
"cpu": {
"format": "󰻠 {usage}%",
"interval": 1
},
"custom/cava-internal": {
"exec": "sleep 1s && cava-internal",
"tooltip": false
},
"custom/powermenu": {
"format": "",
"on-click": "pkill rofi || ~/.config/rofi/powermenu.sh",
"tooltip": false
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
},
"tooltip": false
},
"layer": "top",
"memory": {
"format": "󰍛 {percentage}%",
"interval": 1,
"states": {
"warning": 85
}
},
"modules-center": [
"clock"
],
"modules-left": [
"hyprland/workspaces",
"temperature",
//"idle_inhibitor",
"mpd",
"custom/cava-internal"
],
"modules-right": [
"pulseaudio",
"backlight",
"memory",
"cpu",
"network",
"battery",
"custom/powermenu",
"tray"
],
"mpd": {
"format": "<span foreground='#FF99FF'></span> {title}",
"format-disconnected": "",
"format-paused": " {title}",
"format-stopped": "<span foreground='#bb9af7'></span>",
"max-length": 25,
"on-click": "mpc --quiet toggle",
"on-click-middle": "kitty --class='ncmpcpp' ncmpcpp ",
"on-click-right": "mpc update; mpc ls | mpc add",
"on-scroll-down": "mpc --quiet next",
"on-scroll-up": "mpc --quiet prev",
"smooth-scrolling-threshold": 5,
"tooltip-format": "{title} - {artist} ({elapsedTime:%M:%S}/{totalTime:%H:%M:%S})"
},
"network": {
"interval": 1,
"format-wifi": "󰖩 {essid}",
"format-ethernet": "󰀂 {ifname} ({ipaddr})",
"format-linked": "󰖪 {essid} (No IP)",
"format-disconnected": "󰯡 Disconnected",
"tooltip": false,
},
"position": "top",
"pulseaudio": {
"format": "{icon} {volume}%",
"format-icons": {
"default": [
"",
"",
""
]
},
"format-muted": "󰖁 Muted",
"on-click": "pamixer -t",
"scroll-step": 1,
"tooltip": false
},
"temperature": {
"format": " {temperatureC}°C",
"tooltip": false
},
"tray": {
"icon-size": 15,
"spacing": 5
},
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"active-only": false,
}
}
]
'';
".config/waybar/light_style.css".text = ''
* {
font-family: "JetBrainsMono Nerd Font";
font-size: 12pt;
font-weight: bold;
border-radius: 0px;
transition-property: background-color;
transition-duration: 0.5s;
}
@keyframes blink_red {
to {
background-color: rgb(242, 143, 173);
color: rgb(26, 24, 38);
}
}
.warning, .critical, .urgent {
animation-name: blink_red;
animation-duration: 1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
window#waybar {
background-color: transparent;
}
window > box {
margin-left: 5px;
margin-right: 5px;
margin-top: 5px;
background-color: rgb(250, 244, 252);
}
#workspaces {
padding-left: 0px;
padding-right: 4px;
}
#workspaces button {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 6px;
padding-right: 6px;
color:#99CCFF;
}
#workspaces button.active {
background-color: rgb(181, 232, 224);
color: rgb(26, 24, 38);
}
#workspaces button.urgent {
color: rgb(26, 24, 38);
}
#workspaces button:hover {
background-color: #CCCCFF;
color: rgb(26, 24, 38);
}
tooltip {
/* background: rgb(250, 244, 252); */
background: rgb(250, 244, 252);
}
tooltip label {
color: rgb(65, 72, 104);
}
#mode, #clock, #memory, #temperature,#cpu,#mpd, #custom-wall, #temperature, #backlight, #pulseaudio, #network, #battery, #custom-powermenu, #custom-cava-internal {
padding-left: 10px;
padding-right: 10px;
}
/* #mode { */
/* margin-left: 10px; */
/* background-color: rgb(248, 189, 150); */
/* color: rgb(26, 24, 38); */
/* } */
#memory {
color: #66CCFF;
}
#cpu {
color: #FF99FF;
}
#clock {
color: rgb(65, 72, 104);
}
/*
#idle_inhibitor {
color: #FF6699;
}*/
#custom-wall {
color: #FF6699;
}
#temperature {
color: #9933FF;
}
#backlight {
color: #6666FF;
}
#pulseaudio {
color: #FF9900;
}
#network {
color: #00CC66;
}
#network.disconnected {
color: #99CCCC;
}
#battery.charging, #battery.full, #battery.discharging {
color: #FF99CC;
}
#battery.critical:not(.charging) {
color: rgb(242, 143, 173);
}
#custom-powermenu {
color: #FF0066;
}
#tray {
padding-right: 8px;
padding-left: 10px;
}
#tray menu {
background: rgb(250, 244, 252);
color:rgb(192, 202, 245);
}
#mpd.paused {
color: rgb(192, 202, 245);
font-style: italic;
}
#mpd.stopped {
background: transparent;
}
#mpd {
color: rgb(65, 72, 104);
/* color: #c0caf5; */
}
#custom-cava-internal{
font-family: "Hack Nerd Font" ;
}
'';
};
home.file = {
".config/waybar/nord_config".text = ''
[
{
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": [
"󰃝", "󰃞", "󰃟", "󰃠"
],
"on-scroll-down": "light -U 5",
"on-scroll-up": "light -A 5"
},
"battery": {
"format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-full": "{icon} {capacity}%",
"format-icons": [
"󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"
],
"interval": 10,
"states": {
"critical": 10,
"warning": 20
},
"tooltip": false
},
"clock": {
"format": "{:%I:%M %p %A %b %d}",
"interval": 1,
"tooltip": true,
"tooltip-format": "\nPs\nGolang\n<tt>{calendar}</tt>"
},
"cpu": {
"format": "󰻠 {usage}%",
"interval": 1
},
"custom/cava-internal": {
"exec": "sleep 1s && cava-internal",
"tooltip": false
},
"custom/powermenu": {
"format": "",
"on-click": "pkill rofi || ~/.config/rofi/powermenu.sh",
"tooltip": false
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
},
"tooltip": false
},
"layer": "top",
"memory": {
"format": "󰍛 {percentage}%",
"interval": 1,
"states": {
"warning": 85
}
},
"modules-center": [
"clock"
],
"modules-left": [
"hyprland/workspaces",
"temperature",
//"idle_inhibitor",
"mpd",
"custom/cava-internal"
],
"modules-right": [
"pulseaudio",
"backlight",
"memory",
"cpu",
"network",
"battery",
"custom/powermenu",
"tray"
],
"mpd": {
"format": "<span foreground='#8EBBBA'></span> {title}",
"format-disconnected": "",
"format-paused": " {title}",
"format-stopped": "<span foreground='#bb9af7'></span>",
"max-length": 25,
"on-click": "mpc --quiet toggle",
"on-click-middle": "kitty --class='ncmpcpp' ncmpcpp ",
"on-click-right": "mpc update; mpc ls | mpc add",
"on-scroll-down": "mpc --quiet next",
"on-scroll-up": "mpc --quiet prev",
"smooth-scrolling-threshold": 5,
"tooltip-format": "{title} - {artist} ({elapsedTime:%M:%S}/{totalTime:%H:%M:%S})"
},
"network": {
"format-disconnected": "󰯡 Disconnected",
"format-ethernet": "󰀂 {ifname} ({ipaddr})",
"format-linked": "󰖪 {essid} (No IP)",
"format-wifi": "󰖩 {essid}",
"interval": 1,
"tooltip": false
},
"position": "top",
"pulseaudio": {
"format": "{icon} {volume}%",
"format-icons": {
"default": [
"",
"",
""
]
},
"format-muted": "󰖁 Muted",
"on-click": "pamixer -t",
"scroll-step": 1,
"tooltip": false
},
"temperature": {
"format": " {temperatureC}°C",
"tooltip": false
},
"tray": {
"icon-size": 15,
"spacing": 5
},
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"active-only": false,
}
}
]
'';
".config/waybar/nord_style.css".text = ''
* {
font-family: "JetBrainsMono Nerd Font";
font-size: 12pt;
font-weight: bold;
border-radius: 0px;
transition-property: background-color;
transition-duration: 0.5s;
}
@keyframes blink_red {
to {
background-color: rgb(242, 143, 173);
color: rgb(26, 24, 38);
}
}
.warning, .critical, .urgent {
animation-name: blink_red;
animation-duration: 1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
window#waybar {
background-color: transparent;
}
window > box {
margin-left: 5px;
margin-right: 5px;
margin-top: 5px;
background-color: #3b4252;
}
#workspaces {
padding-left: 0px;
padding-right: 4px;
}
#workspaces button {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 6px;
padding-right: 6px;
color:#D8DEE9;
}
#workspaces button.active {
background-color: rgb(181, 232, 224);
color: rgb(26, 24, 38);
}
#workspaces button.urgent {
color: rgb(26, 24, 38);
}
#workspaces button:hover {
background-color: #B38DAC;
color: rgb(26, 24, 38);
}
tooltip {
/* background: rgb(250, 244, 252); */
background: #3b4253;
}
tooltip label {
color: #E4E8EF;
}
#mode, #clock, #memory, #temperature,#cpu,#mpd, #custom-wall, #temperature, #backlight, #pulseaudio, #network, #battery, #custom-powermenu, #custom-cava-internal {
padding-left: 10px;
padding-right: 10px;
}
/* #mode { */
/* margin-left: 10px; */
/* background-color: rgb(248, 189, 150); */
/* color: rgb(26, 24, 38); */
/* } */
#memory {
color: #8EBBBA;
}
#cpu {
color: #B38DAC;
}
#clock {
color: #E4E8EF;
}
/*
#idle_inhibitor {
color: #FF6699;
}*/
#custom-wall {
color: #B38DAC;
}
#temperature {
color: #80A0C0;
}
#backlight {
color: #A2BD8B;
}
#pulseaudio {
color: #E9C98A;
}
#network {
color: #99CC99;
}
#network.disconnected {
color: #CCCCCC;
}
#battery.charging, #battery.full, #battery.discharging {
color: #CF876F;
}
#battery.critical:not(.charging) {
color: #D6DCE7;
}
#custom-powermenu {
color: #BD6069;
}
#tray {
padding-right: 8px;
padding-left: 10px;
}
#tray menu {
background: #3b4252;
color: #DEE2EA;
}
#mpd.paused {
color: rgb(192, 202, 245);
font-style: italic;
}
#mpd.stopped {
background: transparent;
}
#mpd {
color: #E4E8EF;
/* color: #c0caf5; */
}
#custom-cava-internal{
font-family: "Hack Nerd Font" ;
}
'';
};
}

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [ (import ./waybar.nix) ]
++ [ (import ./settings.nix) ]
++ [ (import ./style.nix) ];
}