summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2019-05-26 22:41:06 +0200
committerMiguel <m.i@gmx.at>2019-05-26 22:41:06 +0200
commit533d9d859d8c47832233b5241eb21c79a00502e4 (patch)
treedcea5b948ea2dd624dd2c15778cbc8b47b4e2581
parent15a411ba2b8723b279f4f66a36ee6255d4e298e5 (diff)
added some x stuff
-rwxr-xr-xxmonad/single-startup.sh12
-rw-r--r--xmonad/xmonad-cheatsheet60
-rw-r--r--xsession/.xsession35
3 files changed, 107 insertions, 0 deletions
diff --git a/xmonad/single-startup.sh b/xmonad/single-startup.sh
new file mode 100755
index 0000000..19053ca
--- /dev/null
+++ b/xmonad/single-startup.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+if pgrep -x $1
+then
+ echo "process $1 already running! bailing out..."
+else
+ #. /home/miguel/.bashrc
+ export NNTPSERVER="nntp.aioe.org" # we need this for slrn (can not source from .bashrc?)
+ #echo server = $NNTPSERVER
+ echo "start process $1 ..."
+ eval $1
+fi
+
diff --git a/xmonad/xmonad-cheatsheet b/xmonad/xmonad-cheatsheet
new file mode 100644
index 0000000..99b8923
--- /dev/null
+++ b/xmonad/xmonad-cheatsheet
@@ -0,0 +1,60 @@
+mod-shift-return
+ Launch terminal
+mod-p
+ Launch dmenu
+mod-shift-p
+ Launch gmrun
+mod-shift-c
+ Close the focused window
+mod-space
+ Rotate through the available layout algorithms
+mod-shift-space
+ Reset the layouts on the current workspace to default
+mod-n
+ Resize viewed windows to the correct size
+mod-tab
+ Move focus to the next window
+mod-shift-tab
+ Move focus to the previous window
+mod-j
+ Move focus to the next window
+mod-k
+ Move focus to the previous window
+mod-m
+ Move focus to the master window
+mod-return
+ Swap the focused window and the master window
+mod-shift-j
+ Swap the focused window with the next window
+mod-shift-k
+ Swap the focused window with the previous window
+mod-h
+ Shrink the master area
+mod-l (reassigned to mod-;)
+ Expand the master area
+mod-t
+ Push window back into tiling
+mod-comma
+ Increment the number of windows in the master area
+mod-period
+ Deincrement the number of windows in the master area
+mod-shift-q
+ Quit xmonad
+mod-q
+ Restart xmonad
+mod-shift-slash
+ Run xmessage with a summary of the default keybindings (useful for beginners)
+mod-[1..9]
+ Switch to workspace N
+mod-shift-[1..9]
+ Move client to workspace N
+mod-{w,e,r}
+ Switch to physical/Xinerama screens 1, 2, or 3
+mod-shift-{w,e,r}
+ Move client to screen 1, 2, or 3
+mod-button1
+ Set the window to floating mode and move by dragging
+mod-button2
+ Raise the window to the top of the stack
+mod-button3
+ Set the window to floating mode and resize by dragging
diff --git a/xsession/.xsession b/xsession/.xsession
new file mode 100644
index 0000000..83d0891
--- /dev/null
+++ b/xsession/.xsession
@@ -0,0 +1,35 @@
+# vim: set ft=sh:
+
+userresources=$HOME/.Xresources
+
+if [ -f "$userresources" ]; then
+ xrdb -load "$userresources"
+fi
+
+xrandr --setprovideroutputsource modesetting NVIDIA-0
+xrandr --auto
+xrandr --output DP-5 --scale 2x2 --pos 0x0 # SHARP TV (3840x2160)
+xrandr --output VGA-1-1 --scale 1.8x1.8 --pos 3840x0 # Samsung SyncMaster (2304x1843)
+xrandr --output DP-2 --primary --pos 6144x0 # ASUS 4K (3840x2160)
+xrandr --output HDMI-0 --scale 1.7x1.7 --pos 9984x0 # LG (3264x2040)
+
+xsetroot -solid DarkSlateGray
+#xsetroot -solid NavyBlue
+trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 5 --transparent true --alpha 0 --tint 0x002b36 --height 30 --monitor 2 &
+
+stack exec xmonad
+
+## pulseaudio &
+
+#export PATH=/home/miguel/bin:$PATH
+
+#xmonad
+#/home/miguel/cabal_sandbox1/.cabal-sandbox/bin/cabal --sandbox-config-file=/home/miguel/cabal_sandbox1/cabal.sandbox.config exec -- xmonad
+
+#feh --bg-tile temp/bigblue.jpg --no-fehbg
+
+#xsetroot -cursor_name top_left_arrow # does not work!?
+
+## final line: start xmonad
+#CABAL_SANDBOX_CONFIG=/home/miguel/sbx/hask/xmonad/cabal.sandbox.config cabal exec xmonad
+#cd /home/miguel/git/xmonad-contrib/ && /home/miguel/opt/stack-1.7.1-linux-x86_64/stack exec -- xmonad