From 8681e8a0dad16363a5930d720304050b172d6bd2 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 15 Apr 2020 00:54:18 -0700 Subject: Add machine-specific configs for MPD --- herbstluftwm/.config/herbstluftwm/autostart | 15 ++++++--------- herbstluftwm/.config/herbstluftwm/machines/data.sh | 6 ++++++ herbstluftwm/.config/herbstluftwm/machines/rincewind.sh | 10 ++++++++++ 3 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 herbstluftwm/.config/herbstluftwm/machines/data.sh create mode 100755 herbstluftwm/.config/herbstluftwm/machines/rincewind.sh (limited to 'herbstluftwm') diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart index 67d6df6..8304936 100755 --- a/herbstluftwm/.config/herbstluftwm/autostart +++ b/herbstluftwm/.config/herbstluftwm/autostart @@ -1,5 +1,7 @@ #!/usr/bin/env zsh +machine=$(hostname) + ## Helper functions: # This simple function saves a lot of keystrokes when editing this @@ -224,26 +226,21 @@ hc unlock herbstclient set tree_style '╾│ ├└╼─┐' -## Monitors -# I have two monitors, each with a resolution of 1920x1080. -hc set_monitors 1920x1080+0+0 - # Pad the first monitor to make room for mowedline and trayer. hc pad 0 0 0 16 16 # Load layouts for the dev and web tags. -hc load dev '(split horizontal:0.580:1 (clients max:0) (clients vertical:0))' hc load web '(clients max:0)' # Make sure the "Emacs" frame is selected. hc focus_edge left -# Lock each tag to its specific monitor. -lock-tag-to-monitor dev 0 -lock-tag-to-monitor web 1 - ## Other configurations +# Load a machine-specific configuration if it exists. +[ -x "${HOME}/.config/herbstluftwm/machines/${machine}.sh" ] \ + && source "${HOME}/.config/herbstluftwm/machines/${machine}.sh" + # Load any other configuration files in # $HOME/.config/herbstluftwm/autostart.d so other programs can # configure parts of herbstluftwm to their needs (such as keybindings diff --git a/herbstluftwm/.config/herbstluftwm/machines/data.sh b/herbstluftwm/.config/herbstluftwm/machines/data.sh new file mode 100644 index 0000000..7e98a24 --- /dev/null +++ b/herbstluftwm/.config/herbstluftwm/machines/data.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env zsh + +## Monitors +hc set_monitors 1920x1080+0+0 + +hc load dev '(split horizontal:0.580:1 (clients max:0) (clients vertical:0))' diff --git a/herbstluftwm/.config/herbstluftwm/machines/rincewind.sh b/herbstluftwm/.config/herbstluftwm/machines/rincewind.sh new file mode 100755 index 0000000..27b262a --- /dev/null +++ b/herbstluftwm/.config/herbstluftwm/machines/rincewind.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env zsh + +## Monitors +hc set_monitors 1920x1080+0+0 1200x1920+1920+0 + +hc load dev '(split horizontal:0.535:1 (clients max:0) (clients vertical:0))' + +# Lock each tag to its specific monitor. +lock-tag-to-monitor dev 0 +lock-tag-to-monitor web 0 -- cgit v1.2.3-54-g00ecf