diff --git a/.config/i3/config b/.config/i3/config index 6d8ab25..e83980e 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -3,7 +3,6 @@ set $mod Mod4 set $LeftMonitor HDMI-A-0 set $RightMonitor DisplayPort-0 - # 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 @@ -70,6 +69,7 @@ bindsym $mod+period exec --no-startup-id rofimoji # -config ~/.config/rofi/rofidmenu.rasi +set $warpmouse exec eval $(xdotool getwindowfocus getwindowgeometry --shell) && xdotool mousemove --window $(xdotool getwindowfocus) $((WIDTH/2)) $((HEIGHT/2)) # change focus bindsym $mod+h focus left bindsym $mod+j focus down @@ -77,10 +77,10 @@ bindsym $mod+k focus up bindsym $mod+l 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 +bindsym $mod+Left focus left; $warpmouse +bindsym $mod+Down focus down; $warpmouse +bindsym $mod+Up focus up; $warpmouse +bindsym $mod+Right focus right; $warpmouse # switch between windows with alt tab bindsym Mod1+Tab focus next diff --git a/modules/graphical/i3.nix b/modules/graphical/i3.nix index 508b8a5..25e56c6 100644 --- a/modules/graphical/i3.nix +++ b/modules/graphical/i3.nix @@ -91,6 +91,7 @@ in feh # sets the wallpaper networkmanagerapplet caffeine-ng # prevent the system from going to sleep + xdotool ]; }; } diff --git a/systems/test-pc/configuration.nix b/systems/test-pc/configuration.nix index 90fa8fa..4b6b1cf 100644 --- a/systems/test-pc/configuration.nix +++ b/systems/test-pc/configuration.nix @@ -46,6 +46,7 @@ #sddm.enable = true; hyprland.enable = true; shared.enable = true; + i3.enable = true; stylix = { enable = true; base16Scheme = import ../../modules/themes/ina-matugen.nix; @@ -58,6 +59,22 @@ programs.firefox.enable = true; services.xserver.displayManager.lightdm.enable = true; services.xserver.windowManager.openbox.enable = true; + # == start section sunshine == + services.sunshine = { + enable = true; + autoStart = true; + capSysAdmin = true; + openFirewall = true; + package = (pkgs.sunshine.override { cudaSupport = true; }); + }; + services.avahi.publish.enable = true; + services.avahi.publish.userServices = true; + + services.displayManager.autoLogin = { + enable = true; + user = "kopatz"; + }; + # == end section sunshine == #services.logind.settings.Login = { # HandlePowerKey = "suspend";