diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-11-30 17:50:49 +0100 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2023-11-30 17:50:49 +0100 |
| commit | 0f3d71b036b4b81ed2365f83557fa5cc45e3fe97 (patch) | |
| tree | d2c7c7a0fcc33e387b4c1056d1534318847ccbff /x11/.config | |
| parent | 16aec06eb45aea4e9d5c127daab6ea281d88006d (diff) | |
1
Diffstat (limited to 'x11/.config')
| -rw-r--r-- | x11/.config/x11/xinitrc | 28 | ||||
| -rw-r--r-- | x11/.config/x11/xprofile | 49 |
2 files changed, 0 insertions, 77 deletions
diff --git a/x11/.config/x11/xinitrc b/x11/.config/x11/xinitrc deleted file mode 100644 index 5fa14ab..0000000 --- a/x11/.config/x11/xinitrc +++ /dev/null @@ -1,28 +0,0 @@ -#!/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 - -picom & -firefox & -# delay thunderbird to allow protonmail initialize and avoid thunderbirds' "no connection to 127.0.0.1" -protonmail-bridge --no-window & ( sleep 5 && thunderbird & ) -signal-desktop & -telegram-desktop & -redshift -l40:2 & -syncthing & -xfce4-power-manager & - - -/usr/bin/dwm diff --git a/x11/.config/x11/xprofile b/x11/.config/x11/xprofile deleted file mode 100644 index 320ee3d..0000000 --- a/x11/.config/x11/xprofile +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -# 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. - - -xrdb $HOME/.Xresources -xrdbpid=$! - -# Ensure that xrdb has finished running -[ -n "$xrdbpid" ] && wait "$xrdbpid" - -if [ $(xdpyinfo | awk '/dimensions/ {print $2}') == '3840x2160' ]; then - xrdb -merge <<< "Xft.dpi: 192" - xrdb -merge <<< "*.font: monospace:size=12" -fi - -# generate zathura config with colors from .Xresources -mkdir -pv $HOME/.config/zathura && $HOME/.local/bin/genzathurarc > $HOME/.config/zathura/zathurarc - -# and dunst too -mkdir -pv $HOME/.config/dunst && $HOME/.local/bin/gendunstrc > $HOME/.config/dunst/dunstrc - -$HOME/.local/bin/setbg - -$HOME/.local/bin/remaps - -autostart=( - "xcompmgr" - "mpd" - "dunst" - "unclutter" - "gentoo-pipewire-launcher" - "syncthing --no-browser" - "redshift -l40:2" -) - -for program in "${autostart[@]}" ; do - pidof -s "${program%% *}" || setsid -f $program -done >$XDG_CACHE_HOME/xprofile.errors 2>&1 - -# not sure why it does not work reliably inside autostart -dwmblocks & - -$HOME/.local/bin/startxautolock - -if [ -x /usr/bin/gpg-agent ]; then - eval "$(/usr/bin/gpg-agent --daemon)" -fi |
