-
Notifications
You must be signed in to change notification settings - Fork 176
/
Copy pathglobals
64 lines (51 loc) · 1.77 KB
/
globals
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
set {
# Vi-keys
$left h
$down j
$up k
$right l
# Sway scripts directory
$sway ~/.config/sway/scripts
# Eww scripts directory
$eww ~/.config/eww/scripts
$screenshots_dir ~/pix/screenshots
# Terminal emulator
# Use `-1` for the single-instance feature of kitty to reduce startup time
$term kitty -1
# Combined application launcher + window switcher
$menu $sway/rofi-sway
# Nightmode
$nightmode_temp 3700
$cmd_nightmode pkill gammastep; gammastep -O $nightmode_temp
$cmd_nightmode_toggle pgrep gammastep >/dev/null && pkill gammastep || gammastep -O $nightmode_temp
$cmd_volume_lower "pactl set-sink-volume @DEFAULT_SINK@ -2%"
$cmd_volume_raise "pactl set-sink-mute @DEFAULT_SINK@ 0 && pactl set-sink-volume @DEFAULT_SINK@ +2%"
$cmd_volume_mute "pactl set-sink-mute @DEFAULT_SINK@ toggle"
$cmd_microphone_mute "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
$cmd_brightness_lower "light -U 10"
$cmd_brightness_raise "light -A 10"
$cmd_editor "$term --class editor -e -- sh -c 'NVIM_LISTEN_ADDRESS=/tmp/nvim-listen-address-sway nvr -s'"
# Move and resize steps
$move_px 20
$resize_px 20
# Workspace names
$ws1 1
$ws2 2
$ws3 3
$ws4 4
$ws5 5
$ws6 6
$ws7 7
$ws8 8
$ws9 9
$ws10 10
# >> Misc
# Send tick to trigger a split indicator update.
# The $post_split command is added as a suffix to all split keybinds.
$post_split exec "swaymsg -t send_tick split"
# Switch to workspace (and focus any urgent clients in it, if they exist)
# The $post_workspace_switch command is added as a suffix to all workspace
# switching keybinds.
$post_workspace_switch [workspace="__focused__" urgent="first"] focus
}
# vim:set ft=conf: