From bc4d80db1cae9d09d4a2b912e9e7b8ab2bb931dc Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Wed, 27 Aug 2025 18:55:37 +0200 Subject: [PATCH 01/13] add i3 config --- i3/.config/i3/config | 127 +++++++++++++++++++++ i3/.config/i3/config-backup | 190 +++++++++++++++++++++++++++++++ i3/.config/i3/scripts/monitor.sh | 9 ++ 3 files changed, 326 insertions(+) create mode 100644 i3/.config/i3/config create mode 100644 i3/.config/i3/config-backup create mode 100755 i3/.config/i3/scripts/monitor.sh diff --git a/i3/.config/i3/config b/i3/.config/i3/config new file mode 100644 index 0000000..a804be0 --- /dev/null +++ b/i3/.config/i3/config @@ -0,0 +1,127 @@ +# i3 config generated to mimic your sway config + +# Set mod key (Mod1 = Alt) +set $mod Mod1 +set $left h +set $down j +set $up k +set $right l +set $term alacritty + +# Window borders +new_window pixel + +# Key bindings +bindsym $mod+Return exec $term +bindsym $mod+q kill +bindsym $mod+d exec --no-startup-id dmenu_run + +# Floating modifier +floating_modifier $mod + +# Reload config +bindsym $mod+Shift+r reload + +# Exit i3 +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Exit i3? This will end your session.' -b 'Yes, exit i3' 'i3-msg exit'" + +# Move focus +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# Move windows +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# Workspaces +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+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 + +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 + +# Layouts +bindsym $mod+v split h +bindsym $mod+c split v +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split +bindsym $mod+f fullscreen +bindsym $mod+Shift+space floating toggle +bindsym $mod+space focus mode_toggle +bindsym $mod+a focus parent + +# Scratchpad +bindsym $mod+Shift+minus move scratchpad +bindsym $mod+minus scratchpad show + +# Resize mode +mode "resize" { + bindsym $left resize shrink width 10 px + bindsym $down resize grow height 10 px + bindsym $up resize shrink height 10 px + bindsym $right resize grow width 10 px + bindsym Left resize shrink width 10 px + bindsym Down resize grow height 10 px + bindsym Up resize shrink height 10 px + bindsym Right resize grow width 10 px + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +# Audio & brightness keys +bindsym --release XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle +bindsym --release XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym --release XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% +bindsym --release XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle + +bindsym --release XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%- +bindsym --release XF86MonBrightnessUp exec --no-startup-id brightnessctl set 5%+ + +# Screenshot (use scrot instead of grim) +bindsym Print exec scrot ~/Pictures/screenshot-%Y-%m-%d-%H%M%S.png + +# Status bar (use i3bar + i3status) +bar { + status_command i3status +} diff --git a/i3/.config/i3/config-backup b/i3/.config/i3/config-backup new file mode 100644 index 0000000..472214a --- /dev/null +++ b/i3/.config/i3/config-backup @@ -0,0 +1,190 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod1 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# Start XDG autostart .desktop files using dex. See also +# https://wiki.archlinux.org/index.php/XDG_Autostart +exec --no-startup-id dex --autostart --environment i3 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# move tiling windows via drag & drop by left-clicking into the title bar, +# or left-clicking anywhere into the window while holding the floating modifier. +tiling_drag modifier titlebar + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id dmenu_run +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec "rofi -modi drun,run -show drun" +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +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" + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +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'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status +} diff --git a/i3/.config/i3/scripts/monitor.sh b/i3/.config/i3/scripts/monitor.sh new file mode 100755 index 0000000..3d5cd6f --- /dev/null +++ b/i3/.config/i3/scripts/monitor.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if xrandr | grep -q "^HDMI-1 connected"; then + # HDMI is connected + xrandr --output HDMI-1 --auto --primary --output eDP-1 --off +else + # HDMI not connected, use laptop display + xrandr --output eDP-1 --auto --primary --output HDMI-1 --off +fi From 858f563cb7d7522baae8d2ca6e53b64fbfec8161 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Wed, 27 Aug 2025 19:21:34 +0200 Subject: [PATCH 02/13] working --- i3/.config/i3/config-backup | 190 ------------------------------- i3/.config/i3/scripts/monitor.sh | 9 -- nixos/configuration.nix | 47 ++------ 3 files changed, 8 insertions(+), 238 deletions(-) delete mode 100644 i3/.config/i3/config-backup delete mode 100755 i3/.config/i3/scripts/monitor.sh diff --git a/i3/.config/i3/config-backup b/i3/.config/i3/config-backup deleted file mode 100644 index 472214a..0000000 --- a/i3/.config/i3/config-backup +++ /dev/null @@ -1,190 +0,0 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! - -set $mod Mod1 - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -font pango:monospace 8 - -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -#font pango:DejaVu Sans Mono 8 - -# Start XDG autostart .desktop files using dex. See also -# https://wiki.archlinux.org/index.php/XDG_Autostart -exec --no-startup-id dex --autostart --environment i3 - -# The combination of xss-lock, nm-applet and pactl is a popular choice, so -# they are included here as an example. Modify as you see fit. - -# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the -# screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork - -# NetworkManager is the most popular way to manage wireless networks on Linux, -# and nm-applet is a desktop environment-independent system tray GUI for it. -exec --no-startup-id nm-applet - -# Use pactl to adjust volume in PulseAudio. -set $refresh_i3status killall -SIGUSR1 i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status -bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# move tiling windows via drag & drop by left-clicking into the title bar, -# or left-clicking anywhere into the window while holding the floating modifier. -tiling_drag modifier titlebar - -# start a terminal -bindsym $mod+Return exec i3-sensible-terminal - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run -# A more modern dmenu replacement is rofi: -# bindcode $mod+40 exec "rofi -modi drun,run -show drun" -# There also is i3-dmenu-desktop which only displays applications shipping a -# .desktop file. It is a wrapper around dmenu, so you need that installed. -# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop - -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+semicolon focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -#bindsym $mod+d focus child - -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -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" - -# switch to workspace -bindsym $mod+1 workspace number $ws1 -bindsym $mod+2 workspace number $ws2 -bindsym $mod+3 workspace number $ws3 -bindsym $mod+4 workspace number $ws4 -bindsym $mod+5 workspace number $ws5 -bindsym $mod+6 workspace number $ws6 -bindsym $mod+7 workspace number $ws7 -bindsym $mod+8 workspace number $ws8 -bindsym $mod+9 workspace number $ws9 -bindsym $mod+0 workspace number $ws10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace number $ws1 -bindsym $mod+Shift+2 move container to workspace number $ws2 -bindsym $mod+Shift+3 move container to workspace number $ws3 -bindsym $mod+Shift+4 move container to workspace number $ws4 -bindsym $mod+Shift+5 move container to workspace number $ws5 -bindsym $mod+Shift+6 move container to workspace number $ws6 -bindsym $mod+Shift+7 move container to workspace number $ws7 -bindsym $mod+Shift+8 move container to workspace number $ws8 -bindsym $mod+Shift+9 move container to workspace number $ws9 -bindsym $mod+Shift+0 move container to workspace number $ws10 - -# reload the configuration file -bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) -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'" - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 10 px or 10 ppt - bindsym semicolon resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape or $mod+r - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+r mode "default" -} - -bindsym $mod+r mode "resize" - -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - status_command i3status -} diff --git a/i3/.config/i3/scripts/monitor.sh b/i3/.config/i3/scripts/monitor.sh deleted file mode 100755 index 3d5cd6f..0000000 --- a/i3/.config/i3/scripts/monitor.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if xrandr | grep -q "^HDMI-1 connected"; then - # HDMI is connected - xrandr --output HDMI-1 --auto --primary --output eDP-1 --off -else - # HDMI not connected, use laptop display - xrandr --output eDP-1 --auto --primary --output HDMI-1 --off -fi diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 13f6f0b..9d85ed8 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -17,24 +17,10 @@ time.timeZone = "Europe/Oslo"; - services.xserver.videoDrivers = [ - "nvidia" - "amdgpu" - "modesetting" - "intel" - ]; - hardware.nvidia = { - modesetting.enable = true; - nvidiaSettings = true; - open = false; - package = config.boot.kernelPackages.nvidiaPackages.beta; - powerManagement.enable = true; - powerManagement.finegrained = false; - prime = { - sync.enable = true; - intelBusId = "PCI:0:2:0"; - nvidiaBusId = "PCI:1:0:0"; - }; + services.xserver = { + enable = true; + windowManager.i3.enable = true; + displayManager.gdm.enable = true; }; services.gnome.gnome-keyring.enable = true; @@ -63,20 +49,6 @@ programs.firefox.enable = true; - programs.sway = { - enable = true; - wrapperFeatures.gtk = true; - }; - services.greetd = { - enable = true; - settings = { - default_session = { - command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd \"sway --unsupported-gpu\""; - user = "greeter"; - }; - }; - }; - services.tlp = { enable = true; settings = { @@ -87,14 +59,11 @@ RUNTIME_PM_ON_BAT = "auto"; }; }; - hardware.graphics.enable=true; nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "discord" "steam" "steam-unwrapped" - "nvidia-x11" - "nvidia-settings" ]; programs.steam.enable = true; @@ -124,14 +93,14 @@ discord fzf godot - grim mako networkmanagerapplet - slurp unzip - waybar - wl-clipboard xorg.xauth + picom + dunst + xclip + dmenu ]; programs.mtr.enable = true; From 00075e0f9542e833baa59edee24a4de15576ab1e Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Wed, 27 Aug 2025 19:24:51 +0200 Subject: [PATCH 03/13] add wifi connection app --- i3/.config/i3/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index a804be0..a6f929b 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -11,6 +11,8 @@ set $term alacritty # Window borders new_window pixel +exec --no-startup-id nm-applet + # Key bindings bindsym $mod+Return exec $term bindsym $mod+q kill From 29e990dd01764d03210ceb1fd2c36b023660b2c8 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Thu, 28 Aug 2025 19:52:25 +0200 Subject: [PATCH 04/13] add pulseaudio --- nixos/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 9d85ed8..6c11dee 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -101,6 +101,7 @@ dunst xclip dmenu + pulseaudio ]; programs.mtr.enable = true; From 7eb9924b0ec7c30bb0ac57012083d36ebf713e2d Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Thu, 28 Aug 2025 20:24:19 +0200 Subject: [PATCH 05/13] add brightnessctl --- nixos/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 6c11dee..bf2d34b 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -102,6 +102,7 @@ xclip dmenu pulseaudio + brightnessctl ]; programs.mtr.enable = true; From 892358ccce00aaa3ae4eaa0f90960cbd4779de4a Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Thu, 28 Aug 2025 20:44:57 +0200 Subject: [PATCH 06/13] dark theme --- nixos/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index bf2d34b..36e8ca5 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -111,6 +111,11 @@ enableSSHSupport = true; }; + environment.variables = { + GTK_THEME = "Adwaita:dark"; + QT_QPA_PLATFORMTHEME = "gtk2"; + }; + system.stateVersion = "25.05"; # dont change ever } From e890ccedc0646c5e1465e6a4e64c5e6398423768 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Thu, 28 Aug 2025 20:45:08 +0200 Subject: [PATCH 07/13] disable annoying touchpad behavior --- nixos/configuration.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 36e8ca5..d04a361 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -33,7 +33,14 @@ services.printing.enable = true; hardware.uinput.enable = true; - services.libinput.enable = true; + services.libinput = { + enable = true; + touchpad = { + disableWhileTyping = true; + tapping = false; + }; + }; + services.kanata = { enable = true; keyboards.default.configFile = "/etc/nixos/kanata.kbd"; From 1e83315fc70a134684990a81068d7fbda4c181fa Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Thu, 28 Aug 2025 21:00:03 +0200 Subject: [PATCH 08/13] add vsync --- i3/.config/i3/config | 1 + 1 file changed, 1 insertion(+) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index a6f929b..ca16fb0 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -11,6 +11,7 @@ set $term alacritty # Window borders new_window pixel +exec --no-startup-id picom --backend glx --vsync exec --no-startup-id nm-applet # Key bindings From 300f515b87d6863fc21fd48917f41960157fa9da Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Thu, 28 Aug 2025 21:00:13 +0200 Subject: [PATCH 09/13] add posting and gnumake --- nixos/configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index d04a361..d21f064 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -110,6 +110,8 @@ dmenu pulseaudio brightnessctl + posting + gnumake ]; programs.mtr.enable = true; From efab37a8d2e2ef3c94cae5c794cf0ff16c9872f6 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Thu, 28 Aug 2025 21:19:38 +0200 Subject: [PATCH 10/13] replace posting with bruno posting is **really** slow --- nixos/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index d21f064..d800eac 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -110,7 +110,7 @@ dmenu pulseaudio brightnessctl - posting + bruno gnumake ]; From c606ded8fec75956a60cea3535d049e17e72e1ab Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Sat, 30 Aug 2025 00:06:06 +0200 Subject: [PATCH 11/13] add dark theme to .xprofile configuration --- xprofile/.xprofile | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 xprofile/.xprofile diff --git a/xprofile/.xprofile b/xprofile/.xprofile new file mode 100644 index 0000000..b39a73c --- /dev/null +++ b/xprofile/.xprofile @@ -0,0 +1,2 @@ +export GTK_THEME="Adwaita:dark"; +export QT_QPA_PLATFORMTHEME="gtk2"; From ff20f0583dbd6540f1a30c5cba674f0acafc59e1 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Sat, 30 Aug 2025 11:39:12 +0200 Subject: [PATCH 12/13] change status to i3blocks --- i3/.config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index ca16fb0..ee4791d 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -126,5 +126,5 @@ bindsym Print exec scrot ~/Pictures/screenshot-%Y-%m-%d-%H%M%S.png # Status bar (use i3bar + i3status) bar { - status_command i3status + status_command i3blocks } From 41dc03e827da7b896673fac950e7575145a4867f Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Sat, 30 Aug 2025 14:17:51 +0200 Subject: [PATCH 13/13] go back to i3status --- i3/.config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index ee4791d..ca16fb0 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -126,5 +126,5 @@ bindsym Print exec scrot ~/Pictures/screenshot-%Y-%m-%d-%H%M%S.png # Status bar (use i3bar + i3status) bar { - status_command i3blocks + status_command i3status }