commit 6e2db7df3528c591c53a9e37a75c70fcb09fa9cb
Author: Benjamin Paul <bpaul848@gmail.com>
Date: Sun, 5 Jul 2020 17:15:50 +1000
Initial commit
Diffstat:
7 files changed, 105 insertions(+), 0 deletions(-)
diff --git a/.Scripts/banksia b/.Scripts/banksia
@@ -0,0 +1,2 @@
+#!/bin/sh
+~/projects/Omelette\ chess\ engine\ versions/BanksiaGui/BanksiaGui.sh
diff --git a/.Scripts/battery b/.Scripts/battery
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+battery=$(cat /sys/class/power_supply/BAT0/capacity)
+condition=$(cat /sys/class/power_supply/BAT0/status)
+
+if [ $condition = "Charging" ]; then
+ echo "🔌$battery"
+elif [ $condition = "Discharging" ]; then
+ echo "🔋$battery"
+else
+ echo "🔋Full"
+fi
diff --git a/.Scripts/dmenuemoji b/.Scripts/dmenuemoji
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+emoji=$(cut -d ';' -f1 ~/.helpers/emoji | dmenu -i -l 30 | sed "s/ .*//")
+
+[ -z emoji ] && exit
+
+echo "$emoji" | tr -d "\n" | xclip -selection clipboard
diff --git a/.Scripts/set-wallpaper b/.Scripts/set-wallpaper
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+file=$1
+
+[ -f $1 ] && file=~/.config/wall.${file##*.}
+[ -d $1 ] && file=$(find $1 -maxdepth 1 | shuf -n 1)
+[ -z $1 ] && file=$(find ~/Wallpapers -maxdepth 1 | shuf -n 1)
+
+wal -i $file
+
+xwallpaper --zoom $file
diff --git a/.Xresources b/.Xresources
@@ -0,0 +1,40 @@
+*.font: monospace:size=10
+
+*.alpha: .6
+
+! special
+*.foreground: #ffffff
+*.background: #1d1f21
+!*.cursorColor: #c5c8c6
+
+! black
+*.color0: #282a2e
+*.color8: #373b41
+
+! red
+*.color1: #a54242
+*.color9: #cc6666
+
+! green
+*.color2: #8c9440
+*.color10: #b5bd68
+
+! yellow
+*.color3: #de935f
+*.color11: #f0c674
+
+! blue
+*.color4: #5f819d
+*.color12: #81a2be
+
+! magenta
+*.color5: #85678f
+*.color13: #b294bb
+
+! cyan
+*.color6: #5e8d87
+*.color14: #8abeb7
+
+! white
+*.color7: #707880
+*.color15: #c5c8c6
diff --git a/.zprofile b/.zprofile
@@ -0,0 +1,7 @@
+#!/bin/zsh
+
+export PATH="$PATH:$(du $HOME/.local/bin/ | cut -f2 | paste -sd ':'):$HOME/.Scripts"
+
+if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
+ exec startx
+fi
diff --git a/.zshrc b/.zshrc
@@ -0,0 +1,26 @@
+# Add colour support and set prompt
+autoload -U colors && colors
+PS1='%F{green}%n%f@%F{blue}%m%f %F{white}%B%~%b%f $ '
+
+# History support
+HISTSIZE=1000
+SAVEHIST=$HISTSIZE
+HISTFILE="$HOME/.cache/zsh/history"
+
+# Tab completion
+autoload -Uz compinit
+compinit
+zstyle ':completion:*' menu select
+zstyle 'completion:complete:*' gain-privileges 1
+setopt COMPLETE_ALIASES
+
+# Key bindings
+bindkey ';5D' backward-word
+bindkey ';5C' forward-word
+
+# Avoid programs freezing terminals etc
+ttyctl -f
+
+# Aliases
+alias ls='ls --color=auto'
+alias v=nvim