aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.xinitrc11
-rw-r--r--.zsh_aliases1
-rwxr-xr-xbin/bitwarden-dmenu2
-rwxr-xr-xbin/cacharle-sync2
-rwxr-xr-xinstall10
5 files changed, 23 insertions, 3 deletions
diff --git a/.xinitrc b/.xinitrc
index 1d19d31..4ab53ef 100755
--- a/.xinitrc
+++ b/.xinitrc
@@ -7,4 +7,15 @@ redshift -c $HOME/.config/redshift.conf &
echo 'Starting dunst'
dunst &
xset r rate 200 50
+
+[ "$(cat /etc/hostname)" = 'cacharle-main' ] &&
+ xrandr --output DVI-0 --mode 1280x1024 --left-of DVI-1 \
+ --output DVI-1 --mode 1920x1080 --primary --left-of HDMI-0 \
+ --output HDMI-0 --mode 1920x1080
+
+[ "$(cat /etc/hostname)" = 'charles-laptop' ] &&
+ xrandr | grep 'VGA1.*connected' &&
+ xrandr --output LVDS1 --primary --left-of VGA1 \
+ --output VGA1 --mode 1280x1024
+
exec xmonad
diff --git a/.zsh_aliases b/.zsh_aliases
index 39a0b67..790692e 100644
--- a/.zsh_aliases
+++ b/.zsh_aliases
@@ -86,7 +86,6 @@ alias lpassp='lpass show --password --clip' # put password in clipboard
# helper to switch between dual and single monitor setup
alias dual='xrandr --output LVDS1 --primary --left-of VGA1 --output VGA1 --mode 1280x1024'
-alias triple='xrandr --output DVI-0 --mode 1024x768 --left-of DVI-1 --output DVI-1 --mode 1920x1080 --primary --left-of HDMI-0 --output HDMI-0 --mode 1920x1080'
alias single='xrandr --output VGA1 --off'
diff --git a/bin/bitwarden-dmenu b/bin/bitwarden-dmenu
index 0c08717..68afe04 100755
--- a/bin/bitwarden-dmenu
+++ b/bin/bitwarden-dmenu
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
domain="$(echo | dmenu -p 'Enter domain name: ')"
diff --git a/bin/cacharle-sync b/bin/cacharle-sync
index 2f1e33b..80f19bb 100755
--- a/bin/cacharle-sync
+++ b/bin/cacharle-sync
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
usage() {
echo "Usage: $0 push/pull [rsync args...]"
diff --git a/install b/install
index 9847421..8d639da 100755
--- a/install
+++ b/install
@@ -62,6 +62,16 @@ create_dotfile_link zathura/zathurarc .config/zathura/zathurarc
ln -svT "$DOTDIR/bin" "$HOME/bin"
###############################################################################
+# cacharle-sync install
+###############################################################################
+
+CACHARLE_SYNC_PATH="$HOME/cacharle-sync"
+if [ -d "$CACHARLE_SYNC_PATH" ]
+then
+ ln -svf "$CACHARLE_SYNC_PATH/newsboat-urls" "$HOME/.newsboat/urls"
+fi
+
+###############################################################################
# dependencies
###############################################################################