summaryrefslogtreecommitdiff
path: root/.config/sway/config
blob: 8fadb0e1b0d7c49fca5fe716f30551de5f10367d (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
set $term $TERMINAL
set $lock swaylock -c "#000000"

exec foot -s
exec mako
exec kanshi
exec_always kanshictl reload
exec_always xrdb -load "$XDG_CONFIG_HOME/Xresources"

font pango:Iosevka 10.5

default_border pixel 1
default_floating_border pixel 1
gaps inner 8

output * bg #000000 solid_color

seat * xcursor_theme Adwaita 24

input type:pointer {
    accel_profile flat
    pointer_accel 0.6
}

input type:keyboard {
    xkb_options caps:escape
    repeat_delay 300
    repeat_rate 50
}

input type:touchpad {
    natural_scroll enabled
}

input "2:10:TPPS/2_IBM_TrackPoint" {
    accel_profile flat
    pointer_accel 1
}

client.focused          #285577 #285577 #ffffff #2e9ef4 #285577
#client.focused_inactive #5f676a #5f676a #ffffff #484e50 #5f676a
client.focused_inactive #222222 #222222 #888888 #292d2e #222222
client.unfocused        #222222 #222222 #888888 #292d2e #222222
client.urgent           #900000 #900000 #ffffff #000000 #900000

bar {
    position top
    tray_output none
    colors {
        background #090909

        active_workspace   #090909 #5f676a #ffffff
        focused_workspace  #090909 #285577 #ffffff
        inactive_workspace #090909 #222222 #888888
        urgent_workspace   #090909 #900000 #ffffff
    }
}

set $mod Mod4
set $alt Mod1

set $audioset 5

for_window [class="Nsxiv"] floating enable
for_window [shell="xwayland"] title_format "[XWayland] %title"

floating_modifier $mod

bindsym $mod+Return exec $term
bindsym $mod+p exec fuzzel

bindsym Print exec screenshot
bindsym Shift+Print exec screenshot -s

bindsym XF86AudioRaiseVolume exec wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ $audioset%+ && notify-volume
bindsym XF86AudioLowerVolume exec wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ $audioset%- && notify-volume
bindsym $mod+backslash exec notify-loadavg

bindsym $mod+Shift+c kill
bindsym $mod+Shift+f fullscreen

bindsym $mod+b splith
bindsym $mod+v splitv
bindsym $mod+a focus parent

bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle

bindsym $mod+Shift+r reload
bindsym $mod+Shift+q exit
bindsym $mod+Control+l exec $lock

bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right

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+Tab workspace back_and_forth
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+Tab move container to workspace back_and_forth