major springcleaning
This commit is contained in:
1
.config/x11/Xres_casting
Normal file
1
.config/x11/Xres_casting
Normal file
@ -0,0 +1 @@
|
||||
*.dpi: 100
|
20
.config/x11/xinitrc
Executable file
20
.config/x11/xinitrc
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
# xinitrc runs automatically when you run startx.
|
||||
|
||||
# There are some small but important commands that need to be run when we start
|
||||
# the graphical environment. There is a link to this file in ~/.xprofile
|
||||
# because that file is run automatically if someone uses a display manager
|
||||
# (login screen) and so they are needed there. To prevent doubling up commands,
|
||||
# I source them here with the line below.
|
||||
|
||||
if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" ]; then
|
||||
. "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile"
|
||||
else
|
||||
. "$HOME/.xprofile"
|
||||
fi
|
||||
|
||||
rm -f /tmp/killdwm
|
||||
until [ -f /tmp/killdwm ]; do
|
||||
dwm
|
||||
done
|
24
.config/x11/xprofile
Executable file
24
.config/x11/xprofile
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This file runs when a DM logs you into a graphical session.
|
||||
# If you use startx/xinit like a Chad, this file will also be sourced.
|
||||
|
||||
dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
|
||||
xrdb -merge ~/.config/x11/Xresources
|
||||
#mpv --no-video "$XDG_CONFIG_HOME/windows_xp_startup.ogg"
|
||||
setbg & # set the background with the `setbg` script
|
||||
|
||||
xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$! # Uncomment to use Xresources colors/settings on startup
|
||||
autostart="picom mpd dunst unclutter dwmblocks update_musicbar pipewire remapd"
|
||||
|
||||
for program in $autostart; do
|
||||
pidof -s "$program" || setsid -f "$program"
|
||||
done >/dev/null 2>&1
|
||||
xrandr --auto
|
||||
xrandr --dpi 180 # Set DPI. User may want to use a larger number for larger screens.
|
||||
xrandr --listactivemonitors | grep -qE '1920.*x1080.*HDMI-1-3$' && ( xrandr --output HDMI-1-3 --scale 1.666666666666 && setbg ) # set scale for 2nd monitor if connected
|
||||
|
||||
echo "$DBUS_SESSION_BUS_ADDRESS" > /tmp/dbus_session_bus_address
|
||||
|
||||
# Ensure that xrdb has finished running before moving on to start the WM/DE.
|
||||
[ -n "$xrdbpid" ] && wait "$xrdbpid"
|
55
.config/x11/xresources
Normal file
55
.config/x11/xresources
Normal file
@ -0,0 +1,55 @@
|
||||
!! Transparency (0-1):
|
||||
*.alpha: 0.8
|
||||
st.alpha: 0.1
|
||||
Nsxiv.window.alpha: 0.1
|
||||
|
||||
*.dpi: 180
|
||||
|
||||
/* !nord */
|
||||
#define bblack #000000
|
||||
#define nord0 #2E3440
|
||||
#define nord1 #3B4252
|
||||
#define nord2 #434C5E
|
||||
#define nord3 #4C566A
|
||||
#define nord4 #D8DEE9
|
||||
#define nord5 #E5E9F0
|
||||
#define nord6 #ECEFF4
|
||||
#define nord7 #8FBCBB
|
||||
#define nord8 #88C0D0
|
||||
#define nord9 #81A1C1
|
||||
#define nord10 #5E81AC
|
||||
#define nord11 #BF616A
|
||||
#define nord12 #D08770
|
||||
#define nord13 #EBCB8B
|
||||
#define nord14 #A3BE8C
|
||||
#define nord15 #B48EAD
|
||||
|
||||
*.foreground: nord4
|
||||
*.background: bblack
|
||||
*.cursorColor: nord4
|
||||
*fading: 35
|
||||
*fadeColor: nord3
|
||||
|
||||
Sxiv.font: monospace-10
|
||||
Sxiv.txtcolor: nord6
|
||||
Sxiv.background: nord0
|
||||
Sxiv.foreground: nord6
|
||||
|
||||
xterm*saveLines: 2000
|
||||
|
||||
*.color0: nord1
|
||||
*.color1: nord11
|
||||
*.color2: nord14
|
||||
*.color3: nord13
|
||||
*.color4: nord9
|
||||
*.color5: nord15
|
||||
*.color6: nord8
|
||||
*.color7: nord5
|
||||
*.color8: nord3
|
||||
*.color9: nord11
|
||||
*.color10: nord14
|
||||
*.color11: nord13
|
||||
*.color12: nord9
|
||||
*.color13: nord15
|
||||
*.color14: nord7
|
||||
*.color15: nord6
|
Reference in New Issue
Block a user