diff options
| author | Natasha Nightshade <31557030-TashaTheInnkeeper@users.noreply.gitlab.com> | 2026-02-02 13:35:51 +0100 |
|---|---|---|
| committer | Natasha Nightshade <31557030-TashaTheInnkeeper@users.noreply.gitlab.com> | 2026-02-02 13:35:51 +0100 |
| commit | 0423ac08769fce26e4a75ea382874c06d97526f6 (patch) | |
| tree | 9d8a1a934ecf582502f556cc61af0da687840d70 /modules/home/i3wm/i3.nix | |
| parent | 5c741252de752af281628dd7c8c780c746236088 (diff) | |
| parent | 0ed5c638945192dc5e4a099fded4db164ba603a2 (diff) | |
Merge branch 'master' into 'main'
merge master into main
See merge request natasha-linux/nixos/dots!1
Diffstat (limited to 'modules/home/i3wm/i3.nix')
| -rw-r--r-- | modules/home/i3wm/i3.nix | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/modules/home/i3wm/i3.nix b/modules/home/i3wm/i3.nix new file mode 100644 index 0000000..35ce6de --- /dev/null +++ b/modules/home/i3wm/i3.nix @@ -0,0 +1,130 @@ +{ config, pkgs, lib, ... }: + +{ + xsession.windowManager.i3 = { + enable = true; + config.bars = []; + + extraConfig = '' + # i3 config + set $mod Mod4 + font pango:Fira Code 10 + + exec --no-startup-id dex-autostart --autostart --environment i3 + exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock-fancy-rapid 5 3 --nofork + exec --no-startup-id nm-applet + exec --no-startup-id blueman-applet + exec_always --no-startup-id sh -c "sleep 1 && picom --config ~/.config/picom/picom.conf" + exec --no-startup-id -merge ~/.Xresources + exec_always --no-startup-id feh --bg-scale ~/Pictures/wallpapers/vox.jpg + exec_always --no-startup-id sh -c "killall -q polybar; sleep 1; polybar example --config=~/.config/polybar/config.ini &" + exec_always --no-startup-id polybar-hide-on-fullscreen + exec --no-startup-id flameshot + + gaps top 60 + + bindsym XF86MonBrightnessDown exec brightnessctl set 10%- + bindsym XF86MonBrightnessUp exec brightnessctl set +10% + bindsym XF86AudioMute exec amixer set Master toggle + bindsym XF86AudioLowerVolume exec amixer set Master 5%- + bindsym XF86AudioRaiseVolume exec amixer set Master 5%+ + bindsym XF86AudioMicMute exec amixer set Capture toggle + + floating_modifier $mod + + bindsym $mod+Shift+s exec flameshot gui + bindsym $mod+Return exec kitty + bindsym $mod+Control+l exec --no-startup-id i3lock-fancy-rapid 5 3 + bindsym $mod+m exec rofi -show drun + bindsym $mod+Shift+m exec kitty nnn + bindsym $mod+n exec firefox + bindsym $mod+Shift+q kill + + bindsym $mod+j focus left + bindsym $mod+k focus down + bindsym $mod+l focus up + bindsym $mod+uring focus right + + bindsym $mod+Shift+j move left + bindsym $mod+Shift+k move down + bindsym $mod+Shift+l move up + bindsym $mod+Shift+uring move right + + bindsym $mod+h split h + bindsym $mod+v split v + bindsym $mod+f fullscreen toggle + bindsym $mod+s layout stacking + bindsym $mod+w layout tabbed + bindsym $mod+e layout toggle split + bindsym $mod+Shift+space floating toggle + bindsym $mod+space focus mode_toggle + bindsym $mod+a focus parent + + set $ws1 "1" + set $ws2 "2" + set $ws3 "3" + set $ws4 "4" + set $ws5 "5" + set $ws6 "6" + set $ws7 "7" + set $ws8 "8" + set $ws9 "9" + set $ws10 "10" + + bindsym $mod+plus workspace number $ws1 + bindsym $mod+ecaron workspace number $ws2 + bindsym $mod+scaron workspace number $ws3 + bindsym $mod+ccaron workspace number $ws4 + bindsym $mod+rcaron workspace number $ws5 + bindsym $mod+zcaron workspace number $ws6 + bindsym $mod+yacute workspace number $ws7 + bindsym $mod+aacute workspace number $ws8 + bindsym $mod+iacute workspace number $ws9 + bindsym $mod+eacute workspace number $ws10 + + bindsym $mod+Shift+plus move container to workspace number $ws1 + bindsym $mod+Shift+ecaron move container to workspace number $ws2 + bindsym $mod+Shift+scaron move container to workspace number $ws3 + bindsym $mod+Shift+ccaron move container to workspace number $ws4 + bindsym $mod+Shift+rcaron move container to workspace number $ws5 + bindsym $mod+Shift+zcaron move container to workspace number $ws6 + bindsym $mod+Shift+yacute move container to workspace number $ws7 + bindsym $mod+Shift+aacute move container to workspace number $ws8 + bindsym $mod+Shift+iacute move container to workspace number $ws9 + bindsym $mod+Shift+eacute move container to workspace number $ws10 + + bindsym $mod+Shift+c reload + bindsym $mod+Shift+r restart + bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + + mode "resize" { + bindsym j resize shrink width 5 px or 5 ppt + bindsym k resize grow height 5 px or 5 ppt + bindsym l resize shrink height 5 px or 5 ppt + bindsym uring resize grow width 5 px or 5 ppt + + bindsym Left resize shrink width 5 px or 5 ppt + bindsym Down resize grow height 5 px or 5 ppt + bindsym Up resize shrink height 5 px or 5 ppt + bindsym Right resize grow width 5 px or 5 ppt + + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" + } + + bindsym $mod+r mode "resize" + + client.focused #FFFFFF #FFFFFF #FFFFFF #FFFFFF #b12cbf + client.focused_inactive #8C8C8C #4C4C4C #FFFFFF #4C4C4C #FFFFFF + client.unfocused #4C4C4C #222222 #888888 #292D2E #500096 + client.urgent #EC69A0 #DB3279 #FFFFFF #DB3279 #DB3279 + client.placeholder #000000 #0C0C0C #FFFFFF #000000 #FFFFFF + client.background #FFFFFF + + default_border pixel 3 + default_floating_border pixel 3 + hide_edge_borders smart + ''; + }; +}
\ No newline at end of file |
