217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
|
bindsym Mod4+Shift+s exec grim -g "$(slurp)"
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while echo "$(</sys/class/power_supply/BAT0/capacity)% $(awk '{ printf $1*10^-6 \"W\" }' /sys/class/power_supply/BAT0/power_now) $(date +'%Y-%m-%d %k:%M')"; do sleep 1; done
colors {
statusline #ffffff
|
|
|
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
|
bindsym Mod4+Shift+s exec grim -g "$(slurp)"
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position bottom
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while echo "$(</sys/class/power_supply/BAT0/capacity)% $(awk '{ printf $1*10^-6 \"W\" }' /sys/class/power_supply/BAT0/power_now) $(date +'%Y-%m-%d %k:%M')"; do sleep 1; done
colors {
statusline #ffffff
|