sunshine on testpc

This commit is contained in:
Kopatz
2026-02-15 18:04:45 +01:00
parent cf76d4f17d
commit ac9898b99f
3 changed files with 23 additions and 5 deletions

View File

@@ -3,7 +3,6 @@
set $mod Mod4 set $mod Mod4
set $LeftMonitor HDMI-A-0 set $LeftMonitor HDMI-A-0
set $RightMonitor DisplayPort-0 set $RightMonitor DisplayPort-0
# Font for window titles. Will also be used by the bar unless a different font # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. # is used in the bar {} block below.
font pango:monospace 8 font pango:monospace 8
@@ -70,6 +69,7 @@ bindsym $mod+period exec --no-startup-id rofimoji
# -config ~/.config/rofi/rofidmenu.rasi # -config ~/.config/rofi/rofidmenu.rasi
set $warpmouse exec eval $(xdotool getwindowfocus getwindowgeometry --shell) && xdotool mousemove --window $(xdotool getwindowfocus) $((WIDTH/2)) $((HEIGHT/2))
# change focus # change focus
bindsym $mod+h focus left bindsym $mod+h focus left
bindsym $mod+j focus down bindsym $mod+j focus down
@@ -77,10 +77,10 @@ bindsym $mod+k focus up
bindsym $mod+l focus right bindsym $mod+l focus right
# alternatively, you can use the cursor keys: # alternatively, you can use the cursor keys:
bindsym $mod+Left focus left bindsym $mod+Left focus left; $warpmouse
bindsym $mod+Down focus down bindsym $mod+Down focus down; $warpmouse
bindsym $mod+Up focus up bindsym $mod+Up focus up; $warpmouse
bindsym $mod+Right focus right bindsym $mod+Right focus right; $warpmouse
# switch between windows with alt tab # switch between windows with alt tab
bindsym Mod1+Tab focus next bindsym Mod1+Tab focus next

View File

@@ -91,6 +91,7 @@ in
feh # sets the wallpaper feh # sets the wallpaper
networkmanagerapplet networkmanagerapplet
caffeine-ng # prevent the system from going to sleep caffeine-ng # prevent the system from going to sleep
xdotool
]; ];
}; };
} }

View File

@@ -46,6 +46,7 @@
#sddm.enable = true; #sddm.enable = true;
hyprland.enable = true; hyprland.enable = true;
shared.enable = true; shared.enable = true;
i3.enable = true;
stylix = { stylix = {
enable = true; enable = true;
base16Scheme = import ../../modules/themes/ina-matugen.nix; base16Scheme = import ../../modules/themes/ina-matugen.nix;
@@ -58,6 +59,22 @@
programs.firefox.enable = true; programs.firefox.enable = true;
services.xserver.displayManager.lightdm.enable = true; services.xserver.displayManager.lightdm.enable = true;
services.xserver.windowManager.openbox.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 = { #services.logind.settings.Login = {
# HandlePowerKey = "suspend"; # HandlePowerKey = "suspend";