20241125
This commit is contained in:
parent
e35774c3b6
commit
dd6d8eb0b5
3 changed files with 393 additions and 0 deletions
5
linux/scripts/bin/lock.sh
Executable file
5
linux/scripts/bin/lock.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
pkill -u "$USER" -USR1 dunst
|
||||
~/.config/i3/i3lock
|
||||
pkill -u "$USER" -USR2 dunst
|
11
linux/scripts/bin/setup_displays
Executable file
11
linux/scripts/bin/setup_displays
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
connected_monitors=$(xrandr | grep " connected" | awk '{ print $1 }')
|
||||
if echo "$connected_monitors" | grep -q "HDMI"; then
|
||||
xrandr --output DP-2 --off
|
||||
xrandr --output HDMI-0 --mode 2560x1440 --rate 165.00 --dpi 120
|
||||
# xrandr --output eDP-1 --left-of HDMI-1-0
|
||||
xrandr --output HDMI-0 --primary
|
||||
else
|
||||
xrandr --output DP-2 --mode 2560x1600 --rate 240.00 --dpi 160
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue