Compare commits
No commits in common. "4cd474411fe97cfd9a09471755f1e7dcd916db37" and "aaa84bbc691daa0244bb0ad6914937b3ec77af6d" have entirely different histories.
4cd474411f
...
aaa84bbc69
1 changed files with 7 additions and 10 deletions
|
@ -1,21 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
extern_1="HDMI-1"
|
extern_1="HDMI1"
|
||||||
extern_2="DP-1"
|
extern_2="DP1"
|
||||||
intern="eDP-1"
|
intern="eDP1"
|
||||||
polybar_top_padding=22
|
polybar_top_padding=22
|
||||||
|
|
||||||
common_adjustments() {
|
|
||||||
~/.fehbg &
|
|
||||||
xmodmap ~/.Xmodmap
|
|
||||||
}
|
|
||||||
|
|
||||||
switch_internal() {
|
switch_internal() {
|
||||||
xrandr --output "$extern_2" --off \
|
xrandr --output "$extern_2" --off \
|
||||||
--output "$extern_1" --off \
|
--output "$extern_1" --off \
|
||||||
--output "$intern" --auto --primary
|
--output "$intern" --auto --primary
|
||||||
herbstclient detect_monitors
|
herbstclient detect_monitors
|
||||||
herbstclient pad 0 "$polybar_top_padding"
|
herbstclient pad 0 "$polybar_top_padding"
|
||||||
|
~/.fehbg &
|
||||||
|
xmodmap ~/.Xmodmap
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_external() {
|
switch_external() {
|
||||||
|
@ -26,16 +23,16 @@ switch_external() {
|
||||||
herbstclient pad 0 0
|
herbstclient pad 0 0
|
||||||
herbstclient pad 2 0
|
herbstclient pad 2 0
|
||||||
herbstclient pad 1 "$polybar_top_padding"
|
herbstclient pad 1 "$polybar_top_padding"
|
||||||
|
~/.fehbg &
|
||||||
|
xmodmap ~/.Xmodmap
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
i* )
|
i* )
|
||||||
switch_internal
|
switch_internal
|
||||||
common_adjustments
|
|
||||||
;;
|
;;
|
||||||
e* )
|
e* )
|
||||||
switch_external
|
switch_external
|
||||||
common_adjustments
|
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
echo "Specify new output configuration. Possibilities are: 'external' and 'internal'"
|
echo "Specify new output configuration. Possibilities are: 'external' and 'internal'"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue