sway/config 3.7 K raw
1
# ~/.config/sway/config -- Darkmatter
2
# Palette matches the Darkmatter GTK theme, kitty, and emacs themes.
3
# Bindings follow the old cwmrc where sway has an equivalent.
4
5
set $mod Mod4
6
set $left h
7
set $down j
8
set $up k
9
set $right l
10
set $term kitty
11
set $menu rofi -show drun
12
seat * xcursor_theme Adwaita 24
13
14
font pango:BerkeleyMono Nerd Font Mono 13
15
16
output * bg $HOME/wallpapers/assets/temple.png fill
17
output HDMI-A-1 scale 1.20
18
19
default_border pixel 2
20
default_floating_border pixel 2
21
gaps inner 12
22
gaps outer 0
23
focus_follows_mouse no
24
25
# Darkmatter
26
# class                 border  bg      text    indicator child_border
27
client.focused          #fbcb97 #121113 #c1c1c1 #e78a53   #fbcb97
28
client.focused_inactive #333333 #121113 #c1c1c1 #333333   #333333
29
client.unfocused        #333333 #121113 #888888 #333333   #333333
30
client.urgent           #e75353 #121113 #c1c1c1 #e75353   #e75353
31
32
# Launchers
33
bindsym $mod+Return exec $term
34
bindsym $mod+d exec $menu
35
bindsym $mod+b exec librewolf --scale=1.25
36
37
# Window actions
38
bindsym $mod+w kill
39
bindsym $mod+f fullscreen toggle
40
bindsym $mod+s exec /home/stevedylandev/guix-dotfiles/scripts/screenshot.sh
41
bindsym $mod+t splith
42
bindsym $mod+v splitv
43
bindsym $mod+e layout toggle split
44
bindsym $mod+Shift+t floating toggle
45
bindsym $mod+space focus mode_toggle
46
bindsym $mod+a focus parent
47
bindsym $mod+n move scratchpad
48
bindsym $mod+Shift+n scratchpad show
49
50
# Focus and move with vim keys
51
bindsym $mod+$left focus left
52
bindsym $mod+$down focus down
53
bindsym $mod+$up focus up
54
bindsym $mod+$right focus right
55
bindsym $mod+Shift+$left move left
56
bindsym $mod+Shift+$down move down
57
bindsym $mod+Shift+$up move up
58
bindsym $mod+Shift+$right move right
59
60
# Resize (Super+Control) with vim keys
61
bindsym $mod+Control+$left resize shrink width 40px
62
bindsym $mod+Control+$down resize grow height 40px
63
bindsym $mod+Control+$up resize shrink height 40px
64
bindsym $mod+Control+$right resize grow width 40px
65
66
# Workspaces: Super+N shows workspace N, Super+Shift+N sends the window there
67
bindsym $mod+1 workspace number 1
68
bindsym $mod+2 workspace number 2
69
bindsym $mod+3 workspace number 3
70
bindsym $mod+4 workspace number 4
71
bindsym $mod+5 workspace number 5
72
bindsym $mod+6 workspace number 6
73
bindsym $mod+7 workspace number 7
74
bindsym $mod+8 workspace number 8
75
bindsym $mod+9 workspace number 9
76
bindsym $mod+Shift+1 move container to workspace number 1
77
bindsym $mod+Shift+2 move container to workspace number 2
78
bindsym $mod+Shift+3 move container to workspace number 3
79
bindsym $mod+Shift+4 move container to workspace number 4
80
bindsym $mod+Shift+5 move container to workspace number 5
81
bindsym $mod+Shift+6 move container to workspace number 6
82
bindsym $mod+Shift+7 move container to workspace number 7
83
bindsym $mod+Shift+8 move container to workspace number 8
84
bindsym $mod+Shift+9 move container to workspace number 9
85
bindsym $mod+grave workspace back_and_forth
86
bindsym $mod+Tab workspace next_on_output
87
bindsym $mod+Shift+Tab workspace prev_on_output
88
89
# Mouse: Super+left drag moves, Super+right drag resizes floating windows
90
floating_modifier $mod normal
91
92
# Window manager
93
bindsym $mod+Shift+Escape reload
94
bindsym $mod+Shift+q exec swaymsg exit
95
96
bar {
97
    position top
98
    font pango:BerkeleyMono Nerd Font Mono 13
99
    status_command while date +'%Y-%m-%d %H:%M'; do sleep 30; done
100
    colors {
101
        background #121113
102
        statusline #c1c1c1
103
        separator  #333333
104
        # class            border  bg      text
105
        focused_workspace  #e78a53 #e78a53 #121113
106
        active_workspace   #333333 #333333 #c1c1c1
107
        inactive_workspace #121113 #121113 #888888
108
        urgent_workspace   #e75353 #e75353 #121113
109
    }
110
}
111
112
# Pin apps to a workspace (see swaymsg -t get_tree for app_id)
113
# assign [app_id="librewolf"] workspace number 2