File: toggle-display.sh

package info (click to toggle)
bumblebee-status 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,844 kB
  • sloc: python: 13,430; sh: 68; makefile: 29
file content (15 lines) | stat: -rwxr-xr-x 296 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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