266 lines
8.7 KiB
Text
266 lines
8.7 KiB
Text
# startup stuff
|
|
exec dbus-update-activation-environment --all
|
|
exec gnome-keyring-daemon --start --components=secrets
|
|
exec export $(gnome-keyring-daemon)
|
|
exec_always swaybg -i /usr/share/backgrounds/3840x2160-dark-debian.png
|
|
exec swayosd-server
|
|
exec poweralertd
|
|
exec brightnessctl s 50%
|
|
exec swaync-client
|
|
exec swtchrd
|
|
exec waybar
|
|
exec nm-applet --indicator
|
|
exec blueman-applet
|
|
exec nextcloud-desktop
|
|
exec safeeyes
|
|
exec /usr/libexec/pipewire-launcher
|
|
exec udiskie -t
|
|
exec wl-paste --type text --watch cliphist store
|
|
exec wlsunset -l 50.6 -L 8.7
|
|
exec /usr/libexec/polkit-mate-authentication-agent-1
|
|
exec pkexec swayosd-libinput-backend
|
|
exec_always {
|
|
gsettings set org.gnome.desktop.interface gtk-theme "Gruvbox-Dark"
|
|
#gsettings set org.gnome.desktop.interface icon-theme "Papirus-Dark"
|
|
}
|
|
|
|
# keybinds
|
|
set $mod Mod4
|
|
|
|
# keyboard layout
|
|
|
|
input * xkb_layout "de"
|
|
|
|
#keybinds
|
|
bindsym $mod+T exec $term
|
|
bindsym $mod+Q kill
|
|
bindsym ALT F4 killactive
|
|
#bindsym $mod+M exit,
|
|
bindsym $mod+tab exec swtchr
|
|
bindsym $mod+E exec nautilus
|
|
bindsym $mod+A exec $menu
|
|
#bindsym Print exec grim # todo: set directory
|
|
|
|
# screenlock
|
|
#exec swayidle -w \ timeout 240 screenlock.sh \ before-sleep screenlock.sh
|
|
bindsym --release $mod+L exec gtklock -d -m userinfo-module.so -m playerctl-module.so
|
|
# start idle if gtklock is running
|
|
exec swayidle -w \
|
|
timeout 300 'pgrep gtklock || swaymsg "output * dpms off"' \
|
|
timeout 300 'pgrep gtklock && swaymsg "output * dpms off"' \
|
|
resume 'swaymsg "output * dpms on"'
|
|
|
|
# player control
|
|
bindsym XF86AudioPlay exec playerctl -a play-pause
|
|
bindsym XF86AudioNext exec playerctl -a next
|
|
bindsym XF86AudioPrev exec playerctl -a previous
|
|
# volume control
|
|
bindsym XF86AudioRaiseVolume exec swayosd-client --output-volume raise
|
|
bindsym XF86AudioLowerVolume exec swayosd-client --output-volume lower
|
|
bindsym XF86AudioMute exec swayosd-client --output-volume mute-toggle
|
|
bindsym --release Caps_Lock exec swayosd-client --caps-lock
|
|
# brightness control
|
|
# TODO: get swayosd working
|
|
#bindsym XF86MonBrightnessUp exec swayosd-client --brightness +5%
|
|
#bindsym XF86MonBrightnessDown exec swayosd-client --brightness -5%
|
|
bindsym XF86MonBrightnessUp exec brightnessctl s +5%
|
|
bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
|
|
# screenshots
|
|
bindsym Print exec slurp | grim -g - - | wl-copy
|
|
#bindsym Print exec slurp | grim -g - - | wl-copy
|
|
|
|
|
|
# Workspaces:
|
|
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
|
|
|
|
|
|
set $left h
|
|
set $down j
|
|
set $up k
|
|
set $right l
|
|
# terminal
|
|
set $term blackbox-terminal
|
|
#launcher
|
|
set $menu fuzzel | xargs swaymsg exec --
|
|
|
|
include /etc/sway/config-vars.d/*
|
|
|
|
### Output configuration
|
|
output eDP1 resolution 1920x1080 position 0,0
|
|
output HDMI-A-1 resolution 3840x2160 position 1920,0 scale 2
|
|
### Idle configuration
|
|
#
|
|
# Example configuration:
|
|
#
|
|
# exec swayidle -w \
|
|
# timeout 300 'swaylock -f -c 000000' \
|
|
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
|
# before-sleep 'swaylock -f -c 000000'
|
|
# TODO: enable gtklock
|
|
#
|
|
### Input configuration
|
|
#
|
|
# set mouse to tap
|
|
#
|
|
input "2362:597:STAR0001:00_093A:0255_Touchpad" {
|
|
tap enabled
|
|
}
|
|
|
|
|
|
# Reload 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
|
|
#
|
|
# Layout stuff:
|
|
#
|
|
# 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
|
|
|
|
# Switch the current container between different layout styles
|
|
bindsym $mod+s layout stacking
|
|
bindsym $mod+w layout tabbed
|
|
#bindsym $mod+e layout toggle split
|
|
|
|
# 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"
|
|
|
|
|
|
# Window tweaks
|
|
|
|
# inhibit idle for VLC and Firefox in fullscreen
|
|
for_window [app_id = "firefox"] inhibit_idle fullscreen
|
|
for_window [class = "vlc"] inhibit_idle fullscreen
|
|
|
|
# steam
|
|
for_window [class="^Steam$" title="^Friends$"] floating enable
|
|
for_window [class="^Steam$" title="Steam - News"] floating enable
|
|
for_window [class="^Steam$" title=".* - Chat"] floating enable
|
|
for_window [class="^Steam$" title="^Settings$"] floating enable
|
|
for_window [class="^Steam$" title=".* - event started"] floating enable
|
|
for_window [class="^Steam$" title=".* CD key"] floating enable
|
|
for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable
|
|
for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable
|
|
for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable
|
|
for_window [title="^Steam Keyboard$"] floating enable
|
|
#firefox
|
|
for_window [title = "About Mozilla Firefox"] floating enable
|
|
for_window [window_role = "About"] floating enable
|
|
for_window [app_id="firefox" title="Library"] floating enable, border pixel 1, sticky enable
|
|
# GNOME Sushi
|
|
for_window [app_id = "org.gnome.NautilusPreviewer"] floating enable
|
|
# floating behaviour
|
|
for_window [window_role = "pop-up"] floating enable
|
|
for_window [window_role = "bubble"] floating enable
|
|
for_window [window_role = "dialog"] floating enable
|
|
for_window [window_type = "dialog"] floating enable
|
|
for_window [window_role = "task_dialog"] floating enable
|
|
for_window [window_type = "menu"] floating enable
|
|
for_window [app_id = "floating"] floating enable
|
|
for_window [app_id = "floating_update"] floating enable, resize set width 1000px height 600px
|
|
for_window [class = "(?i)pinentry"] floating enable
|
|
for_window [title = "Administrator privileges required"] floating enable
|
|
# window gaps
|
|
gaps inner 5
|
|
gaps outer 10
|
|
smart_gaps off
|
|
|
|
|
|
# no titlebars
|
|
default_border pixel 3
|
|
smart_borders on
|
|
default_floating_border normal
|
|
hide_edge_borders none
|