summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdwm/.dwmSession.sh15
-rw-r--r--dwm/.xinitrc2
-rwxr-xr-xdwm/lc17
-rw-r--r--qutebrowser/.config/qutebrowser/config.py4
-rw-r--r--qutebrowser/.config/qutebrowser/quickmarks1
-rw-r--r--vim/.vimrc19
-rw-r--r--zsh/.zshrc16
7 files changed, 43 insertions, 31 deletions
diff --git a/dwm/.dwmSession.sh b/dwm/.dwmSession.sh
index 3274e7a..fdb0fad 100755
--- a/dwm/.dwmSession.sh
+++ b/dwm/.dwmSession.sh
@@ -9,12 +9,13 @@ fi
echo $$ > $PIDFILE
-while true; do
-
- BATT=$( acpi -b | sed 's/.*[charging|unknown], \([0-9]*\)%.*/\1/gi' )
- TIME=$(/bin/date +"%H:%M")
- IP=$(ip -4 a | grep "inet " | sed "s:inet \(.*\)/.*:\1:" | tr -d " " | tr "\n" " ")
+for file in /home/julian/Scripts/enMenuScripts/*
+do
+ sh $file &
+done
- xsetroot -name "$IP $TIME $BATT%"
- sleep 10
+while true; do
+ xsetroot -name "$(cat /tmp/dsb* | tr -d '\n')"
+ sleep 1
+ inotifywait -q -e modify /tmp/dsb*
done
diff --git a/dwm/.xinitrc b/dwm/.xinitrc
index ecf13e1..3ac0572 100644
--- a/dwm/.xinitrc
+++ b/dwm/.xinitrc
@@ -14,7 +14,6 @@ xcape -e "Control_R=Escape"
nm-applet &
xscreensaver &
xss-lock -- xscreensaver-command --lock &
-dunst &
xcompmgr &
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
@@ -28,5 +27,6 @@ while true; do
dwm
done &
+play ~/Winsounds/login.wav -q &
exec sh /home/julian/.dwmSession.sh
diff --git a/dwm/lc b/dwm/lc
index 9aef69c..dadf470 100755
--- a/dwm/lc
+++ b/dwm/lc
@@ -1,6 +1,7 @@
#!/bin/bash
-Commands="update poweroff suspend set-keyboard caps-lock battery cups-website vim emacs htop scrot overleaf-render overleaf"
+Commands="update poweroff suspend set-keyboard caps-lock battery cups-website vim emacs htop scrot overleaf-render overleaf win pass wall stat"
+statScripts="ram.sh status.sh net.sh mathiasServerPlayers.sh"
handle_stuff() {
if [ "$1" = "--dmenu" ]; then
@@ -45,6 +46,13 @@ handle_stuff() {
xdotool key Caps_Lock
fi
+ if [ "$1" = "win" ]; then
+ vboxmanage startvm "Windows xp"
+ fi
+ if [ "$1" = "wall" ]; then
+ feh --bg-fill Pictures/defaultWall.*
+ fi
+
# Launch
if [ "$1" = "vi" ] || [ "$1" = "vim" ]; then
st -e nvim
@@ -61,6 +69,13 @@ handle_stuff() {
if [ "$1" = "overleaf" ]; then
firefox -p Sharelatex --no-remote
fi
+ if [ "$1" = "pass" ]; then
+ sh ~/Scripts/passmenu --type
+ fi
+
+ if [ "$1" = "stat" ]; then
+ sh /home/julian/Scripts/$(echo $statScripts | tr " " "\n" | dmenu -i -p "stat")
+ fi
# Calc
if [ "$(echo $1 | head -c 1)" = "=" ]; then
diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py
index 261648b..e76fd34 100644
--- a/qutebrowser/.config/qutebrowser/config.py
+++ b/qutebrowser/.config/qutebrowser/config.py
@@ -659,7 +659,7 @@ c.content.javascript.alert = True
## - true
## - false
## - ask
-c.content.media_capture = False
+c.content.media_capture = 'ask'
## Allow websites to lock your mouse pointer.
## Type: BoolAsk
@@ -776,7 +776,7 @@ c.content.xss_auditing = True
## Directory to save downloads to. If unset, a sensible OS-specific
## default is used.
## Type: Directory
-c.downloads.location.directory = "/tmp/web"
+c.downloads.location.directory = "/tmp"
## Prompt the user for the download location. If set to false,
## `downloads.location.directory` will be used.
diff --git a/qutebrowser/.config/qutebrowser/quickmarks b/qutebrowser/.config/qutebrowser/quickmarks
index 18f658b..d2098ad 100644
--- a/qutebrowser/.config/qutebrowser/quickmarks
+++ b/qutebrowser/.config/qutebrowser/quickmarks
@@ -7,3 +7,4 @@ github https://github.com/jbjjbjjbj
moodle https://www.moodle.aau.dk/my/
discord https://discordapp.com/channels/@me
rejseplanen https://www.rejseplanen.dk/webapp/index.html
+ordbogen https://www.ordbogen.com/en/
diff --git a/vim/.vimrc b/vim/.vimrc
index 4515292..9675c05 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -20,25 +20,15 @@ set shellslash
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-repeat'
- " ctags stuff
- Plugin 'ludovicchabant/vim-gutentags'
-
- " Language support
- Plugin 'racer-rust/vim-racer'
- Plugin 'davidhalter/jedi-vim'
- Plugin 'junegunn/goyo.vim'
- Plugin 'vim-latex/vim-latex'
- Plugin 'jceb/vim-orgmode'
+ " Editor config
+ Plugin 'editorconfig/editorconfig-vim'
" Color theme
Plugin 'agude/vim-eldar'
" File management
- Plugin 'scrooloose/nerdtree'
-
- " Snippits
- " Plugin 'SirVer/ultisnips'
- " Plugin 'honza/vim-snippets'
+ " Plugin 'scrooloose/nerdtree'
+ Plugin 'tpope/vim-vinegar'
" Git
Plugin 'jreybert/vimagit'
@@ -46,7 +36,6 @@ set shellslash
" Tagbar use <F4>
Plugin 'majutsushi/tagbar'
-
call vundle#end() " required
filetype plugin indent on " required
diff --git a/zsh/.zshrc b/zsh/.zshrc
index ef71519..9559d5d 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -55,7 +55,7 @@ echo "Loading plugins"
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
-plugins=(git sudo)
+plugins=(git sudo pass taskwarrior)
echo "Loading zsh"
source $ZSH/oh-my-zsh.sh
@@ -98,11 +98,8 @@ BULLETTRAIN_PROMPT_ORDER=(
)
-alias rex="xrdb ~/.Xresources"
-alias lemon="~/.config/openbox/lemonbar | lemonbar -g 1355x20+5+5 -f terminus-9"
-
-
#PATH=/usr/local/MATLAB/R2018b/bin:$PATH
+PATH=~/go/bin:$PATH
#fortune -n 100 | cowsay
echo "Loading powerline"
@@ -149,3 +146,12 @@ alias rman="apropos . | shuf -n 1 | awk '{print $1}'| xargs man"
export TERM=st
+
+command_not_found_handler () {
+ #play -q ~/Winsounds/error.wav &
+ printf "zsh: command not found: $1\n"
+ return 127
+}
+
+# opam configuration
+test -r /home/julian/.opam/opam-init/init.zsh && . /home/julian/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true