alpha
Login
or
Join now
j3s.sh
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my dotz
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Yuge vol changes, yuge sway changes
author
Jes Olson
date
4 years ago
(Jun 1, 2022, 12:11 AM -0500)
commit
fdae6a32
fdae6a3280f3b6cdc109c4882e24a814d6de577c
parent
bca62c8d
bca62c8dc3c02c44c29b3e5e751be7b2e6450789
+69
-128
3 changed files
Expand all
Collapse all
Unified
Split
.config
kanshi
config
sway
config
bin
vol
+5
.config/kanshi/config
Reviewed
···
9
9
10
10
profile {
11
11
output eDP-1 disable
12
12
+
output DP-4 enable
13
13
+
}
14
14
+
15
15
+
profile {
16
16
+
output eDP-1 disable
12
17
output DP-2 mode 1920x1080 position 0,0
13
18
output HDMI-A-1 mode 1920x1080 position 1920,0
14
19
}
+51
-122
.config/sway/config
Reviewed
···
1
1
-
# Default config for sway
2
2
-
#
3
3
-
# Copy this to ~/.config/sway/config and edit it to your liking.
4
4
-
#
5
5
-
# Read `man 5 sway` for a complete reference.
6
6
-
7
7
-
### Variables
8
8
-
#
9
9
-
# Logo key. Use Mod1 for Alt.
1
1
+
# vars
10
2
set $mod Mod4
11
11
-
# Home row direction keys, like vim
12
3
set $left h
13
4
set $down j
14
5
set $up k
15
6
set $right l
16
16
-
# Your preferred terminal emulator
17
7
set $term foot
18
8
19
19
-
### Output configuration
20
20
-
#
21
21
-
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
22
22
-
# output * bg /home/j3s/Pictures/wallpapers/widelain.jpg fill
23
23
-
#
24
24
-
# Example configuration:
25
25
-
#
26
26
-
# output HDMI-A-1 resolution 1920x1080 position 1920,0
27
27
-
#
28
28
-
# You can get the names of your outputs by running: swaymsg -t get_outputs
9
9
+
set $wssteam "steam"
10
10
+
set $wsdota2 "dota2"
11
11
+
set $wssuperautopets "super auto pets"
12
12
+
29
13
output DP-1 disable
14
14
+
# qweh?
30
15
# output HDMI-A-2 position 1920,215 resolution 2560x1440@170hz
31
16
# output HDMI-A-1 position 0,395 resolution 1920x1080@74hz
32
17
# output HDMI-A-2 position 4480,0 resolution 1920x1080@74hz transform 90
33
18
34
34
-
### Idle configuration
35
35
-
#
36
36
-
# Example configuration:
37
37
-
#
38
38
-
#exec swayidle -w \
39
39
-
# timeout 300 'swaylock -f -c 000000' \
40
40
-
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
41
41
-
# before-sleep 'swaylock -f -c 000000'
42
42
-
#
43
43
-
# This will lock your screen after 300 seconds of inactivity, then turn off
44
44
-
# your displays after another 300 seconds, and turn your screens back on when
45
45
-
# resumed. It will also lock your screen before your computer goes to sleep.
46
46
-
47
47
-
### Input configuration
48
48
-
#
49
49
-
# Example configuration:
50
50
-
#
51
51
-
# input "2:14:SynPS/2_Synaptics_TouchPad" {
52
52
-
# dwt enabled
53
53
-
# tap enabled
54
54
-
# natural_scroll enabled
55
55
-
# middle_emulation enabled
56
56
-
# }
57
57
-
#
58
58
-
# You can get the names of your inputs by running: swaymsg -t get_inputs
59
59
-
# Read `man 5 sway-input` for more information about this section.
60
60
-
61
19
input "type:keyboard" {
62
20
xkb_layout us
63
21
xkb_options ctrl:nocaps
···
68
26
scroll_button 275
69
27
}
70
28
71
71
-
### Key bindings
72
72
-
#
73
73
-
# Basics:
74
74
-
#
75
75
-
client.focused #4c7899 #000000 #000000 #2e9ef4 #97f0a6
76
76
-
for_window [title="^weallfloatdownhere$"] floating enable, border pixel
29
29
+
# default workspaces
30
30
+
assign [class="^Steam$"] $wssteam
31
31
+
assign [class="^dota2$"] $wsdota2
32
32
+
assign [class="^superautopets.x86_64$"] $wssuperautopets
77
33
78
78
-
# Start a terminal
79
79
-
bindsym $mod+Return exec $term
34
34
+
# layout options
35
35
+
for_window [title="^weallfloatdownhere$"] floating enable, border pixel
80
36
81
81
-
# floating terms
82
82
-
bindsym $mod+Shift+Return exec $term --title 'weallfloatdownhere'
37
37
+
for_window [app_id="^firefox$"] layout tabbed
38
38
+
for_window [class="^Steam$"] layout tabbed
39
39
+
for_window [title="Virtual Machine Manager"] layout tabbed
83
40
84
84
-
# Kill focused window
85
85
-
bindsym $mod+Shift+q kill
41
41
+
for_window [title="Firefox โ Sharing Indicator"] floating enable
42
42
+
for_window [title="Firefox โ Sharing Indicator"] kill
86
43
87
87
-
# notification management (i don't use the Delete key at all)
88
88
-
bindsym Delete exec makoctl dismiss
89
89
-
bindsym $mod+Delete exec makoctl dismiss --all
90
90
-
91
91
-
# bind bad return presses to nothing
92
92
-
# bindsym Shift+Return Return
93
93
-
bindsym Mod1+Shift+Return Return
44
44
+
### keybinds ###
45
45
+
bindsym $mod+Return exec $term
46
46
+
bindsym $mod+Shift+Return exec $term --title 'weallfloatdownhere'
47
47
+
bindsym $mod+Shift+q kill
48
48
+
bindsym Delete exec makoctl dismiss
49
49
+
bindsym $mod+Delete exec makoctl dismiss --all
50
50
+
bindsym Mod1+Shift+Return Return
51
51
+
bindsym $mod+d exec fuzzel
52
52
+
bindsym $mod+Shift+p exec --no-startup-id pa-fuzzel
53
53
+
bindsym $mod+Shift+c reload
54
54
+
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'
94
55
95
95
-
# Start your launcher
96
96
-
bindsym $mod+d exec fuzzel
56
56
+
# Drag floating windows by holding down $mod and left mouse button.
57
57
+
# Resize them with right mouse button + $mod.
58
58
+
# Despite the name, also works for non-floating windows.
59
59
+
# Change normal to inverse to use left mouse button for resizing and right
60
60
+
# mouse button for dragging.
61
61
+
floating_modifier $mod normal
97
62
98
98
-
# Password manager
99
99
-
bindsym $mod+Shift+p exec --no-startup-id pa-fuzzel
100
100
-
101
101
-
# Drag floating windows by holding down $mod and left mouse button.
102
102
-
# Resize them with right mouse button + $mod.
103
103
-
# Despite the name, also works for non-floating windows.
104
104
-
# Change normal to inverse to use left mouse button for resizing and right
105
105
-
# mouse button for dragging.
106
106
-
floating_modifier $mod normal
107
107
-
108
108
-
# Reload the configuration file
109
109
-
bindsym $mod+Shift+c reload
110
110
-
111
111
-
# Exit sway (logs you out of your Wayland session)
112
112
-
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'
113
63
#
114
64
# Moving around:
115
65
#
···
194
144
195
145
# Float config
196
146
# use swaymsg -t get_tree to find class or app_id
197
197
-
for_window [class="Steam"] floating enable
198
198
-
for_window [class="Mumble"] floating enable
199
199
-
for_window [class="Dino"] floating enable
200
200
-
for_window [title="Firefox โ Sharing Indicator"] floating enable
201
201
-
for_window [title="Virtual Machine Manager"] floating enable
202
202
-
for_window [title="Firefox โ Sharing Indicator"] kill
203
147
# for_window [class="Dota 2"] floating enable, border none
204
148
#
205
149
# Scratchpad:
···
220
164
221
165
bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy
222
166
223
223
-
#
224
224
-
# Resizing containers:
225
225
-
#
226
226
-
mode "resize" {
227
227
-
# left will shrink the containers width
228
228
-
# right will grow the containers width
229
229
-
# up will shrink the containers height
230
230
-
# down will grow the containers height
231
231
-
bindsym $left resize shrink width 10px
232
232
-
bindsym $down resize grow height 10px
233
233
-
bindsym $up resize shrink height 10px
234
234
-
bindsym $right resize grow width 10px
235
235
-
236
236
-
# Ditto, with arrow keys
237
237
-
bindsym Left resize shrink width 10px
238
238
-
bindsym Down resize grow height 10px
239
239
-
bindsym Up resize shrink height 10px
240
240
-
bindsym Right resize grow width 10px
167
167
+
include colorscheme
168
168
+
client.focused $base05 $base0D $base00 $base0D $base0D
169
169
+
client.focused_inactive $base01 $base01 $base05 $base03 $base01
170
170
+
client.unfocused $base01 $base00 $base05 $base01 $base01
171
171
+
client.urgent $base08 $base08 $base00 $base08 $base08
172
172
+
client.placeholder $base00 $base00 $base05 $base00 $base00
173
173
+
client.background $base07
241
174
242
242
-
# Return to default mode
243
243
-
bindsym Return mode "default"
244
244
-
bindsym Escape mode "default"
245
245
-
}
246
246
-
bindsym $mod+r mode "resize"
247
247
-
248
248
-
#
249
249
-
# Status Bar:
250
250
-
#
251
251
-
# Read `man 5 sway-bar` for more information about this section.
252
175
bar {
253
176
position top
254
177
···
257
180
status_command statusbar
258
181
259
182
colors {
260
260
-
statusline #89CFF0
261
261
-
focused_workspace #89cff0 #89cff0 #000000
262
262
-
background #000000
263
263
-
inactive_workspace #32323200 #32323200 #5c5c5c
183
183
+
background $base00
184
184
+
separator $base01
185
185
+
statusline $base04
186
186
+
187
187
+
# State Border BG Text
188
188
+
focused_workspace $base05 $base0D $base00
189
189
+
active_workspace $base05 $base03 $base00
190
190
+
inactive_workspace $base03 $base01 $base05
191
191
+
urgent_workspace $base08 $base08 $base00
192
192
+
binding_mode $base00 $base0A $base00
264
193
}
265
194
}
266
195
+13
-6
bin/vol
Reviewed
···
15
15
# prevent volumes of >100% for the
16
16
# good of all ears
17
17
pactl set-sink-volume @DEFAULT_SINK@ 100%
18
18
-
notify-send '๐ vol' --hint=int:value:100 -t 800
18
18
+
notify-send '๐ vol' --hint=int:value:100 -t 800 -h string:x-canonical-private-synchronous:anything
19
19
elif [ "$vol" -lt 0 ]; then
20
20
# prevent volumes of <0% for the
21
21
# good of all ... dog... whateij fiwjoefj
22
22
pactl set-sink-volume @DEFAULT_SINK@ 0%
23
23
-
notify-send '๐ vol' --hint=int:value:0 -t 800
23
23
+
notify-send '๐ vol' --hint=int:value:0 -t 800 -h string:x-canonical-private-synchronous:anything
24
24
else
25
25
-
notify-send '๐ vol' --hint=int:value:"$vol" -t 800
25
25
+
notify-send '๐ vol' --hint=int:value:"$vol" -t 800 -h string:x-canonical-private-synchronous:anything
26
26
fi
27
27
}
28
28
29
29
case "$1" in
30
30
-
ls|list) pactl list short sinks ;;
31
31
-
set) pactl set-default-sink "$2" ;;
30
30
+
ls|list)
31
31
+
pactl list short sinks | awk '{print $1" "$2}'
32
32
+
;;
33
33
+
set)
34
34
+
pactl set-default-sink "$2"
35
35
+
;;
32
36
[0-9]*)
33
37
pactl set-sink-volume @DEFAULT_SINK@ "$1"%
34
38
notify_current_volume
···
42
46
pactl set-sink-volume @DEFAULT_SINK@ -"$2"%
43
47
notify_current_volume
44
48
;;
45
45
-
*) ;;
49
49
+
*)
50
50
+
printf "unknown command\n"
51
51
+
exit 1
52
52
+
;;
46
53
esac