diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index 4c9da36..fa42fe8 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # this is a simple config for herbstluftwm @@ -18,13 +18,13 @@ Mod=Mod4 # Use the super key as the main modifier ######### MACHINE SPECIFIC SETUP ######### ### Atlantis PC-specific setup ### -if [[ $HOST == "atlantispc" ]]; then +if [ $HOST=="atlantispc" ]; then hc detect_monitors /usr/bin/xrandr --output DVI-I-2 --right-of DVI-I-1 xautolock -time 15 -locker /home/ik15ydit/.config/i3lock/piclock.sh & fi ### Atlantislaptop specific setup ### -if [[ $HOST == "atlantislaptop" ]]; then +if [ $HOST=="atlantislaptop" ]; then hc keybind XF86MonBrightnessUp spawn /bin/bash -c 'tee /sys/class/backlight/intel_backlight/brightness <<< "$(expr $(cat /sys/class/backlight/intel_backlight/brightness) + 5)"' hc keybind XF86MonBrightnessDown spawn /bin/bash -c 'tee /sys/class/backlight/intel_backlight/brightness <<< "$(expr $(cat /sys/class/backlight/intel_backlight/brightness) - 5)"' fi @@ -33,7 +33,7 @@ fi # keybindings #client handling hc keybind $Mod-Shift-q quit -if [[ $HOST =~ atlantis* ]]; then +if [ $HOST=~atlantis* ]; then hc keybind $Mod-Shift-p spawn /sbin/poweroff fi hc keybind $Mod-Shift-r reload @@ -44,7 +44,7 @@ hc keybind $Mod-q close hc keybind $Mod-Return spawn urxvt hc keybind $Mod-Shift-Return spawn xterm /bin/bash hc keybind $Mod-i spawn chromium -if [[ $HOST =~ atlantis* ]]; then +if [ $HOST=~atlantis* ]; then hc keybind $Mod-l spawn i3lock -i ~/.config/i3lock/bg.png -t else hc keybind $Mod-l spawn xlock diff --git a/zshrc b/zshrc index 53a80f3..1e13d10 100644 --- a/zshrc +++ b/zshrc @@ -12,13 +12,15 @@ export LD_PRELOAD COLORED_STDERR_FDS ### PROMT ### MAIN_PROMT_COLOR="green" +USER_COLOR="yellow" if [[ $USER == "root" ]]; then + USER_COLOR="red" MAIN_PROMT_COLOR="red" fi setopt promptsubst -CMD_START=$'%F{MAIN_PROMT_COLOR}--->%f ' -PS1=$'%F{yellow}%m%f%F{red}:%f%F{cyan}%~%f\n'$CMD_START #promt -PS1=%F{green}$'${(r:$COLUMNS::\u2500:)}'%f$PS1 +CMD_START=$'%F{$MAIN_PROMT_COLOR}--->%f ' +PS1=$'%F{$USER_COLOR}%m%f%F{red}:%f%F{cyan}%~%f\n'$CMD_START #promt +PS1=%F{$MAIN_PROMT_COLOR}$'${(r:$COLUMNS::\u2500:)}'%f$PS1 ### STYLE ### zstyle ':completion:*:default' list-prompt '%p'