summaryrefslogtreecommitdiff
path: root/.local/bin/barpos
blob: deb3840a1f155161123fed31f0d5db46d788b77f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

polybar_cfg=$XDG_CONFIG_HOME/polybar/config.ini 

bottom_str="bottom = true"
top_str="bottom = false"

if grep -q "$bottom_str" $polybar_cfg; then
    sed -i "s/$bottom_str/$top_str/" $polybar_cfg
else
    sed -i "s/$top_str/$bottom_str/" $polybar_cfg
fi

polybar-launch