From faf9013a7e3d642048a0865c0e3f448ca8899acd Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sun, 7 Dec 2014 13:52:33 -0500 Subject: [PATCH] Added synapse gtkrc, reptyr.sh. Fixed xinerama.sh --- i3/config | 19 ++++++------------ i3/gtkrc | 47 +++++++++++++++++++++++++++++++++++++++++++++ scripts/desktop.txt | 3 +++ scripts/reptyr.sh | 3 +++ scripts/server.txt | 1 + scripts/sync.sh | 9 ++++++--- shells/zshrc | 5 ++++- xinerama.sh | 28 ++++++++++++++++++++++----- 8 files changed, 93 insertions(+), 22 deletions(-) create mode 100644 i3/gtkrc create mode 100755 scripts/reptyr.sh diff --git a/i3/config b/i3/config index 410fe4c..a0f64e0 100644 --- a/i3/config +++ b/i3/config @@ -4,10 +4,6 @@ bindsym $mod+d exec i3-input -F 'rename workspace to "%s"' -P 'Rename to: ' #exec xmodmap ~/.Xmodmap & bindsym Print exec "shutter -r" -#Audio -bindsym XF86AudioRaiseVolume exec "amixer set Master 5%+ unmute" -bindsym XF86AudioLowerVolume exec "amixer set Master 5%- unmute" -bindsym XF86AudioMute exec "amixer -D pulse set Master 1+ toggle" #bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute #bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute #bindsym XF86AudioMute exec amixer -q set Master toggle @@ -38,7 +34,7 @@ bar { status_command i3status --config ~/.i3/i3status.conf mode hide modifier Mod4 - #tray_output primary + tray_output primary colors { background $bg statusline $fg @@ -74,18 +70,15 @@ mode "resize" { bindsym Return mode "default" bindsym Escape mode "default" } -font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 floating_modifier $mod bindsym $mod+Return exec xterm bindsym $mod+Shift+c kill bindsym $mod+c move absolute position center -# dmenu_run -nb '#000000' -nf '#ffffff' -sb '#474747' -sf '#ffffff' -# dmenu_run -nb '#2c2c2c' -nf '#dcdccc' -sb '#3f3f3f' -sf '#9ab8d7' -#bindsym $mod+p exec dmenu_run -nb '#2c2c2c' -nf '#dcdccc' -sb '#3f3f3f' -sf '#9ab8d7' -# There also is the (new) i3-dmenu-desktop which only displays applications -# shipping a .desktop file. It is a wrapper around dmenu, so you need that -# installed. -# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop +bindsym XF86TouchpadToggle exec "synclient TouchpadOff=$(synclient -l | grep -c 'TouchpadOff.*=.*0')" +bindsym XF86AudioRaiseVolume exec "amixer set Master 5%+ unmute" +bindsym XF86AudioLowerVolume exec "amixer set Master 5%- unmute" +bindsym XF86AudioMute exec "amixer -D pulse set Master 1+ toggle" bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up diff --git a/i3/gtkrc b/i3/gtkrc new file mode 100644 index 0000000..fa17352 --- /dev/null +++ b/i3/gtkrc @@ -0,0 +1,47 @@ +gtk_color_scheme = "bg_selected:#11ffeb\nbg_normal:#202020\nfg_normal:#f5f5f5\nfg_selected:#ffffff\n" + +style "synapse" +{ + bg[NORMAL] = @bg_normal + bg[SELECTED] = @bg_normal + fg[NORMAL] = @fg_normal + fg[SELECTED] = @fg_normal + + base[NORMAL] = lighter (lighter (@bg_normal)) + text[NORMAL] = @fg_normal + + engine "murrine" + { + contrast = 0.6 + arrowstyle = 2 + reliefstyle = 3 + highlight_shade = 1.0 + glazestyle = 0 + gradient_shades = {1.2, 1.0, 1.0, 0.8} + roundness = 4 + lightborder_shade = 1.26 + lightborderstyle = 1 + separatorstyle = 1 + } + + SynapseGuiView :: border-radius = 14 + SynapseGuiView :: shadow-size = 10 + + SynapseGuiViewEssential :: ui-width = 500 + SynapseGuiViewEssential :: icon-size = 96 + SynapseGuiViewEssential :: title-size = "large" + SynapseGuiViewEssential :: title-min-size = "medium" + SynapseGuiViewEssential :: description-size = "small" + SynapseGuiViewEssential :: description-min-size = "small" + + SynapseGuiViewDoish :: pane-spacing = 30 + SynapseGuiViewDoish :: icon-size = 140 + SynapseGuiViewDoish :: title-size = "large" + SynapseGuiViewDoish :: title-min-size = "small" + SynapseGuiViewDoish :: description-size = "medium" + SynapseGuiViewDoish :: description-min-size = "medium" +} + +widget_class "*SynapseWindow*" style "synapse" +widget_class "*SynapseGuiView*" style "synapse" + diff --git a/scripts/desktop.txt b/scripts/desktop.txt index 77ed0b4..16a5bc1 100644 --- a/scripts/desktop.txt +++ b/scripts/desktop.txt @@ -51,3 +51,6 @@ network-manager midori k3b icedtea-7-plugin +systemsettings +gtk-theme-switch +qtcurve diff --git a/scripts/reptyr.sh b/scripts/reptyr.sh new file mode 100755 index 0000000..9c95ed0 --- /dev/null +++ b/scripts/reptyr.sh @@ -0,0 +1,3 @@ +#!/bin/zsh +sudo sh -c "echo \"kernel.yama.ptrace_scope = 0\" > /etc/sysctl.d/10-ptrace.conf" +sudo sysctl -p /etc/sysctl.d/10-ptrace.conf diff --git a/scripts/server.txt b/scripts/server.txt index c2065f0..6881428 100644 --- a/scripts/server.txt +++ b/scripts/server.txt @@ -72,3 +72,4 @@ fsniper cryptsetup pv mplayer +minimodem diff --git a/scripts/sync.sh b/scripts/sync.sh index 91fdecc..f35df6d 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -47,9 +47,9 @@ while getopts ":hbsdpcw" VALUE "$@"; do if [ "$VALUE" = "c" ] ; then echo "Syncing config files" if which trash >/dev/null; then - trash ~/.gitconfig ~/.vimperatorrc ~/.vimperator/colors/vimPgray.vimp ~/.bashrc ~/.pylintrc ~/.zshrc ~/.tmux.conf + trash ~/.gitconfig ~/.vimperatorrc ~/.vimperator/colors/vimPgray.vimp ~/.bashrc ~/.pylintrc ~/.zshrc ~/.tmux.conf ~/.config/synapse/gtkrc else - rm ~/.gitconfig ~/.vimperatorrc ~/.vimperator/colors/vimPgray.vimp ~/.bashrc ~/.pylintrc ~/.zshrc ~/.tmux.conf + rm ~/.gitconfig ~/.vimperatorrc ~/.vimperator/colors/vimPgray.vimp ~/.bashrc ~/.pylintrc ~/.zshrc ~/.tmux.conf ~/.config/synapse/gtkrc fi # Install on all systems ln -s $ABSPATH/tmux/tmux.conf ~/.tmux.conf @@ -69,6 +69,7 @@ while getopts ":hbsdpcw" VALUE "$@"; do fi # Install antigen bundles zsh -c "source ~/.zshrc;exit" + mkdir -p ~/.config ln -s $ABSPATH/shells/liquidpromptrc /home/stonewareslord/.config/liquidpromptrc if [ "$(uname)" != "Darwin" ]; then if which trash >/dev/null; then @@ -76,7 +77,7 @@ while getopts ":hbsdpcw" VALUE "$@"; do else rm ~/.i3/config ~/.i3/sleep.sh ~/.i3/wall.sh ~/.Xmodmap ~/.xsession ~/.Xresources fi - # Don't install on Mac + # Don't install these on Mac ln -s $ABSPATH/shells/Xresources ~/.Xresources xrdb -merge ~/.Xresources ln -s $ABSPATH/i3/config ~/.i3/config @@ -84,6 +85,8 @@ while getopts ":hbsdpcw" VALUE "$@"; do ln -s $ABSPATH/i3/sleep.sh ~/.i3/sleep.sh ln -s $ABSPATH/i3/Xmodmap ~/.Xmodmap ln -s $ABSPATH/i3/xsession ~/.xsession + mkdir -p ~/.config/synapse + ln -s $ABSPATH/i3/gtkrc ~/.config/synapse/gtkrc mkdir -p ~/.i3 fi fi diff --git a/shells/zshrc b/shells/zshrc index 299b467..de83699 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -36,6 +36,7 @@ export EDITOR='vim' if [ "$(uname)" != "Darwin" ]; then alias ls='ls --color=always -F' fi +alias matlab='matlab -glnx86' alias srm='srm -dv' alias pass='DISPLAY= pass' alias ehistory='cat ~/.bash_eternal_history|egrep -iP $@' @@ -110,10 +111,12 @@ function smon(){ function dnstest(){ echo "resolv.conf:" cat /etc/resolv.conf + echo "Testing DNS:" + dig google.com echo "Testing ping:" ping -c 2 8.8.8.8 echo "Testing IP curl:" - curl -k https://98.26.78.121/b/ + curl -k http://98.26.78.121/b/ echo echo "Testing DNS" curl ifconfig.me diff --git a/xinerama.sh b/xinerama.sh index 3c66447..89be3a9 100644 --- a/xinerama.sh +++ b/xinerama.sh @@ -1,3 +1,23 @@ +#3 good monitors +timeout 1s pdsh -R ssh -w 10.0.1.196,10.0.1.207,10.0.1.33 "killall x11vnc" +killall x11vnc +xrandr --output VIRTUAL1 --off --output VIRTUAL2 --off --output VIRTUAL3 --off +xrandr --newmode "1280x800_60.00" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync +xrandr --newmode "904x1600_60.00" 121.50 904 968 1064 1224 1600 1603 1613 1658 -hsync +vsync +xrandr --addmode VIRTUAL1 1280x800_60.00 +xrandr --addmode VIRTUAL2 1280x800_60.00 +xrandr --addmode VIRTUAL3 904x1600_60.00 +xrandr --output VIRTUAL2 --mode 1280x800_60.00 --above HDMI1 +xrandr --output VIRTUAL3 --mode 904x1600_60.00 +xrandr --output VIRTUAL1 --mode 1280x800_60.00 --above HDMI3 +x11vnc -clip 1280x800+640+0 -xrandr -forever -viewonly -allow 10.0.1.207 > /dev/null 2>&1 & +x11vnc -clip 1280x800+1920+0 -xrandr -forever -viewonly -allow 10.0.1.196 > /dev/null 2>&1 & +timeout 1s pdsh -R ssh -w 10.0.1.196,10.0.1.207 ./s +x11vnc -clip 900x1600+3840+280 -xrandr -forever -viewonly > /dev/null 2>&1 & +timeout 1s ssh 10.0.1.33 "export DISPLAY=:0.0&&xtightvncviewer 10.0.1.201:2 -fullscreen > /dev/null 2>&1 &" +xrandr --output VIRTUAL3 --pos 3840x280 +xrandr --output VIRTUAL1 --pos 640x0 + #3 monitors x11vnc -clip 1280x800+640+0 -xrandr -forever x11vnc -clip 1280x800+1920+0 -xrandr -forever @@ -28,8 +48,8 @@ xrandr --output VIRTUAL3 --off #2 monitors -x11vnc -clip 1280x800+640+0 -xrandr -forever nifyd -x11vnc -clip 1280x800+1920+0 -xrandr -forever nifyd +x11vnc -clip 1280x800+640+0 -xrandr -forever -viewonly -allow 10.0.1.207 nifyd +x11vnc -clip 1280x800+1920+0 -xrandr -forever -viewonly -allow 10.0.1.196 nifyd smon ./s @@ -46,6 +66,4 @@ export DISPLAY=:0.0&&xtightvncviewer 10.0.1.201:0 -fullscreen while true; do xset dpms force on;sleep 601;done xset dpms 0 0 0 -xrandr --output VIRTUAL1 --off -xrandr --output VIRTUAL2 --off -xrandr --output VIRTUAL3 --off +xrandr --output VIRTUAL1 --off;xrandr --output VIRTUAL2 --off;xrandr --output VIRTUAL3 --off