2020-02-11 12:11:29 +01:00
|
|
|
set $lock swaylock
|
2020-01-08 16:29:30 +01:00
|
|
|
set $mod Mod4
|
2020-01-12 19:29:18 +01:00
|
|
|
set $term env DARKMODE=true alacritty --config-file=/home/dln/.config/alacritty/alacritty-dark.yml
|
2020-01-08 16:29:30 +01:00
|
|
|
|
|
|
|
set $left h
|
|
|
|
set $down j
|
|
|
|
set $up k
|
|
|
|
set $right l
|
2019-11-10 17:51:57 +01:00
|
|
|
|
2020-02-09 18:57:53 +01:00
|
|
|
input "1739:30385:DELL08AF:00_06CB:76B1_Touchpad" {
|
2019-11-10 17:51:57 +01:00
|
|
|
tap enabled
|
|
|
|
natural_scroll enabled
|
2020-01-28 09:57:09 +01:00
|
|
|
pointer_accel 0.2
|
2019-11-10 17:51:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
input "1:1:AT_Translated_Set_2_keyboard" {
|
|
|
|
xkb_layout us-se-umlauts
|
|
|
|
}
|
|
|
|
|
|
|
|
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
|
|
|
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
|
|
|
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
|
|
|
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
|
|
|
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
|
|
|
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
|
|
|
bindsym XF86AudioPlay exec playerctl play-pause
|
|
|
|
bindsym XF86AudioNext exec playerctl next
|
|
|
|
bindsym XF86AudioPrev exec playerctl previous
|
|
|
|
|
|
|
|
bindsym F1 workspace 1
|
|
|
|
bindsym F2 workspace 2
|
|
|
|
bindsym F3 workspace 3
|
|
|
|
bindsym F4 workspace 4
|
|
|
|
bindsym F5 workspace 5
|
|
|
|
bindsym F6 workspace 6
|
|
|
|
bindsym F7 workspace 7
|
|
|
|
bindsym F8 workspace 8
|
|
|
|
bindsym F9 workspace 9
|
|
|
|
bindsym Shift+F1 move container to workspace 1
|
|
|
|
bindsym Shift+F2 move container to workspace 2
|
|
|
|
bindsym Shift+F3 move container to workspace 3
|
|
|
|
bindsym Shift+F4 move container to workspace 4
|
|
|
|
bindsym Shift+F5 move container to workspace 5
|
|
|
|
bindsym Shift+F6 move container to workspace 6
|
|
|
|
bindsym Shift+F7 move container to workspace 7
|
|
|
|
bindsym Shift+F8 move container to workspace 8
|
|
|
|
bindsym Shift+F9 move container to workspace 9
|
2019-11-10 18:13:22 +01:00
|
|
|
bindsym Mod4+Shift+c kill
|
2019-11-14 12:50:37 +01:00
|
|
|
bindsym Mod4+Shift+q exit
|
2020-01-12 19:29:18 +01:00
|
|
|
bindsym Mod4+Return exec $term
|
2020-01-28 09:57:09 +01:00
|
|
|
bindsym Mod4+Shift+Return exec alacritty -e tmux attach -t0
|
2019-12-04 17:28:14 +01:00
|
|
|
bindsym Mod4+Control+Return exec alacritty --config-file=/home/dln/.config/alacritty/alacritty-tiny.yaml
|
2020-02-10 19:23:50 +01:00
|
|
|
bindsym Mod4+p exec rofi -show run
|
2020-01-08 16:29:30 +01:00
|
|
|
bindsym Mod4+l exec $lock
|
2019-11-10 18:13:22 +01:00
|
|
|
bindsym Mod4+space exec makoctl dismiss -a
|
2019-11-10 18:22:17 +01:00
|
|
|
bindsym Mod4+print exec grim -g "$(slurp)" - | wl-copy
|
2020-01-08 16:29:30 +01:00
|
|
|
bindsym Mod4+Shift+minus move scratchpad
|
|
|
|
bindsym Mod4+minus scratchpad show
|
2019-11-10 17:51:57 +01:00
|
|
|
|
|
|
|
floating_modifier Mod4
|
2019-11-10 18:13:22 +01:00
|
|
|
bindsym Mod4+Shift+f floating toggle
|
|
|
|
bindsym Mod4+f focus mode_toggle
|
2019-11-10 17:51:57 +01:00
|
|
|
|
2020-02-09 19:36:53 +01:00
|
|
|
bindsym Mod4+x floating enable; resize set width 80 ppt; resize set height 100 ppt ; move position center
|
|
|
|
|
2020-01-08 16:29:30 +01:00
|
|
|
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 20px
|
|
|
|
bindsym $down resize grow height 20px
|
|
|
|
bindsym $up resize shrink height 20px
|
|
|
|
bindsym $right resize grow width 20px
|
|
|
|
|
|
|
|
# Ditto, with arrow keys
|
|
|
|
bindsym Left resize shrink width 20px
|
|
|
|
bindsym Down resize grow height 20px
|
|
|
|
bindsym Up resize shrink height 20px
|
|
|
|
bindsym Right resize grow width 20px
|
|
|
|
|
|
|
|
# Return to default mode
|
|
|
|
bindsym Return mode "default"
|
|
|
|
bindsym Escape mode "default"
|
|
|
|
}
|
|
|
|
bindsym $mod+r mode "resize"
|
|
|
|
|
2019-11-10 17:51:57 +01:00
|
|
|
hide_edge_borders both
|
|
|
|
smart_borders on
|
2019-12-04 17:28:14 +01:00
|
|
|
default_border none
|
|
|
|
smart_gaps on
|
2019-11-10 17:51:57 +01:00
|
|
|
|
2019-12-04 13:18:50 +01:00
|
|
|
tiling_drag enable
|
|
|
|
|
2019-11-10 17:51:57 +01:00
|
|
|
seat seat0 xcursor_theme Bibata_Oil 48
|
|
|
|
|
2020-02-09 18:57:53 +01:00
|
|
|
output "eDP-1" scale 1
|
2020-01-08 16:29:30 +01:00
|
|
|
output "eDP-1" background #000000 solid_color
|
2020-02-09 20:54:02 +01:00
|
|
|
output "eDP-1" bg /home/dln/.config/sway/laser.png center
|
2020-01-08 16:29:30 +01:00
|
|
|
|
2020-02-10 18:51:09 +01:00
|
|
|
exec mako
|
|
|
|
exec redshift
|
2020-02-10 19:23:50 +01:00
|
|
|
exec "systemctl --user import-environment; systemctl --user start sway-session.target"
|
2020-01-12 19:29:18 +01:00
|
|
|
exec $term -e tmux attach
|
|
|
|
|
2020-01-08 16:29:30 +01:00
|
|
|
# Screen lock
|
|
|
|
exec swayidle \
|
|
|
|
timeout 600 '$lock' \
|
|
|
|
timeout 900 'swaymsg "output * dpms off"' \
|
|
|
|
resume 'swaymsg "output * dpms on"' \
|
|
|
|
before-sleep '$lock'
|
2020-01-28 09:57:09 +01:00
|
|
|
|
2020-02-10 18:51:09 +01:00
|
|
|
bar {
|
|
|
|
mode hide
|
|
|
|
font pango:IBM Plex Mono 28
|
|
|
|
position bottom
|
|
|
|
status_command i3blocks
|
|
|
|
workspace_buttons no
|
|
|
|
gaps 0 0 5 0
|
|
|
|
status_padding 0
|
|
|
|
status_edge_padding 0
|
|
|
|
|
|
|
|
colors {
|
|
|
|
statusline #e65100ff
|
|
|
|
background #00000000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|