summaryrefslogtreecommitdiff
path: root/files/sway/config
blob: 3ec0052f2d1daf76a570f013aa0b974e12e86dc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
set $mod1 Mod1
set $mod4 Mod4

set $left h
set $down j
set $up k
set $right l

set $term kitty -1
set $menu dmenu-path | bemenu-colored | xargs swaymsg exec --

font pango:monospace 10

default_border normal 1
titlebar_border_thickness 1
titlebar_padding 4 3

floating_modifier $mod1 normal

bindsym $mod1+Shift+q kill
bindsym $mod1+Return exec $term
bindsym $mod1+d exec $menu
bindsym $mod1+Shift+c reload

bindsym $mod1+Shift+e exec swaynag -t warning -m 'Do you really want to exit?' -B 'Yes' 'swaymsg exit'

bindsym $mod1+$left focus left
bindsym $mod1+$down focus down
bindsym $mod1+$up focus up
bindsym $mod1+$right focus right

bindsym $mod1+Shift+$left move left
bindsym $mod1+Shift+$down move down
bindsym $mod1+Shift+$up move up
bindsym $mod1+Shift+$right move right

workspace 1 output DP-1
workspace 2 output DP-1
workspace 3 output DP-1
workspace 4 output DP-1
workspace 5 output DP-2
workspace 6 output DP-2
workspace 7 output DP-2
workspace 8 output DP-2
workspace 9 output HDMI-A-1

bindsym $mod1+1 workspace number 1
bindsym $mod1+2 workspace number 2
bindsym $mod1+3 workspace number 3
bindsym $mod1+4 workspace number 4
bindsym $mod4+1 workspace number 5
bindsym $mod4+2 workspace number 6
bindsym $mod4+3 workspace number 7
bindsym $mod4+4 workspace number 8
bindsym $mod4+5 workspace number 9

bindsym $mod1+Shift+1 move container to workspace number 1
bindsym $mod1+Shift+2 move container to workspace number 2
bindsym $mod1+Shift+3 move container to workspace number 3
bindsym $mod1+Shift+4 move container to workspace number 4
bindsym $mod4+Shift+1 move container to workspace number 5
bindsym $mod4+Shift+2 move container to workspace number 6
bindsym $mod4+Shift+3 move container to workspace number 7
bindsym $mod4+Shift+4 move container to workspace number 8
bindsym $mod4+Shift+5 move container to workspace number 9

bindsym $mod1+b splith
bindsym $mod1+v splitv

bindsym $mod1+f fullscreen
bindsym $mod1+space floating toggle

bindsym $mod1+r mode "resize"
mode "resize" {
  bindsym $left resize shrink width 1px
  bindsym $down resize grow height 1px
  bindsym $up resize shrink height 1px
  bindsym $right resize grow width 1px
  bindsym Escape mode "default"
}

bindsym $mod1+Shift+s exec screenshot
bindsym Print exec screenshot main
bindsym Shift+Print exec screenshot full
bindsym $mod1+q exec screenshot qrcode
bindsym $mod1+c exec screenshot color

bindsym button4 nop
bindsym button5 nop

xwayland force

include config.d/*

# class                 border    bground  text  indicator  child_border
client.focused          $c1_light $c1      $fg   $c1        $c1
client.focused_inactive $c1       $c2      $fg   $c1        $c1
client.unfocused        $c2       $c2      $fg   $bg        $bg
client.urgent           $urgent   $urgent  $fg   $urgent    $urgent
client.placeholder      $bg       $bg      $fg   $bg        $bg
client.background       $bg

exec dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec_always swaymsg 'seat * hide_cursor 4000'
exec swayidle -w \
  timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
exec mako
exec gentoo-pipewire-launcher restart