File tree Expand file tree Collapse file tree 10 files changed +91
-47
lines changed Expand file tree Collapse file tree 10 files changed +91
-47
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ exec numlockx
25
25
26
26
# Lockscreen
27
27
exec xset s 600 300
28
- exec xss-lock -n "sBrightnessctl screensaver" -l -- sLockscreenctl -- suspend
28
+ exec xss-lock -n "sBrightnessctl screensaver" -l -- sLockscreenctl suspend
29
29
30
30
# Restore redshift state
31
31
exec $HOME/.config/i3/scripts/restoreRedshift.sh
@@ -84,7 +84,7 @@ bindsym $mod+Ctrl+Shift+p exec sPolybarctl hide
84
84
85
85
86
86
# === Lock the screen
87
- bindsym $mod+l exec sLockscreenctl -- lock
87
+ bindsym $mod+l exec sLockscreenctl lock
88
88
89
89
# Adjust volume
90
90
# -Ctrl is used to control the microphone
Original file line number Diff line number Diff line change @@ -188,13 +188,19 @@ function printUsage() {
188
188
plugin Show notification about plugging AC
189
189
unplug Show notification about unplugging AC
190
190
current Show current information on the battery
191
+
192
+ - Abbreviations
193
+ m = monitor
194
+ p = plugin
195
+ u = unplug
196
+ c = current
191
197
"
192
198
}
193
199
194
200
case $1 in
195
- monitor) monitor ;;
196
- plugin) plugin ;;
197
- unplug) unplug ;;
198
- current) current ;;
201
+ monitor | m ) monitor ;;
202
+ plugin | p ) plugin ;;
203
+ unplug | u ) unplug ;;
204
+ current | c ) current ;;
199
205
help | * ) printUsage ;;
200
206
esac
Original file line number Diff line number Diff line change @@ -54,12 +54,15 @@ function printUsage() {
54
54
help Show this help
55
55
print Print the current status label
56
56
power <toggle|on|off> Switch on or off the bluetooth, or toggle between the states
57
+
58
+ - Abbreviations
59
+ p = power
57
60
"
58
61
}
59
62
60
63
case $1 in
61
64
print) printStatus ;;
62
- power) power $2 && updatePolybar ;;
65
+ power | p ) power $2 && updatePolybar ;;
63
66
help | * ) printUsage ;;
64
67
esac
65
68
Original file line number Diff line number Diff line change @@ -215,21 +215,28 @@ function printUsage() {
215
215
redshift increase [amount] Increase the redshift temperature by [amount] if specified or the default value otherwise
216
216
redshift decrease [amount] Decrease the redshift temperature by [amount] if specified or the default value otherwise
217
217
redshift print Print the current redshift temperature (used in polybar)
218
+
219
+ - Abbreviations
220
+ i = increase
221
+ d = decrease
222
+ s = set
223
+ r = redshift
224
+ t = toggle
218
225
"
219
226
}
220
227
221
228
case $1 in
222
- increase)
229
+ increase | i )
223
230
changeBrightness -inc $2
224
231
updatePolybar
225
232
sendNotification
226
233
;;
227
- decrease)
234
+ decrease | d )
228
235
changeBrightness -dec $2
229
236
updatePolybar
230
237
sendNotification
231
238
;;
232
- set)
239
+ set | s )
233
240
setBrightness " $2 -step $fade_fps -time $fade_time "
234
241
updatePolybar
235
242
sendNotification
@@ -241,14 +248,14 @@ case $1 in
241
248
print)
242
249
printBrightness $2
243
250
;;
244
- redshift)
251
+ redshift | r )
245
252
case $2 in
246
- toggle)
253
+ toggle | t )
247
254
toggleRedshift
248
255
updatePolybar
249
256
sendNotification
250
257
;;
251
- increase)
258
+ increase | i )
252
259
if [ -z $3 ]; then
253
260
changeTemp $(( REDSHIFT_TEMP+ defaultTempChangeValue))
254
261
else
@@ -257,7 +264,7 @@ case $1 in
257
264
updatePolybar
258
265
sendNotification
259
266
;;
260
- decrease)
267
+ decrease | d )
261
268
if [ -z $3 ]; then
262
269
changeTemp $(( REDSHIFT_TEMP- defaultTempChangeValue))
263
270
else
Original file line number Diff line number Diff line change @@ -131,27 +131,29 @@ function printUsage() {
131
131
sLockscreenctl <options>
132
132
133
133
- Options
134
- --suspend Lock the screen and suspend
135
- -s Equivalent to --suspend
136
- --lock Lock the screen
137
- -l Equivalent to --lock
134
+ suspend Lock the screen and suspend
135
+ lock Lock the screen
136
+
137
+ - Abbreviations
138
+ s = suspend
139
+ l = lock
138
140
"
139
141
}
140
142
141
143
case " $1 " in
142
- -s | --suspend )
143
- suspend =true
144
- ;&
145
-
146
- -l | --lock )
147
- lock =true
148
- [[ $suspend ]] || extraArgs=" $extraArgs -n"
149
- ;;
150
- * | help ) printUsage ;;
144
+ suspend | s )
145
+ isSuspend =true
146
+ ;&
147
+
148
+ lock | l )
149
+ isLock =true
150
+ [[ $isSuspend ]] || extraArgs=" $extraArgs -n"
151
+ ;;
152
+ help | * ) printUsage ;;
151
153
esac
152
154
153
155
# Activate lockscreen (and suspend if specified)
154
- [[ $lock ]] && lock && { [[ $suspend ]] && systemctl suspend ; }
156
+ [[ $isLock ]] && lock && { [[ $isSuspend ]] && systemctl suspend ; }
155
157
156
158
exit 0
157
159
Original file line number Diff line number Diff line change @@ -83,21 +83,26 @@ function printUsage() {
83
83
up [amount] Increase input volume by [amount] if specified or the default value otherwise
84
84
down [amount] Decrease input volume by [amount] if specified or the default value otherwise
85
85
mute Toggle mute on/off for the microphone
86
+
87
+ - Abbreviations
88
+ u = up
89
+ d = down
90
+ m = mute
86
91
"
87
92
}
88
93
89
94
case $1 in
90
- up)
95
+ up | u )
91
96
amixer sset Capture cap
92
97
amixer -D pulse sset Capture csvolume " $2 " %+ > /dev/null
93
98
sendNotification
94
99
;;
95
- down)
100
+ down | d )
96
101
amixer sset Capture cap
97
102
amixer -D pulse sset Capture csvolume " $2 " %- > /dev/null
98
103
sendNotification
99
104
;;
100
- mute)
105
+ mute | m )
101
106
amixer -D pulse sset Capture toggle > /dev/null
102
107
if isMute ; then
103
108
# Building the volume bar
Original file line number Diff line number Diff line change @@ -127,30 +127,37 @@ function printUsage() {
127
127
next Go to the next song
128
128
previous Go to the previous song
129
129
info Print info of the playing song
130
+
131
+ - Abbreviations
132
+ pp = play-pause
133
+ s = stop
134
+ n = next
135
+ p = previous
136
+ i = info
130
137
"
131
138
}
132
139
133
140
if [ -z $1 ] || [ $1 == " help" ]; then
134
141
printUsage
135
142
elif [ " $( playerctl -l | head -n 1) " != " No players were found" ]; then
136
143
case $1 in
137
- play-pause)
144
+ play-pause | pp )
138
145
playerctl -p " $player " play-pause
139
146
sendNotification
140
147
;;
141
- stop)
148
+ stop | s )
142
149
playerctl -p " $player " stop
143
150
sendNotification
144
151
;;
145
- next)
152
+ next | n )
146
153
playerctl -p " $player " next
147
154
sendNotification
148
155
;;
149
- previous)
156
+ previous | p )
150
157
playerctl -p " $player " previous
151
158
sendNotification
152
159
;;
153
- info)
160
+ info | i )
154
161
info
155
162
;;
156
163
esac
Original file line number Diff line number Diff line change @@ -151,14 +151,23 @@ function printUsage() {
151
151
[WIP] autoHide <bar id> Enable auto-hide for the specified bar. Move the cursor to [position] to show the bar
152
152
[WIP] drag <bar id> Drag the polybar with the mouse
153
153
[WIP] resize <bar id> Resize the polybar with the mouse
154
+
155
+ - Abbreviations
156
+ l = launch
157
+ t = toggle
158
+ s = show
159
+ h = hide
160
+ d = drag
161
+ r = resize
162
+ i = ipc
154
163
"
155
164
}
156
165
157
166
case " $1 " in
158
- launch)
167
+ launch | l )
159
168
launch
160
169
;;
161
- toggle)
170
+ toggle | t )
162
171
toggle $2
163
172
updateSwitches
164
173
;;
@@ -171,21 +180,21 @@ case "$1" in
171
180
autoHide)
172
181
autoHide $2
173
182
;;
174
- show)
183
+ show | s )
175
184
show $2
176
185
updateSwitches
177
186
;;
178
- hide)
187
+ hide | h )
179
188
hide $2
180
189
updateSwitches
181
190
;;
182
- drag)
191
+ drag | d )
183
192
drag $2
184
193
;;
185
- resize)
194
+ resize | r )
186
195
resize $2
187
196
;;
188
- ipc)
197
+ ipc | i )
189
198
ipc $2 $3 $4 $5
190
199
;;
191
200
help | * ) printUsage ;;
Original file line number Diff line number Diff line change @@ -86,22 +86,27 @@ function printUsage() {
86
86
up [amount] Increase speaker/headphone volume by [amount] if specified or the default value otherwise
87
87
down [amount] Decrease speaker/headphone volume by [amount] if specified or the default value otherwise
88
88
mute Toggle mute on/off for the speaker/headphone
89
+
90
+ - Abbreviations
91
+ u = up
92
+ d = down
93
+ m = mute
89
94
"
90
95
}
91
96
92
97
case $1 in
93
- up)
98
+ up | u )
94
99
# Set the volume on (if it was muted)
95
100
amixer -D pulse set Master on > /dev/null
96
101
amixer -D pulse sset Master " $2 " %+ > /dev/null
97
102
sendNotification
98
103
;;
99
- down)
104
+ down | d )
100
105
amixer -D pulse set Master on > /dev/null
101
106
amixer -D pulse sset Master " $2 " %- > /dev/null
102
107
sendNotification
103
108
;;
104
- mute)
109
+ mute | m )
105
110
# Toggle mute
106
111
amixer -D pulse set Master toggle > /dev/null
107
112
if isMute ; then
Original file line number Diff line number Diff line change 1
1
# simonvic personal full-keyboard driven rice/workflow
2
- ![ version] ( https://img.shields.io/badge/version-2.0 .0-red )
2
+ ![ version] ( https://img.shields.io/badge/version-2.1 .0-red )
3
3
4
4
## Getting started
5
5
Make sure to visit the [ Wiki] ( https://github.com/simonvic/dotfiles/wiki ) to have a ful overview of what my workflow can offer
You can’t perform that action at this time.
0 commit comments