Skip to content

Instantly share code, notes, and snippets.

@imvaskii
Last active April 19, 2020 13:12
Show Gist options
  • Save imvaskii/f3e9c96141221d8a693dfcd31ac7f103 to your computer and use it in GitHub Desktop.
Save imvaskii/f3e9c96141221d8a693dfcd31ac7f103 to your computer and use it in GitHub Desktop.
Xprofile
#!/usr/bin/env sh
#
# Author: Bhaskar K <[email protected]>
# Switch to US international with Caps as Mod/Escape
setxkbmap -option caps:super -variant altgr-intl
killall xcape 2>/dev/null
xcape -e 'Super_L=Escape'
xmodmap -e 'keycode 135 = Super_R' &
xset r rate 300 50 &
unclutter &
xcompmgr &
dunst &
sxhkd &
redshift-sydney &
setbg
xrandr \
--dpi 156 \
--output eDP1 --mode 1920x1080 --rate 60 --pos 0x1440 --rotate normal --primary \
--output DP1 --off \
--output DP2 --off \
--output HDMI1 --mode 2560x1440 --rate 60 --pos 0x0 --rotate normal \
--output VIRTUAL1 --off
echo "Xft.dpi: 156" | xrdb -merge
xrdb -merge ~/.Xresources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment