From 51573d35e989d45f047b0b34fd9293be459d346b Mon Sep 17 00:00:00 2001 From: philw Date: Sat, 10 Feb 2024 20:00:48 +0100 Subject: Update dots --- x/.Xresources | 28 ++++++++++++++++++++++++++++ x/.xinitrc | 33 +++++++++++++++++++++++++++++++++ x/.xprofile | 14 ++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 x/.Xresources create mode 100644 x/.xinitrc create mode 100644 x/.xprofile (limited to 'x') diff --git a/x/.Xresources b/x/.Xresources new file mode 100644 index 0000000..1f301c5 --- /dev/null +++ b/x/.Xresources @@ -0,0 +1,28 @@ +st.alpha: 0.8 +st.font: FiraCode-12; +dmenu.font: FiraCode-11; +st.termname: st-256color +st.borderpx: 0 +dwm.borderpx: 0 +dwm.showbar: 0 +dwm.font: FiraCode-12; + + *.color0: #1d2021 + *.color1: #cc241d + *.color2: #98971a + *.color3: #d79921 + *.color4: #458588 + *.color5: #b16286 + *.color6: #689d6a + *.color7: #a89984 + *.color8: #928374 + *.color9: #fb4934 + *.color10: #b8bb26 + *.color11: #fabd2f + *.color12: #83a598 + *.color13: #d3869b + *.color14: #8ec07c + *.color15: #ebdbb2 + *.background: #282828 + *.foreground: white + *.cursorColor: white diff --git a/x/.xinitrc b/x/.xinitrc new file mode 100644 index 0000000..78a943a --- /dev/null +++ b/x/.xinitrc @@ -0,0 +1,33 @@ +#!/bin/sh + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +[ -f /etc/xprofile ] && . /etc/xprofile +[ -f ~/.xprofile ] && . ~/.xprofile + +if [ -f $sysresources ]; then + xrdb -merge $sysresources +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f "$userresources" ]; then + xrdb -merge "$userresources" +fi + +if [ -f "$usermodmap" ]; then + xmodmap "$usermodmap" +fi + +if [ -d /etc/X11/xinit/xinitrc.d ] ; then + for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do + [ -x "$f" ] && . "$f" + done + unset f +fi +exec dbus-run-session dwm diff --git a/x/.xprofile b/x/.xprofile new file mode 100644 index 0000000..6f80fbd --- /dev/null +++ b/x/.xprofile @@ -0,0 +1,14 @@ +#!/bin/sh + +autostart="lxpolkit mpd" + +for program in $autostart; do + pidof -sx "$program" || "$program" & +done >/dev/null 2>&1 + +xrandr --dpi 96 +setxkbmap pl +wal -i ~/Repositories/rice/wp2062872.jpg & +picom -b & + +[ -n "$xrdbpid" ] && wait "$xrdbpid" -- cgit v1.2.3