Browse Source

add xbindkeys

pull/1/head
captain kuromaru 3 years ago
parent
commit
9d1c16c2d5
  1. 103
      .xbindkeysrc
  2. 20
      install.sh

103
.xbindkeysrc

@ -0,0 +1,103 @@ @@ -0,0 +1,103 @@
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.5
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# To specify a key, you can use 'xbindkeys --key' or
# 'xbindkeys --multikey' and put one of the two lines in this file.
#
# The format of a command line is:
# "command to start"
# associated key
#
#
# A list of keys is in /usr/include/X11/keysym.h and in
# /usr/include/X11/keysymdef.h
# The XK_ is not needed.
#
# List of modifier:
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#
# The release modifier is not a standard X modifier, but you can
# use it if you want to catch release events instead of press events
# By defaults, xbindkeys does not pay attention with the modifiers
# NumLock, CapsLock and ScrollLock.
# Uncomment the lines above if you want to pay attention to them.
#keystate_numlock = enable
#keystate_capslock = enable
#keystate_scrolllock= enable
# Examples of commands:
"xbindkeys_show"
control+shift + q
# set directly keycode (here control + f with my keyboard)
#"xterm"
# c:41 + m:0x4
# specify a mouse button
#"xterm"
# control + b:2
#"xterm -geom 50x20+20+20"
# Shift+Mod2+alt + s
#
## set directly keycode (here control+alt+mod2 + f with my keyboard)
#"xterm"
# alt + c:0x29 + m:4 + mod2
#
## Control+Shift+a release event starts rxvt
#"rxvt"
# release+control+shift + a
#
## Control + mouse button 2 release event starts rxvt
#"rxvt"
# Control + b:2 + Release
#"sh ~/toggle_xcompmgr.sh"
# m:0x8 + c:32
# Decrease volume
"pactl set-sink-volume @DEFAULT_SINK@ -1000"
m:0x0 + c:122
# Increase volume
"pactl set-sink-volume @DEFAULT_SINK@ +1000"
m:0x0 + c:123
# Mute volume
"pactl set-sink-mute @DEFAULT_SINK@ toggle"
m:0x0 + c:121
# Increase backlight
"brightlight --file /sys/class/backlight/radeon_bl0/ -i 5"
m:0x0 + c:158
# Decrease backlight
"brightlight --file /sys/class/backlight/radeon_bl0/ -d 5"
m:0x0 + c:223
# Open dmenu
"dmenu_run"
m:0x40 + c:65
# Lock screen
"xscreensaver-command -lock"
m:0x40 + c:46
##################################
# End of xbindkeys configuration #
##################################

20
install.sh

@ -81,9 +81,23 @@ cp ./batpower.sh ~/batpower.sh @@ -81,9 +81,23 @@ cp ./batpower.sh ~/batpower.sh
cp ./toggle_xcompmgr.sh ~/toggle_xcompmgr.sh
# setup resolv.conf // because eff virgin media dns
sudo cp /etc/resolv.conf /etc/resolv.conf.bak
sudo echo "nameserver 104.238.186.189" > /etc/resolv.conf # opennic server
sudo echo "nameserver 8.8.8.8" >> /etc/resolv.conf # google server just in case
cp /etc/resolv.conf /etc/resolv.conf.bak
echo "nameserver 104.238.186.189" > /etc/resolv.conf # opennic server
echo "nameserver 8.8.8.8" >> /etc/resolv.conf # google server just in case
# install protonvpn
dnf install -y openvpn dialog python3-pip python3-setuptools # having pip installed is always handy
pip3 install protonvpn-cli
# for backup
dnf install duplicity
#add the rest when you prepare configs 'n stuff
# dmenu
dnf install dmenu
# cp xbindkeys config
cp ./.xbindkeysrc ~/.xbindkeysrc
# list what's needed to install manually
echo "You gotta manually install: wbar, rtv, gzdoom, atom, keybase, keepass; download: tor"

Loading…
Cancel
Save