summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdwm/.dwmSession.sh2
-rw-r--r--dwm/.xinitrc2
-rwxr-xr-xdwm/lc7
-rw-r--r--emacs/.emacs1
-rw-r--r--zsh/.zshrc1
5 files changed, 9 insertions, 4 deletions
diff --git a/dwm/.dwmSession.sh b/dwm/.dwmSession.sh
index 2c427b8..3274e7a 100755
--- a/dwm/.dwmSession.sh
+++ b/dwm/.dwmSession.sh
@@ -13,7 +13,7 @@ while true; do
BATT=$( acpi -b | sed 's/.*[charging|unknown], \([0-9]*\)%.*/\1/gi' )
TIME=$(/bin/date +"%H:%M")
- IP=$(hostname -i)
+ IP=$(ip -4 a | grep "inet " | sed "s:inet \(.*\)/.*:\1:" | tr -d " " | tr "\n" " ")
xsetroot -name "$IP $TIME $BATT%"
sleep 10
diff --git a/dwm/.xinitrc b/dwm/.xinitrc
index 711303f..d0232a3 100644
--- a/dwm/.xinitrc
+++ b/dwm/.xinitrc
@@ -1,5 +1,5 @@
setxkbmap -layout us -variant altgr-intl
-feh --bg-fill /home/julian/Pictures/up1.*
+feh --bg-fill /home/julian/Pictures/defaultWall.*
export _JAVA_AWT_WM_NONREPARENTING=1
export TERM=st
diff --git a/dwm/lc b/dwm/lc
index 9691d45..a482d8e 100755
--- a/dwm/lc
+++ b/dwm/lc
@@ -3,7 +3,7 @@
Menu="Program Info System File"
System="update poweroff syspend set-keyboard"
Info="battery"
-Program="cups-website vim emacs htop"
+Program="cups-website vim emacs htop scrot"
Commonfiles=".vimrc .zshrc"
All="$System $Info $Program"
@@ -47,11 +47,14 @@ handle_stuff() {
if [ "$1" = "-s" ] || [ "$1" = "suspend" ]; then
systemctl suspend
fi
- if [ "$1" = "-p" ] || [ "$1" = "poweroff" ]; then
+ if [ "$1" = "poweroff" ]; then
poweroff
fi
# Mics
+ if [ "$1" = "-p" ] || [ "$1" = "scrot" ]; then
+ scrot /tmp/%Y-%m-%d-%T-screenshot.png
+ fi
# Launch
if [ "$1" = "-v" ] || [ "$1" = "vim" ]; then
diff --git a/emacs/.emacs b/emacs/.emacs
index a40c786..3c1ec30 100644
--- a/emacs/.emacs
+++ b/emacs/.emacs
@@ -117,6 +117,7 @@
(use-package magit
:ensure t )
+
;;
;; Auto-complete (AC)
;;
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 9bc36b8..ef71519 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -115,6 +115,7 @@ alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
alias vim="nvim"
#alias emacs="emacsclient -c"
#alias cmacs="emacsclient -nw -c"
+alias sc="systemctl"
#Setup git lol
git config --global alias.lol "log --graph --decorate --abbrev-commit --all"