Skip to content

Instantly share code, notes, and snippets.

@nongiach
Last active December 5, 2019 11:31
Show Gist options
  • Save nongiach/c8dec2d283e6a6a0c63d675d5406078d to your computer and use it in GitHub Desktop.
Save nongiach/c8dec2d283e6a6a0c63d675d5406078d to your computer and use it in GitHub Desktop.
# add this to your ~/.config/i3/config
# Author: @chaignc
bindsym $mod+shift+p exec "i3-nagbar -t warning -m 'HDMI' \
-B 'Disable HDMI' 'xrandr --output HDMI-1 --off' \
-B 'Duplicate' 'xrandr --output HDMI-1 --auto' \
-B 'HDMI at right' 'xrandr --output HDMI-1 --auto --right-of eDP-1' \
-B 'HDMI at left' 'xrandr --output HDMI-1 --auto --left-of eDP-1' \
"
bindsym $mod+p move workspace to output right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment