diff --git a/machines/lenovo/impermanence.nix b/machines/lenovo/impermanence.nix index 1bb98f5..ced435e 100644 --- a/machines/lenovo/impermanence.nix +++ b/machines/lenovo/impermanence.nix @@ -9,6 +9,7 @@ "/var/lib/systemd/coredump" "/etc/NetworkManager/system-connections" "/etc/ssh" + "/etc/ly/custom-sessions" ]; files = [ "/etc/machine-id" diff --git a/users/andromeda/home.nix b/users/andromeda/home.nix index 323a6b8..2e3ae66 100644 --- a/users/andromeda/home.nix +++ b/users/andromeda/home.nix @@ -6,7 +6,17 @@ ... }: let background-path = ".config/sway/background.png"; - sway_config = builtins.toFile "sway_config" '' + sway_config = + pkgs.substitute + { + src = ./sway_config; + substitutions = [ + "--replace" + "@backgroundImagePath@" + "${config.home.homeDirectory}/${background-path}" + ]; + }; + sway_config' = builtins.toFile "sway_config" '' set $mod Mod4 set $left h set $down j diff --git a/users/andromeda/sway_config b/users/andromeda/sway_config new file mode 100644 index 0000000..9f9c8cb --- /dev/null +++ b/users/andromeda/sway_config @@ -0,0 +1,73 @@ +set $mod Mod4 +set $left h +set $down j +set $up k +set $right l +set $term alacritty +set $menu wmenu-run +set $screenshot grim -g "$(slurp)" +floating_modifier $mod normal + +workspace_layout stacking +output * bg @backgroundImagePath@ fill + +bindsym $mod+Shift+Return exec $term +bindsym $mod+Shift+d exec $menu +bindsym $mod+Shift+a exec anki +bindsym $mod+Shift+q exec librewolf +bindsym $mod+Shift+s exec $screenshot + +bindsym $mod+Shift+c kill + +bindsym $mod+Shift+r reload + +bindsym $mod+Shift+Alt+q exit + +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus 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 + +bindsym $mod+1 workspace number 1 +bindsym $mod+2 workspace number 2 +bindsym $mod+3 workspace number 3 +bindsym $mod+4 workspace number 4 +bindsym $mod+5 workspace number 5 +bindsym $mod+6 workspace number 6 +bindsym $mod+7 workspace number 7 +bindsym $mod+8 workspace number 8 +bindsym $mod+9 workspace number 9 +bindsym $mod+0 workspace number 0 + +bindsym $mod+Shift+1 move container to workspace number 1 +bindsym $mod+Shift+2 move container to workspace number 2 +bindsym $mod+Shift+3 move container to workspace number 3 +bindsym $mod+Shift+4 move container to workspace number 4 +bindsym $mod+Shift+5 move container to workspace number 5 +bindsym $mod+Shift+6 move container to workspace number 6 +bindsym $mod+Shift+7 move container to workspace number 7 +bindsym $mod+Shift+8 move container to workspace number 8 +bindsym $mod+Shift+9 move container to workspace number 9 +bindsym $mod+Shift+0 move container to workspace number 0 + +bindsym $mod+f fullscreen +bindsym $mod+Shift+space floating toggle +bindsym $mod+Shift+minus move scratchpad +bindsym $mod+minus scratchpad show + +bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle +bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5% +bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5% +bindsym --locked XF86AudioMicMute exec pact set-source-mute \@DEFAULT_SOURCE@ toggle +bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- +bindsym --locked XF86MonbrightnessUp exec brightnessctl set 5%+ + +default_border none +font pango:monospace 0.001 +titlebar_border_thickness 0 +titlebar_padding 0