aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2022-01-23 17:45:47 +0000
committerAnInternetTroll <lucafulger@gmail.com>2022-01-23 17:45:47 +0000
commitb8821cb26c5d87386fb052ea279afbe467d232d3 (patch)
tree5b0e772403da7cbe2b0f91485630140636dddcaf
parent92c1d51a5006edaf72b148d7440853e220fcb592 (diff)
downloaddotfiles-b8821cb26c5d87386fb052ea279afbe467d232d3.tar
dotfiles-b8821cb26c5d87386fb052ea279afbe467d232d3.tar.gz
dotfiles-b8821cb26c5d87386fb052ea279afbe467d232d3.tar.bz2
dotfiles-b8821cb26c5d87386fb052ea279afbe467d232d3.tar.lz
dotfiles-b8821cb26c5d87386fb052ea279afbe467d232d3.tar.xz
dotfiles-b8821cb26c5d87386fb052ea279afbe467d232d3.tar.zst
dotfiles-b8821cb26c5d87386fb052ea279afbe467d232d3.zip
Small updates
-rwxr-xr-xbootstrap.sh8
-rwxr-xr-xdwm/.dwm/autostart29
-rwxr-xr-xdwm/.dwm/bar/bar.sh14
-rw-r--r--dwm/.dwm/xresources53
4 files changed, 87 insertions, 17 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 34ecc02..b7ce765 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -4,13 +4,15 @@ SYMLINKDIR=$(readlink -f "$0")
BASEDIR=$(dirname "$SYMLINKDIR")
cd $BASEDIR
-source /etc/os-release
+if [ -f /etc/os-release ]; then
+ . /etc/os-release
+ OS=$NAME
+fi
read -p "Install dependencies? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
-
- case $ID in
+ case $OS in
arch)
sudo pacman -S picom xorg-setxkbmap feh xorg-xinput dash imlib2 xorg-xsetroot alacritty flameshot rofi xorg-xbacklight pamixer playerctl xsecurelock git base rsync
;;
diff --git a/dwm/.dwm/autostart b/dwm/.dwm/autostart
index 532f13c..71595cc 100755
--- a/dwm/.dwm/autostart
+++ b/dwm/.dwm/autostart
@@ -2,19 +2,34 @@
# How2bind???
#setxkbmap -layout us,no -option grp:ctrl_win_l_toggle
+setxkbmap -layout no
picom --vsync --no-fading-openclose --refresh-rate "59.96" &
xrdb merge ~/Public/xresources/forest/.Xresources &
-feh --bg-tile ~/Pictures/wall/bee.jpg &
+feh --auto-reload --bg-fill ~/Pictures/wall.jpg &
# Set up touchpad controls
-TID=$(xinput | sed -n 's/.*Touchpad.*id=\([0-9]*\).*/\1/p')
+
+# Libinput
+#TID=$(xinput | sed -n 's/.*Touchpad.*id=\([0-9]*\).*/\1/p')
+#xinput --set-prop $TID 'libinput Accel Speed' 0.5
+#xinput --set-prop $TID 'libinput Tapping Enabled' 1
+#xinput --set-prop $TID 'libinput Natural Scrolling Enabled' 1
#xinput --set-prop $TID 'libinput Accel Speed' 0.5
-xinput --set-prop $TID 'libinput Tapping Enabled' 1
-xinput --set-prop $TID 'libinput Natural Scrolling Enabled' 1
+
+# Synapse
+TID=`xinput list | grep "SynPS/2 Synaptics TouchPad" | sed 's/.*id=\([0-9]*\).*/\1/g'`
+PROP_NO=`xinput list-props ${TID} | grep "Synaptics Scrolling Distance" | sed 's/.*(\([0-9]*\)).*/\1/g'`
+#xinput --set-prop $TID 'Synaptics Tap Action' 1
+xinput set-prop ${TID} ${PROP_NO} -106 -106
# run bar script and dwm ( do not remove this )
-SYMLINKDIR=(readlink -f "$0")
+SYMLINKDIR=$(readlink -f "$0")
BASEDIR=$(dirname "$SYMLINKDIR")
-$BASEDIR/.dwm/bar/./bar.sh &
+$BASEDIR/bar/./bar.sh &
+xrdb merge $BASEDIR/xresources &
+
+dunst &
+nm-applet &
+light-locker --lock-on-suspend &
-dwm
+dbus-run-session dwm
diff --git a/dwm/.dwm/bar/bar.sh b/dwm/.dwm/bar/bar.sh
index 89cfdf4..6dafda4 100755
--- a/dwm/.dwm/bar/bar.sh
+++ b/dwm/.dwm/bar/bar.sh
@@ -6,10 +6,10 @@
interval=0
# run bar script and dwm ( do not remove this )
-SYMLINKDIR=(readlink -f "$0")
+SYMLINKDIR=$(readlink -f "$0")
BASEDIR=$(dirname "$SYMLINKDIR")
# load colors!
-. $BASEDIR/.dwm/bar/themes/onedark
+. $BASEDIR/themes/onedark
cpu() {
cpu_val=$(grep -o "^[^ ]*" /proc/loadavg)
@@ -20,7 +20,7 @@ cpu() {
pkg_updates() {
#updates=$(doas xbps-install -un | wc -l) # void
- updates=$(checkupdates | wc -l) # arch , needs pacman contrib
+ #updates=$(checkupdates | wc -l) # arch , needs pacman contrib
# updates=$(aptitude search '~U' | wc -l) # apt (ubuntu,debian etc)
if [ -z "$updates" ]; then
@@ -44,8 +44,8 @@ battery() {
}
brightness() {
- brightness="$(cat /sys/class/backlight/*/brightness)"
- brightness_max="$(cat /sys/class/backlight/*/max_brightness)"
+ brightness="$(cat /sys/class/backlight/intel_backlight/brightness)"
+ brightness_max="$(cat /sys/class/backlight/intel_backlight/max_brightness)"
level=$(echo "scale=2; $brightness / $brightness_max * 100" | bc)
printf "^c$red^  "
@@ -91,8 +91,8 @@ keyboard() {
while true; do
- [ $interval = 0 ] || [ $(($interval % 3600)) = 0 ] && updates=$(pkg_updates)
+ #[ $interval = 0 ] || [ $(($interval % 3600)) = 0 ] && updates=$(pkg_updates)
interval=$((interval + 1))
- sleep 1 && xsetroot -name "$updates $(battery) $(brightness) $(cpu) $(mem) $(keyboard) $(wlan) $(volume) $(clock)"
+ sleep 1 && xsetroot -name "$updates $(battery) $(brightness) $(cpu) $(mem) $(wlan) $(volume) $(clock)"
done
diff --git a/dwm/.dwm/xresources b/dwm/.dwm/xresources
new file mode 100644
index 0000000..018a8dd
--- /dev/null
+++ b/dwm/.dwm/xresources
@@ -0,0 +1,53 @@
+!-- Xft settings -- ! you dont even need this probably
+
+Xft.antialias: 1
+Xft.hinting: 1
+Xft.autohint: 0
+Xft.hintstyle: hintslight
+Xft.rgba: rgb
+Xft.lcdfilter: lcddefault
+
+! transparency ( 0.1 to 0.9 values)
+st.alpha: 0.8
+
+! inner padding
+st.borderpx: 15
+st.font: JetBrainsMono Nerd Font:style:medium:pixelsize=15
+
+!! Colors
+
+!! Dracula palette
+*.foreground: #F8F8F2
+*.background: #282A36
+
+!! black + grey
+*.color0: #000000
+*.color8: #4D4D4D
+
+!! dark red + red
+*.color1: #FF5555
+*.color9: #FF6E67
+
+!! green
+*.color2: #50FA7B
+*.color10: #5AF78E
+
+!! yellow
+*.color3: #F1FA8C
+*.color11: #F4F99D
+
+!! purple
+*.color4: #BD93F9
+*.color12: #CAA9FA
+
+!! pink
+*.color5: #FF79C6
+*.color13: #FF92D0
+
+!! cyan
+*.color6: #8BE9FD
+*.color14: #9AEDFE
+
+!! white
+*.color7: #BFBFBF
+*.color15: #E6E6E6