-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplays
More file actions
executable file
·30 lines (25 loc) · 765 Bytes
/
displays
File metadata and controls
executable file
·30 lines (25 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
## Author : Aditya Shakya
## Mail : adi1090x@gmail.com
## Github : @adi1090x
## Twitter : @adi1090x
style="$($HOME/.config/rofi/applets/menu/style.sh)"
dir="$HOME/.config/rofi/applets/menu/configs/$style"
rofi_command="rofi -theme $dir/time.rasi"
both="<=>"
left="<="
right="=>"
options="$both\n$left\n$right"
## Main
chosen="$(echo -e "$options" | $rofi_command -p "Choose Display Layout" -dmenu -selected-row 1)"
case $chosen in
$both)
xrandr --output HDMI-0 --auto --output DP-0 --primary --mode 2560x1080 --rate 144 --left-of HDMI-0
;;
$left)
xrandr --output HDMI-0 --off --output DP-0 --mode 2560x1080 --rate 144
;;
$right)
xrandr --output HDMI-0 --auto --output DP-0 --off
;;
esac