summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Halle <git@niklashalle.net>2019-12-10 09:29:51 +0100
committerNiklas Halle <git@niklashalle.net>2019-12-10 09:29:51 +0100
commit11d859fff6e636df9695f7e19e1d366e33e60555 (patch)
tree65aa2ed39aba603ab8965531b5f5853d043c1474
parent7d38162e6c65837c22e8e6cbba3e53c2dd6f1eaf (diff)
downloaddotfiles-11d859fff6e636df9695f7e19e1d366e33e60555.tar.gz
dotfiles-11d859fff6e636df9695f7e19e1d366e33e60555.zip
bin --> .bin
-rwxr-xr-x.bin/adbpush (renamed from bin/adbpush)0
-rwxr-xr-x.bin/avg_cpu_temp (renamed from bin/avg_cpu_temp)0
-rwxr-xr-x.bin/battery.py (renamed from bin/battery.py)0
-rwxr-xr-x.bin/batteryChargeCheck (renamed from bin/batteryChargeCheck)0
-rwxr-xr-x.bin/battery_status (renamed from bin/battery_status)0
-rwxr-xr-x.bin/be_clear (renamed from bin/be_clear)0
-rwxr-xr-x.bin/calc2
-rwxr-xr-x.bin/chargestatus.py (renamed from bin/chargestatus.py)0
-rwxr-xr-x.bin/deadcells (renamed from bin/deadcells)0
-rwxr-xr-x.bin/device_removed.sh (renamed from bin/device_removed.sh)0
-rwxr-xr-x.bin/dmenuwrapper (renamed from bin/dmenuwrapper)0
-rwxr-xr-x.bin/ds4 (renamed from bin/ds4)0
-rwxr-xr-x[-rw-r--r--].bin/enable_touch2click (renamed from bin/enable_touch2click)0
-rwxr-xr-x.bin/fehbg (renamed from bin/fehbg)0
-rwxr-xr-x.bin/getLocation (renamed from bin/getLocation)0
-rwxr-xr-x.bin/gpsLoc (renamed from bin/gpsLoc)0
-rwxr-xr-x.bin/kill-steam (renamed from bin/kill-steam)0
-rwxr-xr-x.bin/kill-wine (renamed from bin/kill-wine)0
-rwxr-xr-x.bin/landhcp (renamed from bin/landhcp)0
-rwxr-xr-x.bin/lastLeasedIP (renamed from bin/lastLeasedIP)0
-rwxr-xr-x.bin/list_files_owned_by1
-rwxr-xr-x.bin/listenIn (renamed from bin/listenIn)0
-rwxr-xr-x.bin/lock (renamed from bin/lock)0
-rwxr-xr-x.bin/mpdNotify (renamed from bin/mpdNotify)0
-rwxr-xr-x.bin/music (renamed from bin/music)0
-rwxr-xr-x.bin/notify10
-rwxr-xr-x.bin/panes (renamed from bin/panes)0
-rwxr-xr-x.bin/passmenu (renamed from bin/passmenu)0
-rwxr-xr-x.bin/reconnectWifi (renamed from bin/reconnectWifi)0
-rwxr-xr-x.bin/remoteWork (renamed from bin/remoteWork)0
-rwxr-xr-x.bin/spotifyWrapper (renamed from bin/spotifyWrapper)0
-rwxr-xr-x.bin/ssh_fingerprint (renamed from bin/ssh_fingerprint)0
-rwxr-xr-x.bin/start-polybar (renamed from bin/start-polybar)0
-rwxr-xr-x.bin/updatePackageLists (renamed from bin/updatePackageLists)0
-rwxr-xr-x.bin/zero_clock_mod_msr (renamed from bin/zero_clock_mod_msr)0
-rw-r--r--.zshenv4
-rw-r--r--.zshrc5
-rwxr-xr-xexportToGit4
-rwxr-xr-ximportFromGit2
39 files changed, 18 insertions, 10 deletions
diff --git a/bin/adbpush b/.bin/adbpush
index 0a6025c..0a6025c 100755
--- a/bin/adbpush
+++ b/.bin/adbpush
diff --git a/bin/avg_cpu_temp b/.bin/avg_cpu_temp
index 468c886..468c886 100755
--- a/bin/avg_cpu_temp
+++ b/.bin/avg_cpu_temp
diff --git a/bin/battery.py b/.bin/battery.py
index 670d467..670d467 100755
--- a/bin/battery.py
+++ b/.bin/battery.py
diff --git a/bin/batteryChargeCheck b/.bin/batteryChargeCheck
index 76f4b7d..76f4b7d 100755
--- a/bin/batteryChargeCheck
+++ b/.bin/batteryChargeCheck
diff --git a/bin/battery_status b/.bin/battery_status
index 130a294..130a294 100755
--- a/bin/battery_status
+++ b/.bin/battery_status
diff --git a/bin/be_clear b/.bin/be_clear
index eb0986d..eb0986d 100755
--- a/bin/be_clear
+++ b/.bin/be_clear
diff --git a/.bin/calc b/.bin/calc
new file mode 100755
index 0000000..e11d9b8
--- /dev/null
+++ b/.bin/calc
@@ -0,0 +1,2 @@
+echo "scale=5;$@" | sed "s/,/\./g" | bc
+echo
diff --git a/bin/chargestatus.py b/.bin/chargestatus.py
index 13c728d..13c728d 100755
--- a/bin/chargestatus.py
+++ b/.bin/chargestatus.py
diff --git a/bin/deadcells b/.bin/deadcells
index e645123..e645123 100755
--- a/bin/deadcells
+++ b/.bin/deadcells
diff --git a/bin/device_removed.sh b/.bin/device_removed.sh
index af6b8b6..af6b8b6 100755
--- a/bin/device_removed.sh
+++ b/.bin/device_removed.sh
diff --git a/bin/dmenuwrapper b/.bin/dmenuwrapper
index 0599a3f..0599a3f 100755
--- a/bin/dmenuwrapper
+++ b/.bin/dmenuwrapper
diff --git a/bin/ds4 b/.bin/ds4
index 5ba3378..5ba3378 100755
--- a/bin/ds4
+++ b/.bin/ds4
diff --git a/bin/enable_touch2click b/.bin/enable_touch2click
index 8cf8cf0..8cf8cf0 100644..100755
--- a/bin/enable_touch2click
+++ b/.bin/enable_touch2click
diff --git a/bin/fehbg b/.bin/fehbg
index ac5a2fd..ac5a2fd 100755
--- a/bin/fehbg
+++ b/.bin/fehbg
diff --git a/bin/getLocation b/.bin/getLocation
index 6027ded..6027ded 100755
--- a/bin/getLocation
+++ b/.bin/getLocation
diff --git a/bin/gpsLoc b/.bin/gpsLoc
index a2f2108..a2f2108 100755
--- a/bin/gpsLoc
+++ b/.bin/gpsLoc
diff --git a/bin/kill-steam b/.bin/kill-steam
index 1b9af0f..1b9af0f 100755
--- a/bin/kill-steam
+++ b/.bin/kill-steam
diff --git a/bin/kill-wine b/.bin/kill-wine
index bcc3453..bcc3453 100755
--- a/bin/kill-wine
+++ b/.bin/kill-wine
diff --git a/bin/landhcp b/.bin/landhcp
index f39a84a..f39a84a 100755
--- a/bin/landhcp
+++ b/.bin/landhcp
diff --git a/bin/lastLeasedIP b/.bin/lastLeasedIP
index 1e14e4f..1e14e4f 100755
--- a/bin/lastLeasedIP
+++ b/.bin/lastLeasedIP
diff --git a/.bin/list_files_owned_by b/.bin/list_files_owned_by
new file mode 100755
index 0000000..7499c69
--- /dev/null
+++ b/.bin/list_files_owned_by
@@ -0,0 +1 @@
+trizen -Qlq "$1" | grep -v '/$' | xargs du -h | sort -h
diff --git a/bin/listenIn b/.bin/listenIn
index 7488a3a..7488a3a 100755
--- a/bin/listenIn
+++ b/.bin/listenIn
diff --git a/bin/lock b/.bin/lock
index 805df5b..805df5b 100755
--- a/bin/lock
+++ b/.bin/lock
diff --git a/bin/mpdNotify b/.bin/mpdNotify
index 2925632..2925632 100755
--- a/bin/mpdNotify
+++ b/.bin/mpdNotify
diff --git a/bin/music b/.bin/music
index 8222f5c..8222f5c 100755
--- a/bin/music
+++ b/.bin/music
diff --git a/.bin/notify b/.bin/notify
new file mode 100755
index 0000000..697e519
--- /dev/null
+++ b/.bin/notify
@@ -0,0 +1,10 @@
+#!/bin/zsh
+
+local test=""
+
+curl -s https://www.psychologie.hu-berlin.de/de/praxis/ambulanz/psysozin/kontakt | \
+ grep "Diagnostik und Therapie geschlossen" > /dev/null && test=dfgh
+
+if [ -z "${test}" ]; then
+ notify-send "Update, NOW!"
+fi
diff --git a/bin/panes b/.bin/panes
index a191de8..a191de8 100755
--- a/bin/panes
+++ b/.bin/panes
diff --git a/bin/passmenu b/.bin/passmenu
index 8194f2f..8194f2f 100755
--- a/bin/passmenu
+++ b/.bin/passmenu
diff --git a/bin/reconnectWifi b/.bin/reconnectWifi
index 564ea78..564ea78 100755
--- a/bin/reconnectWifi
+++ b/.bin/reconnectWifi
diff --git a/bin/remoteWork b/.bin/remoteWork
index f4c3ba7..f4c3ba7 100755
--- a/bin/remoteWork
+++ b/.bin/remoteWork
diff --git a/bin/spotifyWrapper b/.bin/spotifyWrapper
index 298c25f..298c25f 100755
--- a/bin/spotifyWrapper
+++ b/.bin/spotifyWrapper
diff --git a/bin/ssh_fingerprint b/.bin/ssh_fingerprint
index f030416..f030416 100755
--- a/bin/ssh_fingerprint
+++ b/.bin/ssh_fingerprint
diff --git a/bin/start-polybar b/.bin/start-polybar
index a6d27f1..a6d27f1 100755
--- a/bin/start-polybar
+++ b/.bin/start-polybar
diff --git a/bin/updatePackageLists b/.bin/updatePackageLists
index 6e28e52..6e28e52 100755
--- a/bin/updatePackageLists
+++ b/.bin/updatePackageLists
diff --git a/bin/zero_clock_mod_msr b/.bin/zero_clock_mod_msr
index 6d0a3c4..6d0a3c4 100755
--- a/bin/zero_clock_mod_msr
+++ b/.bin/zero_clock_mod_msr
diff --git a/.zshenv b/.zshenv
index da8e478..74e4727 100644
--- a/.zshenv
+++ b/.zshenv
@@ -6,9 +6,9 @@ export EDITOR=vim
export BROWSER=firefox
# add scripts to path
-if [[ $UID -ge 1000 && -d $HOME/bin && -z $(echo $PATH | grep -o $HOME/bin) ]]
+if [[ $UID -ge 1000 && -d $HOME/.bin && -z $(echo $PATH | grep -o $HOME/.bin) ]]
then
- export PATH="${HOME}/bin:${PATH}"
+ export PATH="${HOME}/.bin:${PATH}"
fi
# if there is a display and dmenu_args is not set, set it
diff --git a/.zshrc b/.zshrc
index a74c419..265ab83 100644
--- a/.zshrc
+++ b/.zshrc
@@ -132,11 +132,6 @@ qrcode() {
echo $@ | curl -F-=\<- qrenco.de
}
-# netctl + openvpn
-function netctl() {
- sudo netctl "$@" && sudo openvpn --cd /home/niklas/media/vpn/mullvad/mullvad_config_linux_se --config /home/niklas/media/vpn/mullvad/mullvad_config_linux_se/mullvad_se.conf
-}
-
# prompt
autoload -Uz promptinit
promptinit
diff --git a/exportToGit b/exportToGit
index 7ddc48e..e66a2e1 100755
--- a/exportToGit
+++ b/exportToGit
@@ -19,12 +19,12 @@ do
then
mkdir -p "$dir"
fi
-done
+done
# copy all relevant files to current folder
# scripts
-cp -r ~/bin ./
+cp -r ~/.bin ./
# package lists
cp ~/.dependenciesPkgs .
diff --git a/importFromGit b/importFromGit
index 2e8952e..aadf325 100755
--- a/importFromGit
+++ b/importFromGit
@@ -7,7 +7,7 @@ git reset --hard origin/master
# copy files to location (interactive)
# scripts
-cp -i ./bin/* ~/bin/
+cp -i ./.bin/* ~/.bin/
# configs
cp -i .config/bspwm/* ~/.config/bspwm