diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-23 17:25:14 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-23 17:25:14 +0100 |
| commit | 8728e9e370100b56afed1e618e4c61c403e1228d (patch) | |
| tree | 2bbc8bce3249d9008fd5b5bde0d17078e72a9e30 | |
| parent | 4354fcc22f8e14e5db3c36c43f0e08df50d1d730 (diff) | |
| download | dotfiles-8728e9e370100b56afed1e618e4c61c403e1228d.tar.gz dotfiles-8728e9e370100b56afed1e618e4c61c403e1228d.tar.bz2 dotfiles-8728e9e370100b56afed1e618e4c61c403e1228d.zip | |
Added setup screen configuration according to hostname, Added install newsboat urls from cacharle-sync in install script
| -rwxr-xr-x | .xinitrc | 11 | ||||
| -rw-r--r-- | .zsh_aliases | 1 | ||||
| -rwxr-xr-x | bin/bitwarden-dmenu | 2 | ||||
| -rwxr-xr-x | bin/cacharle-sync | 2 | ||||
| -rwxr-xr-x | install | 10 |
5 files changed, 23 insertions, 3 deletions
@@ -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...]" @@ -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 ############################################################################### |
