2020-12-18 14:28:23 +01:00
|
|
|
# Default config for sway
|
2020-12-18 20:02:50 +01:00
|
|
|
# vim: ft=i3
|
2020-12-18 14:28:23 +01:00
|
|
|
#
|
|
|
|
# Read `man 5 sway` for a complete reference.
|
2020-12-19 13:08:55 +01:00
|
|
|
#
|
2020-12-18 14:28:23 +01:00
|
|
|
|
|
|
|
### 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
|
2021-04-27 15:47:22 +02:00
|
|
|
set $term foot
|
2021-05-02 13:34:11 +02:00
|
|
|
set $term_cmd foot -T float
|
2022-06-28 08:20:24 +02:00
|
|
|
set $background $HOME/Pictures/wallpaper/bavarian_forest_5k_bw.jpg
|
2021-01-19 17:23:18 +01:00
|
|
|
set $brightness_cmd $HOME/.config/sway/bin/sway_brightness
|
2022-03-13 12:45:50 +01:00
|
|
|
set $output_cmd $HOME/.local/bin/swayout
|
2021-01-19 17:23:18 +01:00
|
|
|
set $volume_cmd $HOME/.config/sway/bin/sway_volume
|
2022-07-01 10:25:37 +02:00
|
|
|
set $media_cmd /usr/bin/playerctl
|
2022-05-02 20:19:26 +02:00
|
|
|
set $idle_cmd $HOME/.config/sway/bin/start_swayidle.sh
|
|
|
|
set $waybar_cmd $HOME/.config/sway/bin/start_waybar.sh
|
2022-08-25 10:55:10 +02:00
|
|
|
set $sov_cmd $HOME/.config/sway/bin/start_sov.sh
|
2021-02-21 21:16:55 +01:00
|
|
|
set $move_cmd $HOME/.config/sway/bin/sway_move
|
2021-01-04 15:30:58 +01:00
|
|
|
set $font Cascadia Code PL Regular 10
|
2022-06-28 08:19:39 +02:00
|
|
|
set $notify_cmd dunstify -r 123
|
2020-12-18 15:33:47 +01:00
|
|
|
|
2020-12-18 14:28:23 +01:00
|
|
|
# Your preferred application launcher
|
2021-02-02 21:33:49 +01:00
|
|
|
set $menu wofi --show drun --prompt applications
|
2021-03-04 20:41:00 +01:00
|
|
|
set $search_cmd $HOME/.config/sway/bin/sway_search
|
2021-07-12 23:39:19 +02:00
|
|
|
set $exit_cmd $HOME/.config/sway/bin/sway_exit
|
2021-02-25 07:57:43 +01:00
|
|
|
|
2021-01-06 19:15:39 +01:00
|
|
|
#
|
|
|
|
# Host Specific
|
|
|
|
#
|
|
|
|
include $HOME/.config/sway/hosts.d/$(hostname).conf
|
|
|
|
|
2021-01-04 21:25:51 +01:00
|
|
|
#
|
|
|
|
# General Options
|
|
|
|
#
|
2021-01-04 15:30:58 +01:00
|
|
|
focus_wrapping no
|
2022-02-24 19:06:57 +01:00
|
|
|
# nextcloud workaround
|
2021-01-04 17:37:39 +01:00
|
|
|
mouse_warping container
|
2021-01-22 10:02:59 +01:00
|
|
|
# floating_maximum_size 1600 x 900
|
2021-01-04 15:30:58 +01:00
|
|
|
font pango:$font
|
2021-01-28 21:50:42 +01:00
|
|
|
hide_edge_borders --i3 smart
|
2022-02-24 19:06:57 +01:00
|
|
|
smart_gaps on
|
2021-01-28 21:50:42 +01:00
|
|
|
default_border pixel 4
|
|
|
|
#
|
|
|
|
# Gaps
|
|
|
|
#
|
|
|
|
gaps inner 5
|
|
|
|
gaps outer 0
|
|
|
|
gaps left 0
|
|
|
|
gaps right 0
|
|
|
|
|
2021-01-04 15:30:58 +01:00
|
|
|
|
2020-12-18 14:28:23 +01:00
|
|
|
### Output configuration
|
|
|
|
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
2022-05-02 20:19:26 +02:00
|
|
|
output * bg $background fill
|
2020-12-18 14:28:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
### Input configuration
|
|
|
|
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
|
|
|
# Read `man 5 sway-input` for more information about this section.
|
2020-12-18 15:53:19 +01:00
|
|
|
input type:keyboard {
|
|
|
|
xkb_layout "eu"
|
|
|
|
}
|
|
|
|
|
2020-12-18 14:28:23 +01:00
|
|
|
### Key bindings
|
|
|
|
#
|
|
|
|
# Basics:
|
|
|
|
#
|
2020-12-18 15:53:19 +01:00
|
|
|
# Start a terminal
|
|
|
|
bindsym $mod+Return exec $term
|
2022-04-22 11:28:53 +02:00
|
|
|
bindsym $mod+Shift+Return exec $term_cmd
|
2020-12-18 14:28:23 +01:00
|
|
|
|
2020-12-18 15:53:19 +01:00
|
|
|
# Kill focused window
|
|
|
|
bindsym $mod+Shift+q kill
|
2021-01-06 19:16:21 +01:00
|
|
|
bindsym --release button3 kill
|
2020-12-18 14:28:23 +01:00
|
|
|
|
2020-12-18 15:53:19 +01:00
|
|
|
# Start your launcher
|
2021-01-22 10:01:56 +01:00
|
|
|
bindsym $mod+r exec $menu
|
2021-03-04 20:41:00 +01:00
|
|
|
bindsym $mod+Shift+r exec $search_cmd
|
2020-12-18 14:28:23 +01:00
|
|
|
|
2020-12-18 15:53:19 +01:00
|
|
|
# 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
|
2020-12-18 14:28:23 +01:00
|
|
|
|
2021-07-12 23:39:19 +02:00
|
|
|
# Show exit menu
|
|
|
|
bindsym $mod+Shift+e exec $exit_cmd
|
2020-12-18 14:28:23 +01:00
|
|
|
|
|
|
|
# Moving around:
|
|
|
|
#
|
2020-12-18 15:53:19 +01:00
|
|
|
# Move your focus around
|
|
|
|
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
|
2021-01-22 10:01:56 +01:00
|
|
|
#
|
|
|
|
# Resize
|
|
|
|
#
|
|
|
|
bindsym $mod+Ctrl+$left resize shrink width 50px
|
|
|
|
bindsym $mod+Ctrl+$down resize grow height 50px
|
|
|
|
bindsym $mod+Ctrl+$up resize shrink height 50px
|
|
|
|
bindsym $mod+Ctrl+$right resize grow width 50px
|
2020-12-18 14:28:23 +01:00
|
|
|
#
|
|
|
|
# Workspaces:
|
|
|
|
#
|
2020-12-18 15:53:19 +01:00
|
|
|
# Switch to workspace
|
2022-08-25 10:55:10 +02:00
|
|
|
bindsym --no-repeat $mod+1 workspace number 1; exec "echo 1 > /tmp/sovpipe"
|
|
|
|
bindsym --no-repeat $mod+2 workspace number 2; exec "echo 1 > /tmp/sovpipe"
|
|
|
|
bindsym --no-repeat $mod+3 workspace number 3; exec "echo 1 > /tmp/sovpipe"
|
|
|
|
bindsym --no-repeat $mod+4 workspace number 4; exec "echo 1 > /tmp/sovpipe"
|
|
|
|
bindsym --no-repeat $mod+5 workspace number 5; exec "echo 1 > /tmp/sovpipe"
|
|
|
|
bindsym --no-repeat $mod+6 workspace number 6; exec "echo 1 > /tmp/sovpipe"
|
|
|
|
bindsym --no-repeat $mod+7 workspace number 7; exec "echo 1 > /tmp/sovpipe"
|
|
|
|
bindsym --no-repeat $mod+8 workspace number 8; exec "echo 1 > /tmp/sovpipe"
|
|
|
|
bindsym --no-repeat $mod+9 workspace number 9; exec "echo 1 > /tmp/sovpipe"
|
|
|
|
bindsym --no-repeat $mod+0 workspace number 10; exec "echo 1 > /tmp/sovpipe"
|
|
|
|
# hide sov
|
|
|
|
bindsym --release $mod+1 exec "echo 0 > /tmp/sovpipe"
|
|
|
|
bindsym --release $mod+2 exec "echo 0 > /tmp/sovpipe"
|
|
|
|
bindsym --release $mod+3 exec "echo 0 > /tmp/sovpipe"
|
|
|
|
bindsym --release $mod+4 exec "echo 0 > /tmp/sovpipe"
|
|
|
|
bindsym --release $mod+5 exec "echo 0 > /tmp/sovpipe"
|
|
|
|
bindsym --release $mod+6 exec "echo 0 > /tmp/sovpipe"
|
|
|
|
bindsym --release $mod+7 exec "echo 0 > /tmp/sovpipe"
|
|
|
|
bindsym --release $mod+8 exec "echo 0 > /tmp/sovpipe"
|
|
|
|
bindsym --release $mod+9 exec "echo 0 > /tmp/sovpipe"
|
|
|
|
bindsym --release $mod+0 exec "echo 0 > /tmp/sovpipe"
|
|
|
|
# back and forth
|
2021-03-10 13:56:00 +01:00
|
|
|
bindsym $mod+Escape workspace back_and_forth
|
2020-12-18 15:53:19 +01:00
|
|
|
# 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.
|
2020-12-18 14:28:23 +01:00
|
|
|
#
|
2021-03-10 13:56:00 +01:00
|
|
|
# Urgent
|
|
|
|
#
|
|
|
|
bindsym $mod+u [urgent=latest] focus
|
|
|
|
#
|
2020-12-18 14:28:23 +01:00
|
|
|
# Layout stuff:
|
|
|
|
#
|
2020-12-18 15:53:19 +01:00
|
|
|
# You can "split" the current object of your focus with
|
|
|
|
# $mod+b or $mod+v, for horizontal and vertical splits
|
|
|
|
# respectively.
|
|
|
|
bindsym $mod+b splith
|
|
|
|
bindsym $mod+v splitv
|
2020-12-18 14:28:23 +01:00
|
|
|
|
2020-12-18 15:53:19 +01:00
|
|
|
# Switch the current container between different layout styles
|
|
|
|
bindsym $mod+q layout stacking
|
|
|
|
bindsym $mod+w layout tabbed
|
|
|
|
bindsym $mod+e layout toggle split
|
2020-12-18 14:28:23 +01:00
|
|
|
|
2020-12-18 15:53:19 +01:00
|
|
|
# Make the current focus fullscreen
|
|
|
|
bindsym $mod+f fullscreen
|
2020-12-18 14:28:23 +01:00
|
|
|
|
2020-12-18 15:53:19 +01:00
|
|
|
# Toggle the current focus between tiling and floating mode
|
|
|
|
bindsym $mod+Shift+space floating toggle
|
2022-03-07 09:21:12 +01:00
|
|
|
# Toggle border/titlebar
|
2022-03-18 08:08:21 +01:00
|
|
|
bindsym $mod+Control+b border toggle
|
2020-12-18 14:28:23 +01:00
|
|
|
|
2020-12-18 15:53:19 +01:00
|
|
|
# Swap focus between the tiling area and the floating area
|
|
|
|
bindsym $mod+space focus mode_toggle
|
2020-12-18 14:28:23 +01:00
|
|
|
|
2020-12-18 15:53:19 +01:00
|
|
|
# Move focus to the parent container
|
2021-08-12 11:23:50 +02:00
|
|
|
bindsym $mod+i focus parent
|
2021-05-13 23:50:00 +02:00
|
|
|
# Move focus to the child
|
2021-08-12 11:23:50 +02:00
|
|
|
bindsym $mod+Shift+i focus child
|
2021-01-06 19:15:39 +01:00
|
|
|
|
2020-12-18 20:02:50 +01:00
|
|
|
#
|
2020-12-19 13:09:22 +01:00
|
|
|
## Volume
|
|
|
|
#
|
2020-12-22 17:04:22 +01:00
|
|
|
bindsym XF86AudioRaiseVolume exec $volume_cmd increase
|
|
|
|
bindsym XF86AudioLowerVolume exec $volume_cmd decrease
|
|
|
|
bindsym XF86AudioMute exec $volume_cmd mute
|
2021-01-03 13:18:37 +01:00
|
|
|
bindsym XF86MonBrightnessUp exec $brightness_cmd increase
|
|
|
|
bindsym XF86MonBrightnessDown exec $brightness_cmd decrease
|
2020-12-19 13:09:22 +01:00
|
|
|
#
|
2022-07-01 10:25:37 +02:00
|
|
|
## Media
|
|
|
|
#
|
|
|
|
bindsym XF86AudioPlay exec $media_cmd play-pause
|
|
|
|
#
|
2021-01-06 19:15:39 +01:00
|
|
|
#
|
2020-12-18 20:02:50 +01:00
|
|
|
## Screenshot
|
|
|
|
#
|
|
|
|
# copy selection to clipboard
|
|
|
|
bindsym Print exec grim -g "$(slurp)" - | wl-copy
|
2021-02-18 16:25:02 +01:00
|
|
|
# copy selection to swappy
|
|
|
|
bindsym Shift+Print exec grim -g "$(slurp)" - | swappy -f -
|
2020-12-18 20:02:50 +01:00
|
|
|
# save selection
|
|
|
|
bindsym $mod+Print exec grim -g "$(slurp)" \
|
|
|
|
$(xdg-user-dir PICTURES)/screenshot_$(date +'%Y%m%d_%H%M%S').png
|
2021-01-14 13:05:06 +01:00
|
|
|
#
|
|
|
|
## Output
|
|
|
|
#
|
2021-05-02 13:34:11 +02:00
|
|
|
bindsym $mod+p exec "$term_cmd $output_cmd"
|
2020-12-18 15:30:29 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Gaps
|
|
|
|
#
|
2020-12-18 15:53:19 +01:00
|
|
|
gaps inner 5
|
|
|
|
gaps outer 0
|
|
|
|
gaps left 0
|
|
|
|
gaps right 0
|
2020-12-18 15:30:29 +01:00
|
|
|
|
2020-12-18 14:28:23 +01:00
|
|
|
#
|
|
|
|
# Scratchpad:
|
|
|
|
#
|
2020-12-18 15:53:19 +01:00
|
|
|
# Move the currently focused window to the scratchpad
|
2022-03-18 08:08:21 +01:00
|
|
|
bindsym $mod+Shift+s move scratchpad
|
2022-08-24 22:39:56 +02:00
|
|
|
# Show all scratchpads
|
2021-08-12 11:23:50 +02:00
|
|
|
bindsym $mod+Ctrl+s scratchpad show
|
2022-08-24 22:39:56 +02:00
|
|
|
# Show specific scratchpads
|
2022-07-31 20:01:35 +02:00
|
|
|
bindsym $mod+a [con_mark="a" tiling=True] focus; [con_mark="a" floating=True] focus output $$main; \
|
2022-07-18 12:38:50 +02:00
|
|
|
[con_mark="a" floating=True] scratchpad show;
|
2022-07-31 20:01:35 +02:00
|
|
|
bindsym $mod+s [con_mark="s" tiling=True] focus; [con_mark="s" floating=True] focus output $$main; \
|
2022-07-18 12:38:50 +02:00
|
|
|
[con_mark="s" floating=True] scratchpad show;
|
2022-07-31 20:01:35 +02:00
|
|
|
bindsym $mod+d [con_mark="d" tiling=True] focus; [con_mark="d" floating=True] focus output $$main; \
|
2022-07-18 12:38:50 +02:00
|
|
|
[con_mark="d" floating=True] scratchpad show;
|
2022-07-31 20:01:35 +02:00
|
|
|
bindsym $mod+z [con_mark="z" tiling=True] focus; [con_mark="z" floating=True] focus output $$main; \
|
2022-07-18 12:38:50 +02:00
|
|
|
[con_mark="z" floating=True] scratchpad show;
|
2022-07-31 20:01:35 +02:00
|
|
|
bindsym $mod+x [con_mark="x" tiling=True] focus; [con_mark="x" floating=True] focus output $$main; \
|
2022-07-18 12:38:50 +02:00
|
|
|
[con_mark="x" floating=True] scratchpad show;
|
2022-07-31 20:01:35 +02:00
|
|
|
bindsym $mod+c [con_mark="c" tiling=True] focus; [con_mark="c" floating=True] focus output $$main; \
|
2022-07-18 12:38:50 +02:00
|
|
|
[con_mark="c" floating=True] scratchpad show;
|
2022-07-31 20:01:35 +02:00
|
|
|
bindsym $mod+Shift+u exec notify-send $$main
|
2020-12-18 14:28:23 +01:00
|
|
|
|
2021-02-02 21:33:49 +01:00
|
|
|
#
|
|
|
|
# Notifications
|
|
|
|
#
|
2021-02-04 08:08:45 +01:00
|
|
|
bindsym $mod+comma exec dunstctl close
|
|
|
|
bindsym $mod+Shift+comma exec dunstctl close-all
|
2021-02-02 21:33:49 +01:00
|
|
|
bindsym $mod+period exec dunstctl history-pop
|
2021-02-03 09:47:54 +01:00
|
|
|
bindsym $mod+Shift+period exec dunstctl set-paused toggle
|
2021-02-02 21:33:49 +01:00
|
|
|
|
2021-01-22 10:01:56 +01:00
|
|
|
#
|
|
|
|
# Modes
|
|
|
|
#
|
2020-12-23 11:24:22 +01:00
|
|
|
mode "move" {
|
2021-01-06 19:15:39 +01:00
|
|
|
bindsym $left move left 25px
|
|
|
|
bindsym $down move down 25px
|
|
|
|
bindsym $up move up 25px
|
|
|
|
bindsym $right move right 25px
|
|
|
|
# move more
|
|
|
|
bindsym Shift+$left move left 100px
|
|
|
|
bindsym Shift+$down move down 100px
|
|
|
|
bindsym Shift+$up move up 100px
|
|
|
|
bindsym Shift+$right move right 100px
|
2021-02-21 21:16:55 +01:00
|
|
|
# edges
|
2022-09-20 21:21:42 +02:00
|
|
|
bindsym q exec $move_cmd top-left
|
|
|
|
bindsym w exec $move_cmd top-center
|
|
|
|
bindsym e exec $move_cmd top-right
|
|
|
|
bindsym a exec $move_cmd center-left
|
|
|
|
bindsym s exec $move_cmd center-center
|
|
|
|
bindsym d exec $move_cmd center-right
|
|
|
|
bindsym z exec $move_cmd bottom-left
|
|
|
|
bindsym x exec $move_cmd bottom-center
|
|
|
|
bindsym c exec $move_cmd bottom-right
|
2022-03-07 09:21:12 +01:00
|
|
|
# resize presets
|
2022-09-20 21:21:42 +02:00
|
|
|
# bindsym -1 resize set width 600px height 360px
|
|
|
|
# bindsym 0 resize set width 700px height 420px
|
|
|
|
bindsym 1 resize set width 800px height 480px
|
|
|
|
bindsym 2 resize set width 900px height 540px
|
|
|
|
bindsym 3 resize set width 1000px height 600px
|
|
|
|
bindsym 4 resize set width 1100px height 660px
|
|
|
|
bindsym 5 resize set width 1200px height 720px
|
|
|
|
bindsym 6 resize set width 1300px height 780px
|
|
|
|
bindsym 7 resize set width 1400px height 840px
|
|
|
|
bindsym 8 resize set width 1500px height 900px
|
|
|
|
bindsym 9 resize set width 1600px height 1040px
|
|
|
|
bindsym 0 resize set width 1700px height 1200px
|
2021-04-28 08:16:09 +02:00
|
|
|
# focus
|
|
|
|
bindsym $mod+h focus left
|
|
|
|
bindsym $mod+j focus down
|
|
|
|
bindsym $mod+k focus up
|
|
|
|
bindsym $mod+l focus right
|
2020-12-23 11:24:22 +01:00
|
|
|
# Return to default mode
|
2022-06-28 08:19:39 +02:00
|
|
|
bindsym Return exec $notify_cmd "mode: default"; mode "default"
|
|
|
|
bindsym Escape exec $notify_cmd "mode: default"; mode "default"
|
2020-12-23 11:24:22 +01:00
|
|
|
}
|
2022-03-18 08:08:21 +01:00
|
|
|
mode "mark" {
|
2022-06-28 08:19:39 +02:00
|
|
|
bindsym a exec $notify_cmd "mode: mark a"; mark a
|
|
|
|
bindsym s exec $notify_cmd "mode: mark s"; mark s
|
|
|
|
bindsym d exec $notify_cmd "mode: mark d"; mark d
|
|
|
|
bindsym z exec $notify_cmd "mode: mark z"; mark z
|
|
|
|
bindsym x exec $notify_cmd "mode: mark x"; mark x
|
|
|
|
bindsym c exec $notify_cmd "mode: mark c"; mark c
|
|
|
|
bindsym Return exec $notify_cmd "mode: default"; mode "default"
|
|
|
|
bindsym Escape exec $notify_cmd "mode: default"; mode "default"
|
2022-03-18 08:08:21 +01:00
|
|
|
}
|
2022-05-01 11:15:06 +02:00
|
|
|
# Move the focused workspace to another monitor
|
|
|
|
mode "move-workspace" {
|
2022-06-28 08:19:39 +02:00
|
|
|
bindsym h move workspace to output left
|
|
|
|
bindsym j move workspace to output down
|
|
|
|
bindsym k move workspace to output up
|
|
|
|
bindsym l move workspace to output right
|
|
|
|
bindsym $mod+h focus left
|
|
|
|
bindsym $mod+j focus down
|
|
|
|
bindsym $mod+k focus up
|
|
|
|
bindsym $mod+l focus right
|
|
|
|
bindsym Return exec $notify_cmd "mode: default"; mode "default"
|
|
|
|
bindsym Escape exec $notify_cmd "mode: default"; mode "default"
|
2022-05-01 11:15:06 +02:00
|
|
|
}
|
2022-06-28 08:19:39 +02:00
|
|
|
bindsym $mod+m exec $notify_cmd "mode: move"; mode "move"
|
|
|
|
bindsym $mod+Shift+a exec $notify_cmd "mode: mark"; mode "mark"
|
|
|
|
bindsym $mod+o exec $notify_cmd "mode: move-workspace"; mode "move-workspace"
|
2020-12-23 11:24:22 +01:00
|
|
|
|
2020-12-19 02:08:41 +01:00
|
|
|
#
|
|
|
|
# Window Rules:
|
|
|
|
#
|
|
|
|
for_window [title="nmtui"] floating enable
|
2021-04-29 10:38:50 +02:00
|
|
|
for_window [app_id="nm-connection-editor"] floating enable
|
2021-01-14 13:05:06 +01:00
|
|
|
for_window [title="float*"] floating enable
|
2021-01-04 17:37:39 +01:00
|
|
|
for_window [app_id="pavucontrol"] floating enable
|
|
|
|
for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable
|
2021-03-21 12:12:24 +01:00
|
|
|
for_window [app_id="imv"] floating enable
|
2021-05-12 07:21:49 +02:00
|
|
|
for_window [app_id="nm-openconnect-auth-dialog"] floating enable
|
2021-01-06 19:15:39 +01:00
|
|
|
for_window [app_id=".*"] title_format '<span font_weight="bold">%title</span> <span>(%app_id)</span>'
|
|
|
|
for_window [class=".*"] title_format '<span font_weight="bold">%title</span> <span>(%class:%instance)</span>'
|
2021-04-29 10:38:50 +02:00
|
|
|
# different dashes!
|
2021-03-21 14:03:45 +01:00
|
|
|
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] floating enable
|
2021-04-29 10:38:50 +02:00
|
|
|
for_window [app_id="firefox" title="Firefox - Sharing Indicator"] floating enable
|
2021-03-21 14:03:45 +01:00
|
|
|
for_window [app_id="firefox" title="Picture-in-Picture"] floating enable
|
2021-02-24 11:53:11 +01:00
|
|
|
for_window [title="bluetoothctl"] floating enable
|
2021-02-25 07:57:43 +01:00
|
|
|
for_window [title="fzf"] floating enable
|
2022-03-15 21:07:56 +01:00
|
|
|
# mark rules
|
|
|
|
for_window [class="Plexamp" window_type="normal"] mark s
|
2022-06-19 10:29:04 +02:00
|
|
|
for_window [class="Ferdium" window_type="normal" window_role="browser-window"] mark z
|
2022-03-15 21:07:56 +01:00
|
|
|
for_window [class="Signal" window_type="normal" window_role="browser-window"] mark x
|
|
|
|
for_window [class="Microsoft Teams - Preview" window_type="normal"] mark c
|
2021-07-07 10:34:40 +02:00
|
|
|
# matlab workaround
|
|
|
|
no_focus [class="MATLAB R2021a" instance="sun-awt-X11-XDialogPeer"]
|
2020-12-19 02:08:41 +01:00
|
|
|
|
2020-12-18 14:28:23 +01:00
|
|
|
#
|
|
|
|
# Status Bar:
|
|
|
|
#
|
2022-05-02 20:19:26 +02:00
|
|
|
exec_always $waybar_cmd
|
2022-08-25 10:55:10 +02:00
|
|
|
exec_always $sov_cmd
|
2022-05-02 20:19:26 +02:00
|
|
|
exec_always $idle_cmd
|
|
|
|
|
2021-01-04 17:37:39 +01:00
|
|
|
#
|
|
|
|
# Autostart
|
|
|
|
#
|
2022-03-18 08:08:21 +01:00
|
|
|
exec "bash -c 'sleep 10; nextcloud --background'"
|
2021-02-01 12:07:41 +01:00
|
|
|
exec --no-startup-id dunst
|
2021-05-07 11:41:52 +02:00
|
|
|
exec --no-startup-id nm-applet --indicator
|
2022-04-01 10:32:28 +02:00
|
|
|
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
2022-05-02 20:19:26 +02:00
|
|
|
exec --no-startup-id $swayidle_cmd
|
2021-01-04 17:37:39 +01:00
|
|
|
|
2020-12-18 14:28:23 +01:00
|
|
|
include /etc/sway/config.d/*
|