From 0a998ae95120ef3cf6d2e13b15d1dfc8676004fd Mon Sep 17 00:00:00 2001 From: Andrei Stoica Date: Thu, 15 Dec 2016 15:49:22 -0500 Subject: [PATCH] addad i3 config --- .i3/.config.swp | Bin 0 -> 16384 bytes .i3/.conkyrc | 54 ++++++++ .i3/Coding.json | 89 +++++++++++++ .i3/Coding2.json | 79 +++++++++++ .i3/Gaming.json | 124 ++++++++++++++++++ .i3/Gaming2.json | 240 ++++++++++++++++++++++++++++++++++ .i3/blevel.sh | 5 + .i3/chats.json | 71 ++++++++++ .i3/chats2.json | 92 +++++++++++++ .i3/config | 293 +++++++++++++++++++++++++++++++++++++++++ .i3/config-chrome | 304 +++++++++++++++++++++++++++++++++++++++++++ .i3/config-firefox | 304 +++++++++++++++++++++++++++++++++++++++++++ .i3/conkexec.sh | 4 + .i3/i3barconky | 47 +++++++ .i3/pacvol.sh | 124 ++++++++++++++++++ .i3/statusline | 6 + .i3/suspend.sh | 3 + .i3/test.json | 138 ++++++++++++++++++++ .i3/update_count.sh | 15 +++ .i3/workspace-1.json | 87 +++++++++++++ 20 files changed, 2079 insertions(+) create mode 100644 .i3/.config.swp create mode 100644 .i3/.conkyrc create mode 100755 .i3/Coding.json create mode 100755 .i3/Coding2.json create mode 100755 .i3/Gaming.json create mode 100755 .i3/Gaming2.json create mode 100755 .i3/blevel.sh create mode 100755 .i3/chats.json create mode 100755 .i3/chats2.json create mode 100755 .i3/config create mode 100644 .i3/config-chrome create mode 100644 .i3/config-firefox create mode 100755 .i3/conkexec.sh create mode 100755 .i3/i3barconky create mode 100755 .i3/pacvol.sh create mode 100755 .i3/statusline create mode 100755 .i3/suspend.sh create mode 100755 .i3/test.json create mode 100755 .i3/update_count.sh create mode 100755 .i3/workspace-1.json diff --git a/.i3/.config.swp b/.i3/.config.swp new file mode 100644 index 0000000000000000000000000000000000000000..a87526b41eace86046fbffa0d6a7ee74daeadc57 GIT binary patch literal 16384 zcmeI3TZ|-C8OMvOtXwoeqA%!SdV{m<_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but rather just uses the first sink it finds in list-sinks +# Need to fix this for systems with multiple sinks +# + +SINK=0 +STEP=1 +MAXVOL=65537 # let's just assume this is the same all over +MUTED=0 +#MAXVOL=`pacmd list-sinks | grep "volume steps" | cut -d: -f2 | tr -d "[:space:]"` + +MUTED=`pacmd list-sinks 0 | grep muted | head -2 | tail -1 | cut -d ' ' -f 2` +#VOLPERC=`pactl list sinks | awk '/Volume: 0:/ {print substr($3, 1, index($3, "%") - 1)}' | head -n1` +VOLPERC=`pactl list sinks | awk '/Volume: front-left:/ {print substr($5, 1, index($5, "%")-1)}' | tail -2 | head -1` +SKIPOVERCHECK=1 + +display(){ + if [ "$MUTED" = "yes" ]; then + echo "muted" + elif [ "$VOLPERC" -lt 33 ]; then + echo "${VOLPERC}%" + elif [ "$VOLPERC" -lt 66 ]; then + echo "${VOLPERC}%" + else + echo "${VOLPERC}%" + fi +} + +up(){ + VOLSTEP="$(( $VOLPERC+$STEP ))"; +} + +down(){ + VOLSTEP="$(( $VOLPERC-$STEP ))"; + SKIPOVERCHECK=1 +} + +max(){ + pacmd set-sink-volume $SINK $MAXVOL > /dev/null +} + +min(){ + pacmd set-sink-volume $SINK 0 > /dev/null +} + +overmax(){ + SKIPOVERCHECK=1 + if [ $VOLPERC -lt 100 ]; then + max; + exit 0; + fi + up +} + +mute(){ + pacmd set-sink-mute $SINK 1 > /dev/null +} + +unmute(){ + pacmd set-sink-mute $SINK 0 > /dev/null +} + +toggle(){ + M=`pacmd list-sinks | grep "muted" | cut -d: -f2 | tr -d "[:space:]"` + if [ $M == "no" ]; then + mute; + else + unmute; + fi +} + +case $1 in +up) + up;; +down) + down;; +max) + max + exit 0;; +min) + min + exit 0;; +overmax) + overmax;; +toggle) + toggle + exit 0;; +mute) + mute; + exit 0;; +unmute) + unmute; + exit 0;; +display) + display; + exit 0;; +*) + echo "Usage: `basename $0` [up|down|min|max|overmax|toggle|mute|unmute|display]" + exit 1;; +esac + +VOLUME="$(( ($MAXVOL/100) * $VOLSTEP ))" + +echo "$VOLUME : $OVERMAX" + + if [ -z $SKIPOVERCHECK ]; then + if [ $VOLUME -gt $MAXVOL ]; then + VOLUME=$MAXVOL + elif [ $VOLUME -lt 0 ]; then + VOLUME=0 + fi + fi + +#echo "$VOLUME: $MAXVOL/100 * $VOLPERC+$VOLSTEP" +pacmd set-sink-volume $SINK $VOLUME > /dev/null +# VOLPERC=`pacmd list-sinks | grep "volume" | head -n1 | cut -d: -f3 | cut -d% -f1 | tr -d "[:space:]"` + +#osd_cat -b percentage -P $VOLPERC --delay=1 --align=center --pos bottom --offset 50 --color=green& + + diff --git a/.i3/statusline b/.i3/statusline new file mode 100755 index 0000000..2c1c512 --- /dev/null +++ b/.i3/statusline @@ -0,0 +1,6 @@ + +#!/bin/bash +echo '{"version":1}' +echo '[' +echo '[],' +exec conky -c ~/.conkyrc diff --git a/.i3/suspend.sh b/.i3/suspend.sh new file mode 100755 index 0000000..3f09013 --- /dev/null +++ b/.i3/suspend.sh @@ -0,0 +1,3 @@ +i3lock -i '/home/andrei/Pictures/pcmr dye.png' -t + +systemctl suspend; diff --git a/.i3/test.json b/.i3/test.json new file mode 100755 index 0000000..7e83a17 --- /dev/null +++ b/.i3/test.json @@ -0,0 +1,138 @@ +// vim:ts=4:sw=4:et +{ + "border": "pixel", + "current_border_width": 0, + "floating": "auto_off", + "geometry": { + "height": 1032, + "width": 956, + "x": 1920, + "y": 46 + }, + "name": "HexChat: Skaterdude97 @ Rizon / #pcmasterrace", + "percent": 0.333333333333333, + "swallows": [ + { + // "class": "^Hexchat$", + // "instance": "^hexchat$", + // "title": "^HexChat\\:\\ Skaterdude97\\ \\@\\ Rizon\\ \\/\\ \\#pcmasterrace$", + // "transient_for": "^$" + } + ], + "type": "con" +} + +{ + // splitv split container with 2 children + "border": "normal", + "floating": "auto_off", + "layout": "splitv", + "percent": 0.333333333333333, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 0, + "floating": "auto_off", + "geometry": { + "height": 100, + "width": 240, + "x": 3207, + "y": 38 + }, + "name": "skaterdude97canada - Skype™", + "percent": 0.5, + "swallows": [ + { + // "class": "^Skype$", + // "instance": "^skype$", + // "title": "^skaterdude97canada\\ \\-\\ Skype™$", + // "transient_for": "^$" + } + ], + "type": "con" + }, + { + "border": "pixel", + "current_border_width": 0, + "floating": "auto_off", + "geometry": { + "height": 481, + "width": 700, + "x": 3208, + "y": 578 + }, + "name": "Nicholas, Brad Nooby, Nathan Sherritt - Skype™", + "percent": 0.5, + "swallows": [ + { + // "class": "^Skype$", + // "instance": "^skype$", + // "title": "^Nicholas\\,\\ Brad\\ Nooby\\,\\ Nathan\\ Sherritt\\ \\-\\ Skype™$", + // "transient_for": "^$", + // "window_role": "^ConversationsWindow$" + } + ], + "type": "con" + } + ] +} + +{ + "border": "pixel", + "current_border_width": 0, + "floating": "auto_off", + "geometry": { + "height": 1037, + "width": 1916, + "x": 0, + "y": 41 + }, + "name": "TeamSpeak 3", + "percent": 0.333333333333333, + "swallows": [ + { + // "class": "^TeamSpeak\\ 3$", + // "instance": "^ts3client_linux_amd64$", + // "title": "^TeamSpeak\\ 3$", + // "transient_for": "^$" + } + ], + "type": "con" +} + +// vim:ts=4:sw=4:et +{ + // tabbed split container with 1 children + "border": "normal", + "floating": "auto_off", + "layout": "tabbed", + "percent": 1, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 0, + "floating": "auto_off", + "geometry": { + "height": 1028, + "width": 1892, + "x": 1944, + "y": 48 + }, + "name": "Tab for a Cause - Chromium", + "percent": 1, + "swallows": [ + { + // "class": "^Chromium$", + // "instance": "^Chromium$", + // "title": "^Tab\\ for\\ a\\ Cause\\ \\-\\ Chromium$", + // "transient_for": "^$", + // "window_role": "^browser$" + } + ], + "type": "con" + } + ] +} + diff --git a/.i3/update_count.sh b/.i3/update_count.sh new file mode 100755 index 0000000..114a168 --- /dev/null +++ b/.i3/update_count.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +HELD=0 # set how many packages we're holding +PML=$(pacman -Sup | wc -l) +touch /tmp/udc +UC=$(( $PML - $HELD - 1)) + +echo -n $UC + +if (( UC > 0 )) +then + echo " \",\"color\": \"#FFFE6A" +else + echo " \",\"color\": \"#909090" +fi diff --git a/.i3/workspace-1.json b/.i3/workspace-1.json new file mode 100755 index 0000000..d68b5e0 --- /dev/null +++ b/.i3/workspace-1.json @@ -0,0 +1,87 @@ +// vim:ts=4:sw=4:et +{ +// splitv split container with 1 children +"border": "normal", +"floating": "auto_off", +"layout": "splitv", +"percent": 0.337486938854489, +"type": "con", +"nodes": [ +{ +// tabbed split container with 2 children +"border": "normal", +"floating": "auto_off", +"layout": "tabbed", +"percent": 1, +"type": "con", +"nodes": [ +{ +"border": "none", +"current_border_width": 2, +"floating": "auto_off", +"geometry": { +"height": 427, +"width": 642, +"x": 0, +"y": 0 +}, +"name": "/bin/bash", +"percent": 0.5, +"swallows": [ +{ +"class": "^Terminator$" +} +], +"type": "con" +}, +{ +"border": "normal", +"floating": "user_off", +"geometry": { +"height": 427, +"width": 642, +"x": 0, +"y": 0 +}, +"name": "/bin/bash", +"percent": 0.5, +"swallows": [ +{ +"class": "^Terminator$" +} +], +"type": "con" +} +] +} +] +} + +{ +// tabbed split container with 1 children +"border": "normal", +"floating": "auto_off", +"layout": "tabbed", +"percent": 0.662513061145511, +"type": "con", +"nodes": [ +{ +"border": "normal", +"floating": "auto_off", +"geometry": { +"height": 1033, +"width": 1148, +"x": 770, +"y": 45 +}, +"name": "/home/andrei/Documents - Atom", +"percent": 1, +"swallows": [ +{ +"window_role": "^browser\\-window$" +} +], +"type": "con" +} +] +}