diff options
| author | Ewy~ <ewy0@protonmail.com> | 2024-12-28 01:08:10 +0100 |
|---|---|---|
| committer | Ewy~ <ewy0@protonmail.com> | 2024-12-28 01:08:10 +0100 |
| commit | 059df2c6755bce70dbe1e68bdf47ea7c6cc2cb4f (patch) | |
| tree | c95fc3025a1c69ce5d1dbaf7e55121c2e70a152a /.config/sway | |
updated commit
Diffstat (limited to '.config/sway')
| -rw-r--r-- | .config/sway/config | 170 | ||||
| -rw-r--r-- | .config/sway/config.d/autotiling | 1 | ||||
| -rw-r--r-- | .config/sway/config.d/colors | 9 | ||||
| -rw-r--r-- | .config/sway/config.d/inputs | 4 | ||||
| -rw-r--r-- | .config/sway/config.d/layout | 4 | ||||
| -rw-r--r-- | .config/sway/config.d/mediakeys | 3 | ||||
| -rw-r--r-- | .config/sway/config.d/notifications | 1 | ||||
| -rw-r--r-- | .config/sway/config.d/outputs | 14 | ||||
| -rw-r--r-- | .config/sway/config.d/satty | 1 | ||||
| -rw-r--r-- | .config/sway/config.d/uwu | 1 | ||||
| -rw-r--r-- | .config/sway/config.d/waybar | 3 | ||||
| -rw-r--r-- | .config/sway/config.d/windows | 10 | ||||
| -rw-r--r-- | .config/sway/config.d/wofi | 1 |
13 files changed, 222 insertions, 0 deletions
diff --git a/.config/sway/config b/.config/sway/config new file mode 100644 index 0000000..2b7231e --- /dev/null +++ b/.config/sway/config @@ -0,0 +1,170 @@ +# Default config for sway +# +# Copy this to ~/.config/sway/config and edit it to your liking. +# +# Read `man 5 sway` for a complete reference. + +### Variables +# +# Logo key. Use Mod1 for Alt. +set $mod Mod4 +# Home row direction keys, like vim +set $left h +set $down j +set $up k +set $right l +# Your preferred terminal emulator +set $term kitty + +### Key bindings +# +# Basics: +# + # Start a terminal + bindsym $mod+Return exec $term + + # Kill focused window + bindsym $mod+Shift+q kill + + font "Noto Sans" 10 + + # Drag floating windows by holding down $mod and left mouse button. + # Resize them with right mouse button + $mod. + # Despite the name, also works for non-floating windows. + # Change normal to inverse to use left mouse button for resizing and right + # mouse button for dragging. + floating_modifier $mod normal + + # Reload the configuration file + bindsym $mod+Shift+c reload + + # Exit sway (logs you out of your Wayland session) + bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' +# +# Moving around: +# + # Move your focus around + bindsym $mod+$left focus left + bindsym $mod+$down focus down + bindsym $mod+$up focus up + bindsym $mod+$right focus right + # Or use $mod+[up|down|left|right] + bindsym $mod+Left focus left + bindsym $mod+Down focus down + bindsym $mod+Up focus up + bindsym $mod+Right focus right + + # Move the focused window with the same, but add Shift + bindsym $mod+Shift+$left move left + bindsym $mod+Shift+$down move down + bindsym $mod+Shift+$up move up + bindsym $mod+Shift+$right move right + # Ditto, with arrow 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 +# +# Workspaces: +# + # Switch to workspace + 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 10 + # Move focused container to workspace + 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 10 + # Note: workspaces can have any name you want, not just numbers. + # We just use 1-10 as the default. +# +# Layout stuff: +# + bindsym $mod+v split toggle + + # Switch the current container between different layout styles + bindsym $mod+s layout stacking + bindsym $mod+w layout tabbed + bindsym $mod+e layout toggle split + + + bindsym $mod+Shift+b border toggle + # Make the current focus fullscreen + bindsym $mod+f fullscreen + + # Toggle the current focus between tiling and floating mode + bindsym $mod+Shift+space floating toggle + + # Swap focus between the tiling area and the floating area + bindsym $mod+space focus mode_toggle + + # Move focus to the parent container + bindsym $mod+a focus parent +# +# Scratchpad: +# + # Sway has a "scratchpad", which is a bag of holding for windows. + # You can send windows there and get them back later. + + # Move the currently focused window to the scratchpad + bindsym $mod+Shift+minus move scratchpad + + # Show the next scratchpad window or hide the focused scratchpad window. + # If there are multiple scratchpad windows, this command cycles through them. + bindsym $mod+minus scratchpad show +# +# Resizing containers: +# +mode "resize" { + # left will shrink the containers width + # right will grow the containers width + # up will shrink the containers height + # down will grow the containers height + bindsym $left resize shrink width 10px + bindsym $down resize grow height 10px + bindsym $up resize shrink height 10px + bindsym $right resize grow width 10px + + # Ditto, with arrow keys + bindsym Left resize shrink width 10px + bindsym Down resize grow height 10px + bindsym Up resize shrink height 10px + bindsym Right resize grow width 10px + + # Return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" +# +# Utilities: +# + # Special keys to adjust volume via PulseAudio + 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 pactl set-source-mute \@DEFAULT_SOURCE@ toggle + # Special keys to adjust brightness via brightnessctl + bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- + bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ + + +include "$HOME/.cache/wal/colors-sway" +include "$HOME/.config/sway/config.d/*" +include /etc/sway/config.d/* + +exec sleep 5 && systemctl --user start sway-session.service diff --git a/.config/sway/config.d/autotiling b/.config/sway/config.d/autotiling new file mode 100644 index 0000000..1a0dba3 --- /dev/null +++ b/.config/sway/config.d/autotiling @@ -0,0 +1 @@ +exec_always autotiling diff --git a/.config/sway/config.d/colors b/.config/sway/config.d/colors new file mode 100644 index 0000000..2255546 --- /dev/null +++ b/.config/sway/config.d/colors @@ -0,0 +1,9 @@ +# class border backgr. text indicator child_border +client.focused $color1 $color2 $foreground $color2 $color2 +client.unfocused $color1 $color0 $foreground $color0 $color0 +client.focused_inactive $color3 $color3 $foreground $color3 $color3 +client.urgent $color15 $color15 $foreground $color15 $color15 +client.placeholder $color3 $color3 $foreground $color3 $color3 + +bindsym $mod+Shift+w exec systemctl --user start wal + diff --git a/.config/sway/config.d/inputs b/.config/sway/config.d/inputs new file mode 100644 index 0000000..900b061 --- /dev/null +++ b/.config/sway/config.d/inputs @@ -0,0 +1,4 @@ +input type:pointer { + accel_profile flat + pointer_accel 1 +} diff --git a/.config/sway/config.d/layout b/.config/sway/config.d/layout new file mode 100644 index 0000000..6e9e2e4 --- /dev/null +++ b/.config/sway/config.d/layout @@ -0,0 +1,4 @@ +smart_gaps on +gaps inner 5 +title_align center +default_border pixel diff --git a/.config/sway/config.d/mediakeys b/.config/sway/config.d/mediakeys new file mode 100644 index 0000000..894d381 --- /dev/null +++ b/.config/sway/config.d/mediakeys @@ -0,0 +1,3 @@ +bindsym XF86AudioPlay exec playerctl play-pause +bindsym XF86AudioPrev exec playerctl previous +bindsym XF86AudioNext exec playerctl next diff --git a/.config/sway/config.d/notifications b/.config/sway/config.d/notifications new file mode 100644 index 0000000..4ac9c33 --- /dev/null +++ b/.config/sway/config.d/notifications @@ -0,0 +1 @@ +bindsym $mod+Grave exec makoctl dismiss diff --git a/.config/sway/config.d/outputs b/.config/sway/config.d/outputs new file mode 100644 index 0000000..2cd8e29 --- /dev/null +++ b/.config/sway/config.d/outputs @@ -0,0 +1,14 @@ +output * { + background "$(cat $HOME/.cache/wal/wal)" fit +} + +output DP-2 { + resolution 2560x1440@239.970Hz + position 0,0 +} + +output HDMI-A-1 { + resolution 1920x1080@60.000Hz + position 2560,0 +} + diff --git a/.config/sway/config.d/satty b/.config/sway/config.d/satty new file mode 100644 index 0000000..8204049 --- /dev/null +++ b/.config/sway/config.d/satty @@ -0,0 +1 @@ +bindsym $mod+Print exec grim -g "$(slurp -o -r -c '#ff0000ff')" -t ppm - | satty --filename - --fullscreen --output-filename ~/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png diff --git a/.config/sway/config.d/uwu b/.config/sway/config.d/uwu new file mode 100644 index 0000000..22f033b --- /dev/null +++ b/.config/sway/config.d/uwu @@ -0,0 +1 @@ +bindsym $mod+p exec uwupass diff --git a/.config/sway/config.d/waybar b/.config/sway/config.d/waybar new file mode 100644 index 0000000..8d3e95c --- /dev/null +++ b/.config/sway/config.d/waybar @@ -0,0 +1,3 @@ +bar { + swaybar_command waybar +} diff --git a/.config/sway/config.d/windows b/.config/sway/config.d/windows new file mode 100644 index 0000000..3111c6e --- /dev/null +++ b/.config/sway/config.d/windows @@ -0,0 +1,10 @@ +for_window [app_id="kitty"] border none +for_window [class="firefox"] border none +for_window [title="Picture-in-Picture"] { + sticky enabe + floating enable + position 2567,619 + size 791x445 +} +for_window [class="net-runelite-client-RuneLite"] border none +for_window [app_id="firefox"] border none diff --git a/.config/sway/config.d/wofi b/.config/sway/config.d/wofi new file mode 100644 index 0000000..cf3231d --- /dev/null +++ b/.config/sway/config.d/wofi @@ -0,0 +1 @@ +bindsym $mod+d exec rofi -show combi -combi-modes "window,drun,run" |
