Complete Overhaul of flake.nix

This commit is contained in:
2025-09-05 01:03:12 +02:00
parent 74bf1dc059
commit ebb83a7e8b
19 changed files with 757 additions and 670 deletions

View File

@@ -7,7 +7,8 @@ let
theme = "-theme $HOME/.config/rofi/custom.rasi";
menu = "rofi -show drun ${theme}";
filebrowser = "rofi -show filebrowser ${theme}";
power = "rofi -show p -modi p:rofi-power-menu";
power = "rofi -show p -modi p:rofi-power-menu -theme $HOME/.config/rofi/power.rasi";
apps = "rofi -show window ${theme}";
in
{
home.packages = with pkgs; [
@@ -92,8 +93,8 @@ in
general = {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
gaps_in = 8;
gaps_out = 16;
gaps_in = 4;
gaps_out = 0;
border_size = 4;
"col.active_border" = "$green";
@@ -106,10 +107,10 @@ in
};
decoration = {
rounding = 12;
rounding = 1;
shadow = {
enabled = true;
enabled = false;
range = 16;
render_power = 4;
ignore_window = true;
@@ -182,27 +183,36 @@ in
"nofocus, class:^(xwaylandvideobridge)$"
];
# See further https://wiki.hypr.land/Configuring/Workspace-Rules/
exec-once = [
"waybar &"
"hyprpaper &"
"[workspace 8] obsidian"
"[workspace 1] floorp"
"[workspace 2] spotify"
"[workspace 2] kitty --class=cava-terminal -e cava"
"[workspace 3] thunderbird"
"[workspace 9] kitty"
];
# Keybindings
bind = [
# Application Bindings
"${super}, Q, exec, ${terminal}"
"${super}, C, killactive, "
"${super}, M, exit, "
"${super}, E, exec, ${fileManager}"
"${super}, V, togglefloating, "
"${super}, O, exec, obsidian"
"${super}, I, exec, floorp"
"${super}, G, exec, thunderbird"
# Lock Screen
"${super}, M, exit, "
# Rofi bindings
"${super}, f, exec, ${filebrowser}"
"${super}, A, exec, ${apps}"
"${super}, R, exec, ${menu}"
"${super}, S, exec, ${power}"
"${super}, F, exec, ${filebrowser}"
"${super}, P, pseudo, " # dwindle
"${super}, J, togglesplit, " # dwindle
"${super}, O, exec, obsidian"
"${super}, I, exec, firefox"
"${super}, G, exec, thunderbird"
# Move focus with mainMod + arrow keys
"${super}, left, movefocus, l"
@@ -210,6 +220,12 @@ in
"${super}, up, movefocus, u"
"${super}, down, movefocus, d"
# Window Modifiers
"${super}, P, pseudo, " # dwindle
"${super}, J, togglesplit, " # dwindle
"${super}, V, togglefloating, " # dwindle
"${super}, C, killactive, "
# Switch workspaces with mainMod + [0-9]
"${super}, 1, workspace, 1"
"${super}, 2, workspace, 2"
@@ -249,7 +265,7 @@ in
bindl = [
#", XF86AudioMute, exec, amixer set Master toggle
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86AudioMute, exec, pamixer -t"
", XF86AudioPlay, exec, playerctl play-pause" # the stupid key is called play , but it toggles
", XF86AudioNext, exec, playerctl next"
", XF86AudioPrev, exec, playerctl previous"
@@ -257,12 +273,10 @@ in
bindle = [
# Multi Media Control
", XF86AudioRaiseVolume, exec, vol --up"
", XF86AudioLowerVolume, exec, vol --down"
", XF86AudioRaiseVolume, exec, pamixer -i 5"
", XF86AudioLowerVolume, exec, pamixer -d 5"
", XF86MonBrightnessUp, exec, bri --up"
", XF86MonBrightnessDown, exec, bri --down"
", XF86Search, exec, ${menu}"
];
bindm = [