aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-11-29 16:56:53 +0300
committereug-vs <eugene@eug-vs.xyz>2022-11-29 16:56:53 +0300
commit3ef0ca82864c5aa76a7c2daf8b0e0dfc0287653e (patch)
treef73bdff2371bd93eb028342ef039366c686ad3a4
parent64fbda41591c42e662a75875f905f5b9a3a28bd8 (diff)
downloaddotfiles-3ef0ca82864c5aa76a7c2daf8b0e0dfc0287653e.tar.gz
feat(wayland): update sway config
-rw-r--r--env-wayland/.config/sway/config121
1 files changed, 67 insertions, 54 deletions
diff --git a/env-wayland/.config/sway/config b/env-wayland/.config/sway/config
index 7081621..70f6226 100644
--- a/env-wayland/.config/sway/config
+++ b/env-wayland/.config/sway/config
@@ -64,68 +64,74 @@ input "type:keyboard" {
#
# Basics:
#
- # Start a terminal
- bindsym $mod+Shift+Return exec $term
+# Start a terminal
+bindsym --to-code {
+ $mod+Shift+Return exec $term
- # Kill focused window
- bindsym $mod+Shift+q kill
+# Kill focused window
+ $mod+Shift+q kill
- # Start your launcher
- bindsym $mod+p exec $menu
+# Start your launcher
+ $mod+p exec $menu
- # 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
+ $mod+Shift+c reload
+# Exit sway (logs you out of your Wayland session)
+ $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'
+}
- # Reload the configuration file
- bindsym $mod+Shift+c reload
+# 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
- # 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'
# Sound
- bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && pkill -RTMIN+2 dwmblocks
- bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && pkill -RTMIN+2 dwmblocks
- bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pkill -RTMIN+2 dwmblocks
+bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle && pkill -RTMIN+2 dwmblocks
+bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && pkill -RTMIN+2 dwmblocks
+bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pkill -RTMIN+2 dwmblocks
+bindsym $mod+grave exec dunstctl close
# Brightness
bindsym XF86MonBrightnessDown exec light -U 2
bindsym XF86MonBrightnessUp exec light -A 4
# Bindings
- bindsym $mod+e exec foot neomutt
- bindsym $mod+w exec librewolf
- bindsym $mod+n exec foot nvim ~/Sync/diary/$(date +"%Y-%m-%d").md
- bindsym Print exec screenshot.sh
-
+bindsym --to-code {
+ $mod+e exec foot neomutt
+ $mod+w exec librewolf
+ $mod+n exec foot nvim ~/Sync/diary/$(date +"%Y-%m-%d").md
+ Print exec screenshot.sh
+}
#
# Moving around:
+bindsym --to-code {
+# Move your focus around
+ $mod+$left focus left
+ $mod+$down focus down
+ $mod+$up focus up
+ $mod+$right focus right
+# Or use $mod+[up|down|left|right]
+ $mod+Left focus left
+ $mod+Down focus down
+ $mod+Up focus up
+ $mod+Right focus right
+
+# Move the focused window with the same, but add Shift
+ $mod+Shift+$left move left
+ $mod+Shift+$down move down
+ $mod+Shift+$up move up
+ $mod+Shift+$right move right
+# Ditto, with arrow keys
+ $mod+Shift+Left move left
+ $mod+Shift+Down move down
+ $mod+Shift+Up move up
+ $mod+Shift+Right move right
+}
#
- # 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
@@ -198,16 +204,16 @@ mode "resize" {
# 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
+ bindsym $left resize shrink width 40px
+ bindsym $down resize grow height 40px
+ bindsym $up resize shrink height 40px
+ bindsym $right resize grow width 40px
# 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
+ bindsym Left resize shrink width 40px
+ bindsym Down resize grow height 40px
+ bindsym Up resize shrink height 40px
+ bindsym Right resize grow width 40px
# Return to default mode
bindsym Return mode "default"
@@ -235,6 +241,13 @@ bar {
default_border pixel
+# GTK settings
+# exec_always {
+# gsettings set org.gnome.desktop.interface cursor-theme Adwaita
+# gsettings set org.gnome.desktop.interface cursor-size 16
+# }
+
+exec --no-startup-id dunst
exec --no-startup-id gentoo-pipewire-launcher
exec --no-startup-id wlsunset -l 53.54 -L 27.34