mostly fixes
[distro-setup] / subdir_files / .config / sway / config
1 ####### DO NOT EDIT LIVE CONFIG. generated from /a/bin/distro-setup/i3-sway/gen #######
2
3 # https://i3wm.org/docs/userguide.html#keybindings
4 #To get the current mapping of your keys, use xmodmap -pke. To
5 #interactively enter a key and see what keysym it is configured to, use
6 #xev.
7 set $mod Mod4
8
9 bindsym $mod+2 exec "pavucontrol"
10 bindsym $mod+3 exec "abrowser"
11 #bindsym $mod+3 exec "abrowser -no-remote -P sfw"
12 bindsym $mod+4 exec "abrowser -no-remote -P firefox-main-profile"
13 bindsym $mod+5 exec "/usr/local/bin/start-tor-browser"
14 bindsym $mod+6 exec "/a/bin/redshift.sh"
15 # bindsym $mod+equal exec "t s w; t in"
16 # bindsym $mod+Home exec "t out"
17 # #bindsym $mod+End exec "t s x; t in"
18 # bindsym $mod+grave exec "t s lunch; t in; t out -a '45 minutes from now'"
19
20
21 bindsym $mod+equal focus parent
22 # move firefox to current workspace
23 bindsym $mod+w [class="abrowser"] move workspace current
24
25 bindsym $mod+e fullscreen toggle
26 bindsym $mod+r exec "/a/bin/ds/xl"
27 # todo, in newer i3, make this toggle split tabbed
28 bindsym $mod+t layout toggle split
29 bindsym $mod+Shift+t move workspace to output right
30 bindsym $mod+g layout tabbed
31
32 # Use Mouse+$mod to drag floating windows to their wanted position
33 floating_modifier $mod
34
35 bindsym $mod+u focus left
36 bindsym $mod+i focus right
37 bindsym $mod+o focus up
38 bindsym $mod+p focus down
39
40 bindsym $mod+Left move left
41 bindsym $mod+Right move right
42 bindsym $mod+Up move up
43 bindsym $mod+Down move down
44
45 # switch to workspace
46 bindsym $mod+Shift+a move container to workspace 4
47 bindsym $mod+a workspace 4
48 # move focused container to workspace
49 bindsym $mod+Shift+s move container to workspace 3
50 bindsym $mod+s workspace 3
51
52 bindsym $mod+Shift+d move container to workspace 2
53 bindsym $mod+d workspace 2
54
55 bindsym $mod+Shift+f move container to workspace 1
56 bindsym $mod+f workspace 1
57
58 bindsym $mod+Shift+z move container to workspace 5
59 bindsym $mod+z workspace 5
60
61 bindsym $mod+Shift+x move container to workspace 6
62 bindsym $mod+x workspace 6
63
64
65 # todo, in newer i3, make this split toggle
66 bindsym $mod+v split vertical
67 bindsym $mod+b split horizontal
68
69 bindsym $mod+c kill
70
71
72 bindsym $mod+Shift+Home move container to workspace 7
73 bindsym $mod+Home workspace 7
74 bindsym $mod+Shift+q move container to workspace 8
75 bindsym $mod+q workspace 8
76
77 bindsym $mod+Shift+8 move container to workspace 9
78 bindsym $mod+8 workspace 9
79 bindsym $mod+Shift+9 move container to workspace 10
80 bindsym $mod+9 workspace 10
81
82
83 # random keybind, feel free to change
84 bindsym $mod+Shift+m border toggle
85
86 # toggle tiling / floating
87 bindcode $mod+Shift+65 floating toggle
88
89 # change focus between tiling / floating windows
90 bindcode $mod+65 focus mode_toggle
91 # Use Mouse+$mod to drag floating windows to their wanted position
92 floating_modifier $mod
93
94 bindsym $mod+j exec emacsclient -c
95 bindsym $mod+k exec konsole
96 bindsym $mod+l exec dmenu_run
97 # note default is 27% on my system76. not sure if these
98 # keybinds will screw up other laptop brightness keys.
99 bindsym XF86MonBrightnessUp exec brightnessctl s +5%
100 bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
101
102 # Font for window titles. Will also be used by the bar unless a different font
103 # is used in the bar {} block below.
104 font pango:monospace 8
105
106 # todo: only available in newer i3n
107 #hide_edge_borders smart
108
109 #exec --no-startup-id /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
110
111 # Start clipster daemon
112 #exec --no-startup-id /a/opt/clipster/clipster -d
113
114
115 # shortcut to selection widget (primary)
116 bindsym $mod+End exec /a/opt/clipster/clipster -sp
117
118 # file:///usr/share/doc/i3-wm/userguide.html#_border_style_for_new_windows
119 new_window none
120 # exit sway (logs you out of your Wayland session)
121 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'
122
123 bindsym $mod+Shift+p reload