20241118
This commit is contained in:
parent
7aee7348cf
commit
01150ca2fa
10 changed files with 84 additions and 34 deletions
Binary file not shown.
5
global/scripts/bin/lock.sh
Executable file
5
global/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
|
31
global/scripts/bin/screenshot.sh
Executable file
31
global/scripts/bin/screenshot.sh
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if (($# != 1)); then
|
||||
echo "Error! No mode. Use: screenshot.sh full|region"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
mode=$1
|
||||
screenshot="$HOME/Screenshots/screenshot-$(date +'%Y_%m_%d-%H_%M_%S').png"
|
||||
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
echo "Not implemented yet"
|
||||
exit 0
|
||||
elif [[ "$(uname)" == "Linux" ]]; then
|
||||
case $mode in
|
||||
full)
|
||||
maim $screenshot
|
||||
rofi -e "Screenshot created: $screenshot"
|
||||
;;
|
||||
region)
|
||||
maim --select $screenshot
|
||||
rofi -e "Screenshot created: $screenshot"
|
||||
;;
|
||||
*)
|
||||
echo "Error! Invalid mode. Use screenshot.sh full|region "
|
||||
;;
|
||||
esac
|
||||
else
|
||||
echo "Unknown OS"
|
||||
exit 2
|
||||
fi
|
12
global/scripts/bin/setup_displays
Executable file
12
global/scripts/bin/setup_displays
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
connected_monitors=$(xrandr | grep " connected" | awk '{ print $1 }')
|
||||
if echo "$connected_monitors" | grep -q "HDMI"; then
|
||||
xrandr --output eDP-1 --off
|
||||
xrandr --output HDMI-1-0 --mode 2560x1440 --rate 165.00 --dpi 120
|
||||
# xrandr --output eDP-1 --left-of HDMI-1-0
|
||||
xrandr --output HDMI-1-0 --primary
|
||||
else
|
||||
xrandr --output eDP-1 --mode 2560x1600 --rate 240.00 --dpi 160
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue