Skip to content

Instantly share code, notes, and snippets.

@Tosainu
Last active June 22, 2019 02:37
Show Gist options
  • Save Tosainu/37190311d65407af3519 to your computer and use it in GitHub Desktop.
Save Tosainu/37190311d65407af3519 to your computer and use it in GitHub Desktop.
"ponymix decrease 1"
XF86AudioLowerVolume
"ponymix increase 1"
XF86AudioRaiseVolume
"ponymix toggle"
XF86AudioMute
"brillo -q -s intel_backlight -u 100000 -U 1"
XF86MonBrightnessDown
"brillo -q -s intel_backlight -u 100000 -A 1"
XF86MonBrightnessUp
#!/bin/bash
# DESKTOP_ENVIRONMENT
export DE=gnome
# https://wiki.archlinux.de/title/GNOME#Zugangshilfen
export NO_AT_BRIDGE=1
# https://wiki.archlinux.org/index.php/Hardware_video_acceleration#Configuration
export LIBVA_DRIVER_NAME=i965
export VDPAU_DRIVER=va_gl
# https://wiki.archlinux.org/index.php/Intel_graphics#Weathered_colors_.28color_range_problem.29
# for hdmi in $(xrandr | grep -Po '^HDMI-[0-9]+(?=\sconnected)'); do
# xrandr --output $hdmi --set 'Broadcast RGB' 'Limited 16:235'
# xrandr --output $hdmi --set 'Broadcast RGB' 'Full'
# done
compton --config ~/.config/compton/compton.conf &
# Caps Lock as Ctrl
setxkbmap -option && setxkbmap -option ctrl:nocaps
# backlight
brillo -pc -s intel_backkight -S 2
# Input method
ibus-daemon -rx &
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
# GNOME Keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
# polkit
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
xbindkeys -n &
gnome-screensaver &
xautolock -detectsleep -locker 'gnome-screensaver-command --lock' &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment