vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 7c8fbf1072581cb90388f3e98a816bbdc4e268a1
parent 3dc8f8ed4301fd4b8d978c305b435eabadc97284
Author: Cem Keylan <cem@ckyln.com>
Date:   Sat, 21 Sep 2019 15:42:46 +0300

lightdm i3 to xorg dwm

Diffstat:
A.xinitrc | 18++++++++++++++++++
Abin/bar.sh | 34++++++++++++++++++++++++++++++++++
Abin/startdwm | 4++++
3 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/.xinitrc b/.xinitrc @@ -0,0 +1,18 @@ +#!/bin/sh +compton & +/home/cem/bin/nightmodetoggle disable & +powercheck & +# Launch Bar +while true : +do + bar.sh + sleep 0.1 +done & +numlockx on +mpd >/dev/null 2>&1 & +/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & +dbus-update-activation-environment --systemd DISPLAY +eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) +export SSH_AUTH_SOCK +xautolock -time 10 -locker '~/bin/lockme' & +startdwm diff --git a/bin/bar.sh b/bin/bar.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +# VARIABLES +ETHERNET="eno1" +WIRELESS="wlo1" +# enter your wireless or wired device names e.g. eth0 wlp2s0 + +getip() { \ + IP="$(ip a show $1 | grep 'inet ' | cut -d: -f2 | awk '{print $2}')" + [ -z "$IP" ] && IP="N/A" + IP="$1 ${IP}" + printf "$IP\n" +} +network() { \ + WIP="$(getip $WIRELESS)" + EIP="$(getip $ETHERNET)" + SSID="$(iwgetid -r)" + printf "| NET $EIP $SSID $WIP |" +} + +NM=`nightmodecheck` +HOMESIZE=`df -h | grep '/home$' | awk '{print $3}' | sed s/G//`/`df -h | grep '/home$' | awk '{print $2}' | sed s/G/\ GB/` +ROOTSIZE=`df -h | grep '/$' | awk '{print $3}' | sed s/G//`/`df -h | grep '/$' | awk '{print $2}' | sed s/G/\ GB/` +BAT=`cat /sys/class/power_supply/BAT?/capacity` +BATSTATUS=`cat /sys/class/power_supply/BAT?/status` +[ "$BATSTATUS" = "Unknown" ] && BATSTATUS="" +MPDCP="`mpc current`" +HOST=`cat /etc/hostname` +[ -n "$MPDCP" ] && MPDCP="| Now Playing: $MPDCP " +VOL="$(pamixer --get-volume-human)" + + + +xsetroot -name " $USER@$HOST $MPDCP| NM:$NM | /HOME:$HOMESIZE /:$ROOTSIZE `network` VOL: $VOL | BAT:$BAT% $BATSTATUS | `date +%a\ %e\ %b\ %Y\ %H:%M`" diff --git a/bin/startdwm b/bin/startdwm @@ -0,0 +1,4 @@ +#!/bin/sh +while true; do + dwm 2> ~/.dwm.log +done