-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeys
165 lines (131 loc) · 5.95 KB
/
keys
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
## Key Bindings
# set key vars
set $shift shift
set $super Mod4
set $ctrl control
set $alt Mod1
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $super+$ctrl
set $left h
set $down j
set $up k
set $right l
set $ulauncher_toggle exec --no-startup-id ulauncher-toggle
# bindsym $super+space $ulauncher_toggle
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# Media Keys
bindsym XF86AudioPlay exec --no-startup-id playerctl2 play-pause
bindsym XF86AudioNext exec --no-startup-id playerctl2 next
bindsym XF86AudioPrev exec --no-startup-id playerctl2 previous
bindsym XF86AudioStop exec --no-startup-id playerctl2 stop
bindsym $ctrl+XF86AudioPlay exec --no-startup-id playerctl -p spotify shuffle toggle
# Screenshots
bindsym $alt+$shift+s exec --no-startup-id maim -s -u | xclip -selection clipboard -t image/png
bindsym $alt+$shift+$ctrl+s exec --no-startup-id ksnip -r
# start a terminal
#bindsym $super+Return exec --no-startup-id i3-sensible-terminal
# kill focused window
bindsym $super+q kill
# start dmenother multimedia u (a program launcher)
# bindsym $super+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
# bindcode $super+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $super+40 exec --no-startup-id i3-dmHenu-desktop
# monitor swapping
bindsym $super+$shift+F11 exec --no-startup-id monswap dp
bindsym $super+$shift+F12 exec --no-startup-id monswap hdmi
# lock
bindsym $super+$ctrl+q exec --no-startup-id loginctl lock-session
# terminal
bindsym $super+$shift+$ctrl+t exec --no-startup-id alacritty
# change focus
bindsym $super+$left focus left
bindsym $super+$down focus down
bindsym $super+$up focus up
bindsym $super+$right focus right
# move focused window
bindsym $super+$shift+$left move left
bindsym $super+$shift+$down move down
bindsym $super+$shift+$up move up
bindsym $super+$shift+$right move right
bindsym $super+$shift+minus move scratchpad
bindsym $super+minus scratchpad show
# split in horizontal orientation
bindsym $super+g split h
# split in vertical orientation
bindsym $super+v split v
# enter fullscreen mode for the focused container
bindsym $super+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $super+s layout stacking
bindsym $super+w layout tabbed
bindsym $super+e layout toggle split
# toggle tiling / floating
bindsym $super+$shift+space floating toggle
# change focus between tiling / floating windows
#bindsym $super+1 focus mode_toggle
# focus the parent container
bindsym $super+a focus parent
bindsym $super+z focus child
# focus the child container
#bindsym $super+d focus child
# switch to workspace
bindsym $super+2 workspace number $ws1
bindsym $super+1 workspace number $ws2
bindsym $super+3 workspace number $ws3
bindsym $super+$ctrl+2 workspace number $ws4
bindsym $super+$ctrl+1 workspace number $ws5
bindsym $super+$ctrl+3 workspace number $ws6
bindsym $super+7 workspace number $ws7
bindsym $super+8 workspace number $ws8
bindsym $super+9 workspace number $ws9
bindsym $super+0 workspace number $ws10
bindsym $super+$ctrl+Left workspace prev_on_output
bindsym $super+$ctrl+Right workspace next_on_output
# move focused container to workspace
bindsym $super+$shift+2 move container to workspace number $ws1
bindsym $super+$shift+1 move container to workspace number $ws2
bindsym $super+$shift+3 move container to workspace number $ws3
bindsym $super+$ctrl+$shift+2 move container to workspace number $ws4
bindsym $super+$ctrl+$shift+1 move container to workspace number $ws5
bindsym $super+$ctrl+$shift+3 move container to workspace number $ws6
bindsym $super+$shift+7 move container to workspace number $ws7
bindsym $super+$shift+8 move container to workspace number $ws8
bindsym $super+$shift+9 move container to workspace number $ws9
bindsym $super+$shift+0 move container to workspace number $ws10
# bindsym $super+$shift+Left move container to workspace prev_on_output
# bindsym $super+$shift+Right move container to workspace next_on_output
# move workspace to output
bindsym $super+$alt+$shift+1 move workspace to output $disp2
bindsym $super+$alt+$shift+2 move workspace to output $disp1
bindsym $super+$alt+$shift+3 move workspace to output $disp3
# reload the configuration file
bindsym $super+$shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $super+$shift+r restart
# exit i3 (logs you out of your X session)
bindsym $super+$shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym $left resize shrink width 10 px or 10 ppt
bindsym $down resize grow height 10 px or 10 ppt
bindsym $up resize shrink height 10 px or 10 ppt
bindsym $right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $super+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $super+r mode "default"
}
bindsym $super+r mode "resize"