fix ly complaint, move sway_config to its own file
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
"/var/lib/systemd/coredump"
|
"/var/lib/systemd/coredump"
|
||||||
"/etc/NetworkManager/system-connections"
|
"/etc/NetworkManager/system-connections"
|
||||||
"/etc/ssh"
|
"/etc/ssh"
|
||||||
|
"/etc/ly/custom-sessions"
|
||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
"/etc/machine-id"
|
"/etc/machine-id"
|
||||||
|
|||||||
@@ -6,7 +6,17 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
background-path = ".config/sway/background.png";
|
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 $mod Mod4
|
||||||
set $left h
|
set $left h
|
||||||
set $down j
|
set $down j
|
||||||
|
|||||||
73
users/andromeda/sway_config
Normal file
73
users/andromeda/sway_config
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user