forked from Syuq/.dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xprofile
executable file
·34 lines (25 loc) · 1.23 KB
/
.xprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# !/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.
# xrandr --dpi 96 # Set DPI. User may want to use a larger number for larger screens.
setbg & # set the background with the `setbg` script
run() { command -v ${1} > /dev/null && ${@}; }
# run xset r rate 300 50 # speed xrate up
# run numlockx # turn on numlock key
# run nm-applet & # networkmanager applet
# run blueman-applet & # bluetooth applet
run picom -b # for transparency
run dunst & # notification server
# run ibus-daemon -drx # start ibus daemon
# run udiskie -s & # auto mount USB
run greenclip daemon & # run clipboard server daemon
# run clipmenud &
autostart="mpd xcompmgr unclutter remapd"
for program in $autostart; do
pidof -sx "$program" || "$program" &
done >/dev/null 2>&1
# Ensure that xrdb has finished running before moving on to start the WM/DE.
[ -n "$xrdbpid" ] && wait "$xrdbpid"
# Make Caps Lock an additional Esc and both Shift Keys toggle Caps Lock
# setxkbmap -option caps:escape,shift:both_capslock &
# brightness.sh = eDP1 0.9 --temp