mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
13 lines
320 B
Bash
Executable File
13 lines
320 B
Bash
Executable File
#!/bin/zsh
|
|
#
|
|
# Toggles the state of the internal laptop monitor, which is useful
|
|
# when I'm connected to an external monitor / docks.
|
|
|
|
monitor="eDP-1"
|
|
|
|
if hyprctl monitors | grep -q "$monitor"; then
|
|
hyprctl keyword monitor "$monitor,disable" 1>/dev/null
|
|
else
|
|
hyprctl keyword monitor "$monitor,enable" 1>/dev/null
|
|
fi
|