Skip to content

Instantly share code, notes, and snippets.

View pavelzw's full-sized avatar
🤪

Pavel Zwerschke pavelzw

🤪
View GitHub Profile
@pavelzw
pavelzw / display.sh
Last active September 23, 2021 11:34 — forked from amanusk/display.sh
Easily change between laptop and external displays in i3 + dmenu
#!/bin/bash
# This script is intended to make switching between laptop and external displays easier when using i3+dmenu.
# To run this script, map it to some shortcut in your i3 config, e.g.:
# bindsym $mod+p exec --no-startup-id $config/display.sh
# IMPORTANT: run chmod +x on the script to make it executable
# The result is 4 options appearing in dmenu from which you can choose
# This is your default laptop screen, detect by running `xrandr`
INTERNAL_OUTPUT="eDP-1"