mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-03-20 08:22:55 +01:00
Compare commits
No commits in common. "76e95a02b7ccc312488f7f31652c2351a6a35bd4" and "f7e2d8b1e0429b3ed1bdbe0ea82709573db40299" have entirely different histories.
76e95a02b7
...
f7e2d8b1e0
8 changed files with 8 additions and 149 deletions
31
flake.lock
generated
31
flake.lock
generated
|
|
@ -421,36 +421,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hyprland-plugins": {
|
|
||||||
"inputs": {
|
|
||||||
"hyprland": [
|
|
||||||
"hyprland"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"hyprland-plugins",
|
|
||||||
"hyprland",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": [
|
|
||||||
"hyprland-plugins",
|
|
||||||
"hyprland",
|
|
||||||
"systems"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1765207366,
|
|
||||||
"narHash": "sha256-s0jO2kEj5cLLTgTblKnAKjqt3MjYFnmyrQT3SxiUugM=",
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprland-plugins",
|
|
||||||
"rev": "e058ea23b80775cf20c675d064678416df2d9d04",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hyprwm",
|
|
||||||
"repo": "hyprland-plugins",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hyprland-protocols": {
|
"hyprland-protocols": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -953,7 +923,6 @@
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hypr-contrib": "hypr-contrib",
|
"hypr-contrib": "hypr-contrib",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"hyprland-plugins": "hyprland-plugins",
|
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_5",
|
"nixpkgs": "nixpkgs_5",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,6 @@
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
hyprland.inputs.nixpkgs.follows = "nixpkgs";
|
hyprland.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
hyprland-plugins.url = "github:hyprwm/hyprland-plugins";
|
|
||||||
hyprland-plugins.inputs.hyprland.follows = "hyprland";
|
|
||||||
hypr-contrib.url = "github:hyprwm/contrib";
|
hypr-contrib.url = "github:hyprwm/contrib";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
|
|
|
||||||
|
|
@ -5,90 +5,8 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
||||||
home.file.".config/nwg-dock-hyprland/style.css".text = ''
|
|
||||||
* {
|
|
||||||
border-radius: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
window {
|
|
||||||
background: #000000;
|
|
||||||
border-style: none;
|
|
||||||
border-width: 1px;
|
|
||||||
border-radius: 0;
|
|
||||||
border-color: rgba(156, 142, 122, 0.7);
|
|
||||||
padding: 4em 6em;
|
|
||||||
background: rgba(0, 0, 0, 0.5);
|
|
||||||
-webkit-backdrop-filter: blur(25px);
|
|
||||||
margin: 7px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#box {
|
|
||||||
/* Define attributes of the box surrounding icons here */
|
|
||||||
padding: 10px
|
|
||||||
}
|
|
||||||
|
|
||||||
button,
|
|
||||||
image {
|
|
||||||
background: none;
|
|
||||||
border-style: none;
|
|
||||||
box-shadow: none;
|
|
||||||
color: #999
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
padding: 4px;
|
|
||||||
margin-left: 4px;
|
|
||||||
margin-right: 4px;
|
|
||||||
color: #eee;
|
|
||||||
font-size: 12px
|
|
||||||
}
|
|
||||||
|
|
||||||
button:hover {
|
|
||||||
background-color: rgba(255, 255, 255, 0.15);
|
|
||||||
border-radius: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
button:focus {
|
|
||||||
box-shadow: 0 0 2px;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
home.file.".cache/nwg-dock-pinned".text = ''
|
|
||||||
chromium-browser
|
|
||||||
thunar
|
|
||||||
${if (host == "sakura") then "darktable" else ""}
|
|
||||||
${if (host == "sakura") then "flstudio" else ""}
|
|
||||||
${if (host == "iris") then "steam" else ""}
|
|
||||||
footclient
|
|
||||||
qutebrowser
|
|
||||||
librewolf
|
|
||||||
anki
|
|
||||||
virt-manager
|
|
||||||
Element
|
|
||||||
signal
|
|
||||||
spotify
|
|
||||||
thunderbird
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.hypridle.enable = true;
|
services.hypridle.enable = true;
|
||||||
|
|
||||||
home.file.".config/hypr/hypridle.conf".text = ''
|
|
||||||
general {
|
|
||||||
lock_cmd = pgrep hyprlock || hyprlock
|
|
||||||
}
|
|
||||||
|
|
||||||
listener {
|
|
||||||
timeout = 165 # in seconds
|
|
||||||
on-timeout = pgrep hyprlock || hyprlock
|
|
||||||
}
|
|
||||||
|
|
||||||
listener {
|
|
||||||
timeout = 1800 # in seconds
|
|
||||||
on-timeout = systemctl suspend; hyprlock
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
settings = {
|
settings = {
|
||||||
|
|
||||||
|
|
@ -121,9 +39,7 @@
|
||||||
"foot --server &"
|
"foot --server &"
|
||||||
"hyprfloat &"
|
"hyprfloat &"
|
||||||
"gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' &"
|
"gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' &"
|
||||||
"nwg-dock-hyprland -l top &"
|
"nwg-dock-hyprland &"
|
||||||
"nextcloud &"
|
|
||||||
"hyprland-monitor-attached dock-on-all-monitors dock-on-all-monitors &"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
|
|
@ -145,7 +61,7 @@
|
||||||
"$mainMod" = "ALT";
|
"$mainMod" = "ALT";
|
||||||
layout = "dwindle";
|
layout = "dwindle";
|
||||||
gaps_in = 0;
|
gaps_in = 0;
|
||||||
gaps_out = "0,0,68,0";
|
gaps_out = "0,0,85,0";
|
||||||
border_size = 2;
|
border_size = 2;
|
||||||
"col.active_border" = "rgb(ffffff) rgb(ffffff) 45deg";
|
"col.active_border" = "rgb(ffffff) rgb(ffffff) 45deg";
|
||||||
"col.inactive_border" = "0x00000000";
|
"col.inactive_border" = "0x00000000";
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
wayland
|
wayland
|
||||||
direnv
|
direnv
|
||||||
nwg-dock-hyprland
|
nwg-dock-hyprland
|
||||||
hyprland-monitor-attached
|
|
||||||
];
|
];
|
||||||
# systemd.user.targets.hyprland-session.Unit.Wants = [ "xdg-desktop-autostart.target" ];
|
# systemd.user.targets.hyprland-session.Unit.Wants = [ "xdg-desktop-autostart.target" ];
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,6 @@ let
|
||||||
builtins.readFile ./scripts/toggle_oppacity.sh
|
builtins.readFile ./scripts/toggle_oppacity.sh
|
||||||
);
|
);
|
||||||
ascii = pkgs.writeScriptBin "ascii" (builtins.readFile ./scripts/ascii.sh);
|
ascii = pkgs.writeScriptBin "ascii" (builtins.readFile ./scripts/ascii.sh);
|
||||||
dock-on-all-monitors = pkgs.writeScriptBin "dock-on-all-monitors" (
|
|
||||||
builtins.readFile ./scripts/dock-on-all-monitors.sh
|
|
||||||
);
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
@ -28,6 +25,5 @@ in
|
||||||
toggle_blur
|
toggle_blur
|
||||||
toggle_oppacity
|
toggle_oppacity
|
||||||
ascii
|
ascii
|
||||||
dock-on-all-monitors
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
last="$(hyprctl monitors | grep Monitor | sed 's/Monitor //g' | awk '{print $3}' | sed 's/)://g' | sed ':a;N;$!ba;s/\n/ /g' | awk '{print $NF}')"
|
|
||||||
|
|
||||||
hyprctl dispatch focusmonitor 0
|
|
||||||
setsid nwg-dock-hyprland -m -l top &
|
|
||||||
|
|
||||||
sleep 0.5
|
|
||||||
|
|
||||||
((last = last + 1)) # make number be one higher so it also takes last window (this is required as we used `i < "$last"`)
|
|
||||||
for ((i = 0; i < "$last"; i++)); do
|
|
||||||
hyprctl dispatch focusmonitor "$i"
|
|
||||||
setsid nwg-dock-hyprland -m -l top -c 'bemenu-run -l 5' &
|
|
||||||
sleep 0.5
|
|
||||||
done
|
|
||||||
|
|
@ -36,11 +36,6 @@ unfuck_bar() {
|
||||||
setsid waybar &
|
setsid waybar &
|
||||||
}
|
}
|
||||||
|
|
||||||
unfuck_dock() {
|
|
||||||
pkill .nwg-dock-hyprl
|
|
||||||
setsid dock-on-all-monitors &
|
|
||||||
}
|
|
||||||
|
|
||||||
unfuck_networkmanager() {
|
unfuck_networkmanager() {
|
||||||
# sudo modprobe -r iwlwifi
|
# sudo modprobe -r iwlwifi
|
||||||
# sudo modprobe iwlwifi
|
# sudo modprobe iwlwifi
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,12 @@ in
|
||||||
size = 14;
|
size = 14;
|
||||||
};
|
};
|
||||||
theme = {
|
theme = {
|
||||||
name = "Orchis-Purple-Dark-Compact";
|
name = "Juno";
|
||||||
package = pkgs.orchis-theme;
|
package = pkgs.juno-theme; # .override {
|
||||||
|
# colorVariants = [ "dark" ];
|
||||||
|
# themeVariants = [ "green" ];
|
||||||
|
# tweakVariants = [ "macos" ];
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name = "Papirus-Dark";
|
name = "Papirus-Dark";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue