[util/xrandr] Add binaries for rewriting i3 config
This commit is contained in:
parent
41f8f31dd8
commit
3033c6646c
2 changed files with 45 additions and 0 deletions
15
bin/toggle-display.sh
Executable file
15
bin/toggle-display.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo $(dirname $(readlink -f "$0"))
|
||||
|
||||
i3bar_update=$(dirname $(readlink -f "$0"))/load-i3-bars.sh
|
||||
|
||||
xrandr "$@"
|
||||
|
||||
if [ -f $i3bar_update ]; then
|
||||
sleep 1
|
||||
if [ -f ~/.config/i3/images/background.png ]; then
|
||||
feh --bg-fill ~/.config/i3/images/background.png
|
||||
fi
|
||||
$i3bar_update
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue