plugfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit d1b9030f36062003c6bc2b539045c4b323738a7b
parent 0e698981f2df8e59bd25548b5ac4ad5c7ab84dab
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Mon, 13 Apr 2020 19:47:54 +1000

Fix compton shadows, new gs git status alias, fix dualOBS script to work with vertical screen arrangement

Diffstat:
M.bash_profile | 3+++
M.config/.aliasrc | 1+
M.config/compton.conf | 3++-
M.config/i3/config | 6+++++-
Mbin/dualOBS | 39++++++++++++++++++++++++++++++++++++---
Minstall.sh | 2+-
6 files changed, 48 insertions(+), 6 deletions(-)

diff --git a/.bash_profile b/.bash_profile @@ -21,6 +21,9 @@ SHD=/media/sea/ export LD_LIBRARY_PATH=~/repos/MultiNest/lib/:$LD_LIBRARY_PATH export PATH=~/.local/bin:$PATH +# CUDA +export PATH=/opt/cuda/bin:$PATH + # Ruby excecutables export PATH="$PATH:/home/nick/.gem/ruby/2.6.0/bin" diff --git a/.config/.aliasrc b/.config/.aliasrc @@ -34,5 +34,6 @@ alias mountin='sudo mount /dev/sda1 /media/sea; sudo mount /dev/sdb2 /media/SSD' alias pipu='python3 -m pip install --user' +alias gs='git status' # test Alias diff --git a/.config/compton.conf b/.config/compton.conf @@ -21,7 +21,8 @@ fade-exclude = [ ## opacity active-opacity = 1.0; #frame-opacity = 0.7; -inactive-opacity = 0.80 +#inactive-opacity = 0.80 +inactive-opacity = 0.90 focus-exclude = [ "class_g = 'chromium'", "class_g = 'Brave-browser'"] #opacity-rule = [ "80:class_g = 'code-oss'" ]; diff --git a/.config/i3/config b/.config/i3/config @@ -34,7 +34,8 @@ exec --no-startup-id setxkbmap -layout us # Compositor #exec_always --no-startup-id compton --backend glx --blur-method kawase --blur-strength 4 --config ~/.config/.compton.conf -exec_always --no-startup-id compton --blur-background --blur-method kawase --blur-strength 8 --opacity-rule 30:'class_g="st"' --backend glx +#exec_always --no-startup-id compton --blur-background --blur-method kawase --blur-strength 8 --opacity-rule 30:'class_g="st"' --backend glx +exec_always --no-startup-id compton --backend glx # Flameshot screenshotting tool startup exec_always --no-startup-id flameshot @@ -76,6 +77,9 @@ bindsym Print exec flameshot gui # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod +# Move workspace to other monitor +bindsym $mod+p move workspace to output right + # start a terminal bindsym $mod+Return exec st #bindsym $mod+Return exec i3-sensible-terminal diff --git a/bin/dualOBS b/bin/dualOBS @@ -1,6 +1,8 @@ #!/bin/bash # Nick Farrow 2019 +VERTICAL=false + # Whenever out mouse is past XSPLIT in the X-direction, # A hotkey is sent to OBS to change scenes XSPLIT=1920 @@ -11,17 +13,48 @@ RIGHT='F8' PAST=$RIGHT + +while getopts "vp:" opt; do + case ${opt} in + v ) + VERTICAL=true + XSPLIT=1080 + + TMPSTORE=$LEFT + LEFT=$RIGHT + RIGHT=$TMPSTORE + ;; + p ) + XSPLIT=$OPTARG + ;; + \? ) + echo "Invalid option" 1>&2 + exit 1 + ;; + : ) + echo "Invalid option, $OPTARG requires an argument" 1>&2 + exit 1 + ;; + esac +done + +printf "\n\n\n Starting OBS:" + obs | while : do - XCOORD=$(xdotool getmouselocation | cut -d : -f 2 | cut -d ' ' -f 1) + if [ "$VERTICAL" = false ] ; then + XCOORD=$(xdotool getmouselocation | cut -d : -f 2 | cut -d ' ' -f 1) + else + XCOORD=$(xdotool getmouselocation | cut -d : -f 3 | cut -d ' ' -f 1) + fi - if [ "$XCOORD" -lt "$XSPLIT" ] && [ "$PAST" == "$RIGHT" ] then + if [ "$XCOORD" -lt "$XSPLIT" ] && [ "$PAST" == "$RIGHT" ]; then WINDOWID=$(xdotool search --name OBS | tail -1) xdotool key --window $WINDOWID $LEFT PAST=$LEFT echo "CHANGE LEFT" - elif [ "$XCOORD" -gt "$XSPLIT" ] && [ "$PAST" == "$LEFT" ] then + elif [ "$XCOORD" -gt "$XSPLIT" ] && [ "$PAST" == "$LEFT" ]; then WINDOWID=$(xdotool search --name OBS | tail -1) xdotool key --window $WINDOWID $RIGHT PAST=$RIGHT diff --git a/install.sh b/install.sh @@ -25,7 +25,7 @@ cp -r $PLUGLOC/bin/* $BINLOC/ [ -f "$CFGLOC/.aliasrc" ] && rm "$CFGLOC/.aliasrc" cp "$PLUGLOC/.config/.aliasrc" "$CFGLOC/.aliasrc" -cp "$PLUGLOC/.config/.compton.conf" "$CFGLOC/.compton.conf" +cp "$PLUGLOC/.config/compton.conf" "$CFGLOC/compton.conf" cp "$PLUGLOC/.config/emoji" "$CFGLOC/emoji" cp "$PLUGLOC/starshell.sh" "$CFGLOC/starshell.sh" cp -r "$PLUGLOC/.config/starshell" "$CFGLOC/starshell"