Skip to content

Instantly share code, notes, and snippets.

View sad1ee's full-sized avatar

Sad1ee sad1ee

  • Joined Apr 4, 2025
View GitHub Profile
@miyl
miyl / hyprland-monitor-toggle.sh
Last active April 19, 2025 23:26
A hyprland script for a laptop-external-monitor setup, toggling between which is in use
#! /usr/bin/env sh
# A hyprland script for a laptop-external-monitor setup, toggling between which is in use
# Launch at startup to make hyprland disable the internal monitor if an external monitor is detected and enabled
# Additionally it's called with a keybind to switch between a laptop monitor and an external display
# Ideally the conditional monitor behaviour was instead done directly in hyprland.conf, but I'm not sure whether that's possible
#
# Relevant info:
# - hyprctl monitors: identifies currently enabled monitors