configs  Check-in [97a27a2119]

Overview
Comment:sway: Move bar to bottom
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 97a27a211903c8707f2d95f2d2aea8725abdf6166289828f3c514d446f0879a9
User & Date: js 2022-12-05 00:11:48
Context
2022-12-05
00:18
sway: Add shortcut to lock screen check-in: 06913d9ead user: js tags: trunk
00:11
sway: Move bar to bottom check-in: 97a27a2119 user: js tags: trunk
00:06
sway: Enable night mode check-in: 5d0f64095e user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to sway/config.

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