changeset 479:cf2b9ea9e48a

Updated configs
author unexist
date Mon, 26 Nov 2018 10:36:40 +0100
parents 3bc70f4a9b24
children cb9a0a14119b
files .xinitrc .zshalias
diffstat 2 files changed, 24 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/.xinitrc	Thu Jun 21 09:53:07 2018 +0200
+++ b/.xinitrc	Mon Nov 26 10:36:40 2018 +0100
@@ -36,15 +36,14 @@
 #fi
 
 # xrandr
-#if [ -e /usr/bin/xrandr ] ; then
-#  if [ "xsubtle" = "x$1" ] ; then
-#    xrandr --output DVI-0 --primary --mode 1680x1050 --pos 1680x0 --output HDMI-0 --mode 1680x1050 --pos 0x0 --left-of DVI-0 --dpi 96
-#    #xrandr --output DFP1 --primary --mode 1680x1050 --pos 1680x0 --output DFP2 --mode 1680x1050 --pos 0x0 --right-of DFP1 --dpi 96
-#  elif [ "xxbmc" = "x$1" ] ; then
-#    xrandr --output DVI-0 --off --output HDMI-0 --mode 1920x1080
-#    #xrandr --output DFP1 --off --output DFP2 --mode 1920x1080
-#  fi
-#fi
+if [ -e /usr/bin/xrandr ] ; then
+  if [ "xsubtle" = "x$1" ] ; then
+    xrandr \
+      --output eDP-1 --primary --mode 1366x768 --pos 0x0 \
+      --output DP-2-2 --mode 1920x1200 --pos 768x0 --right-of eDP-1 \
+      --output DP-2-3 --mode 1920x1080 --pos 2688x0 --right-of DP-2-2 --rotate left --dpi 96
+  fi
+fi
 
 # Wallpaper
 #if [ -e /usr/bin/feh ] ; then
@@ -88,5 +87,6 @@
 if [ -e /usr/bin/autocutsel ] ; then
   /usr/bin/autocutsel -fork &
   /usr/bin/autocutsel -selection PRIMARY -fork &
+fi
 
 wait $pid
--- a/.zshalias	Thu Jun 21 09:53:07 2018 +0200
+++ b/.zshalias	Mon Nov 26 10:36:40 2018 +0100
@@ -140,9 +140,19 @@
 # PA
 alias louder="pactl -- set-sink-volume 0 "
 
-# PowerFolder
-alias pfkill="ps aux | grep -i powerfolder | grep java | awk '{print $2}' | xargs kill -9"
+# Twttr
+if [ -e "/usr/bin/psql" ] ; then
+  alias tsql="psql -U twitter twittr -h localhost"
+fi  
 
-if [ -e "/usr/bin/psql" ] ; then
-  alias pfsql="psql -U powerfolder powerfolder -h localhost"
-fi  
+# xrandr
+if [ -e "/usr/bin/xrandr" ] ; then
+  alias xrandr3="xrandr \
+    --output eDP-1 --primary --mode 1366x768 --pos 0x0 \
+    --output DP-2-2 --mode 1920x1200 --pos 768x0 --right-of eDP-1 \
+    --output DP-2-3 --mode 1920x1080 --pos 2688x0 --right-of DP-2-2 --rotate left --dpi 96"
+
+  alias xrandr2="xrandr \
+    --output eDP-1 --primary --mode 1366x768 --pos 0x0 \
+    --output DP-2-2 --mode 1920x1080 --pos 768x0 --right-of eDP-1 --dpi 96"
+fi