aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2020-04-30 01:32:25 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2020-04-30 01:32:25 +0200
commita485761cf21a485141c00828cd147b5d1a3468fa (patch)
treeb4a43301e440bf4ab1894e403e1045bf462c70c4 /files
parent7a83b2660c23a4edbc6717ee85cdc819c1b42c29 (diff)
downloadconfigs-a485761cf21a485141c00828cd147b5d1a3468fa.tar.gz
configs-a485761cf21a485141c00828cd147b5d1a3468fa.zip
Migrated graphic envirnomnent keybindings config to sxhkd.
Diffstat (limited to 'files')
-rw-r--r--files/i3/config84
-rw-r--r--files/rcs/.bash_vars6
-rw-r--r--files/rcs/.xinitrci33
-rw-r--r--files/sxhkd/sxhkdrc117
4 files changed, 127 insertions, 83 deletions
diff --git a/files/i3/config b/files/i3/config
index 7fefd52..7992907 100644
--- a/files/i3/config
+++ b/files/i3/config
@@ -79,22 +79,9 @@ set $wst 🙈
# use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
-# start a terminal
-#bindsym $mod+Return exec i3-sensible-terminal
-bindsym $mod+Return exec urxvt -title "floating" -e tmux
-bindsym $mod+Shift+Return exec urxvt -e tmux
-
# kill focused window
bindsym $mod+Shift+q kill
-# start dmenu_run (a program launcher)
-bindsym $mod+x exec dmenu_run -l 8 -p "~$"
-bindsym $mod+Shift+x exec rofi -show run
-# There also is the (new) i3-dmenu-desktop which only displays applications
-# shipping a .desktop file. It is a wrapper around dmenu, so you need that
-# installed.
-# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
-
# change focus
bindsym $mod+$left focus left
bindsym $mod+$down focus down
@@ -127,9 +114,6 @@ bindsym $mod+Control+$right workspace next
bindsym $mod+Control+Left workspace prev
bindsym $mod+Control+Right workspace next
-# Jump to window
-bindsym $mod+Control+j exec rofi -show window
-
# split in horizontal orientation
bindsym $mod+b split h
@@ -154,9 +138,6 @@ bindsym $mod+Shift+space floating toggle
# toggle sticky
bindsym $mod+Shift+s sticky toggle
-
-bindsym $mod+Control+x exec sxivslideshot
-
# modify gaps
bindsym $mod+Shift+g gaps inner current minus 2
bindsym $mod+g gaps inner current plus 2
@@ -232,71 +213,10 @@ assign [class="Transmission"] 5
hide_edge_borders both
#hide_edge_borders none
-# system control
-bindsym $mod+Control+s exec ~/scripts/systemControl.sh
-# lock
-bindsym $mod+Control+Shift+l exec ~/scripts/i3lock.sh
-# reboot
-bindsym $mod+Control+Shift+r exec ~/scripts/prompt.sh "Reboot?" "$reboot"
-# touchpad
-bindsym $mod+t exec touchpad.sh
-
# scratchpad
bindsym $mod+minus move scratchpad
bindsym $mod+plus scratchpad show
-# From https://faq.i3wm.org/question/3747/enabling-multimedia-keys/?answer=3759#post-id-3759
-# Pulse Audio controls
-set $volChange 2
-set $bigVolChange 10
-#increase sound volume
-bindsym XF86AudioRaiseVolume exec --no-startup-id ~/scripts/vol.sh "+$volChange"
-bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id ~/scripts/vol.sh "+$bigVolChange"
-#decrease sound volume
-bindsym XF86AudioLowerVolume exec --no-startup-id ~/scripts/vol.sh "-$volChange"
-bindsym $mod+XF86AudioLowerVolume exec --no-startup-id ~/scripts/vol.sh "-$bigVolChange"
-#mute sound
-bindsym XF86AudioMute exec --no-startup-id ~/scripts/vol.sh "mute"
-# Sreen brightness controls
-set $brightChange 4
-set $bigBrightChange 60
-# increase screen brightness
-bindsym XF86MonBrightnessUp exec ~/scripts/brightness.sh $brightChange
-bindsym $mod+XF86MonBrightnessUp exec ~/scripts/brightness.sh $bigBrightChange
-# decrease screen brightness
-bindsym XF86MonBrightnessDown exec ~/scripts/brightness.sh -$brightChange
-bindsym $mod+XF86MonBrightnessDown exec ~/scripts/brightness.sh -$bigBrightChange
-# Touchpad controls
-#bindsym XF86Switch_VT_5 exec ~/.config/i3/toggletouchpad.sh # toggle touchpad
-
-# Media player controls
-bindsym XF86AudioPlay exec ~/scripts/cmusPlay.sh
-bindsym XF86AudioNext exec cmus-remote -n && pkill -SIGRTMIN+12 i3blocks
-bindsym XF86AudioPrev exec cmus-remote -r && pkill -SIGRTMIN+12 i3blocks
-
-## Programs
-
-bindsym $mod+q exec qutebrowser
-bindsym $mod+Shift+f exec firefox
-bindsym $mod+w exec firefox https://web.whatsapp.com/
-bindsym $mod+s exec screenshot.sh
-bindsym Print exec screenshot.sh
-bindsym $mod+a exec screenshot.sh -a
-bindsym $mod+Shift+a exec screenshot.sh -c
-bindsym $mod+r exec urxvt -title "floating" -e ranger
-bindsym $mod+c exec ~/scripts/dmenuTerm.sh
-bindsym $mod+d exec ~/scripts/dmenuDic.sh
-bindsym $mod+m exec ~/scripts/dmenuMount.sh
-bindsym $mod+e exec ~/scripts/emoji.sh
-bindsym $mod+Shift+m exec ~/scripts/dmenuUmount.sh
-bindsym $mod+Shift+c exec notify-send "$(fortune)"
-bindsym $mod+y exec surfraw.sh
-bindsym $mod+Control+f exec screenRecord.sh
-bindsym $mod+Control+p exec passmenu
-bindsym $mod+z exec docs.sh
-
-##
-
# reload the configuration file
bindsym $mod+Control+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
@@ -367,7 +287,5 @@ strip_workspace_numbers yes
### Init
exec i3-msg "gaps inner current set 0; gaps outer current set 0"
-# bg
-#exec_always bash ~/scripts/pkmBgSelector.sh
-#exec transmission-gtk
exec $HOME/scripts/xinit.sh
+
diff --git a/files/rcs/.bash_vars b/files/rcs/.bash_vars
index f8489a2..81741dc 100644
--- a/files/rcs/.bash_vars
+++ b/files/rcs/.bash_vars
@@ -13,6 +13,12 @@ export BROWSER="qutebrowser"
export READER="zathura"
export VIEWER="sxiv"
+export CONFIG_VOL_CHANGE="2"
+export CONFIG_BIG_VOL_CHANGE="10"
+
+export CONFIG_BRIGHT_CHANGE="4"
+export CONFIG_BIG_BRIGHT_CHANGE="60"
+
export CONFIG_DIC_ES="/usr/share/dict/spanish"
export CONFIG_DIC_EN="/usr/share/dict/british"
export CONFIG_DIC_PL="/usr/share/dict/słowa.txt"
diff --git a/files/rcs/.xinitrci3 b/files/rcs/.xinitrci3
index ba0c6ef..daaf886 100644
--- a/files/rcs/.xinitrci3
+++ b/files/rcs/.xinitrci3
@@ -1 +1,4 @@
+xrandr --setprovideroutputsource modesetting NVIDIA-0
+xrandr --auto
+xrandr --dpi 96
exec i3
diff --git a/files/sxhkd/sxhkdrc b/files/sxhkd/sxhkdrc
new file mode 100644
index 0000000..01cb523
--- /dev/null
+++ b/files/sxhkd/sxhkdrc
@@ -0,0 +1,117 @@
+# _ _ _
+# _____ _| |__ | | ____| |_ __ ___
+# / __\ \/ / '_ \| |/ / _` | '__/ __|
+# \__ \> <| | | | < (_| | | | (__
+# |___/_/\_\_| |_|_|\_\__,_|_| \___|
+#
+# Config file for the Simple X HotKey Daemon
+#
+
+super + Return
+ urxvt -title "floating" -e tmux
+
+super + shift + Return
+ urxvt -e tmux
+
+super + x
+ dmenu_run -l 8 -p "~$"
+
+# Jump to window
+super + ctrl + j
+ rofi -show window
+
+super + ctrl + x
+ sxivslideshot
+
+# system control
+super + ctrl + s
+ ~/scripts/systemControl.sh
+
+# lock
+super + ctrl + shift + l
+ ~/scripts/i3lock.sh
+
+# touchpad
+super + t
+ touchpad.sh
+
+# From https://faq.i3wm.org/question/3747/enabling-multimedia-keys/?answer=3759#post-id-3759
+# Pulse Audio controls
+#increase sound volume
+XF86Audio{Lower,Raise}Volume
+ ~/scripts/vol.sh "{-,+}$CONFIG_VOL_CHANGE"
+super + XF86Audio{Lower,Raise}Volume
+ ~/scripts/vol.sh "{-,+}$CONFIG_BIG_VOL_CHANGE"
+#mute sound
+XF86AudioMute
+ ~/scripts/vol.sh "mute"
+
+# Sreen brightness controls
+# increase screen brightness
+XF86MonBrightness{Up,Down}
+ ~/scripts/brightness.sh "{_,-}$CONFIG_BRIGHT_CHANGE"
+super + XF86MonBrightness{Up,Down}
+ ~/scripts/brightness.sh "{_,-}$CONFIG_BIG_BRIGHT_CHANGE"
+
+# Media player controls
+XF86AudioPlay
+ ~/scripts/cmusPlay.sh
+XF86Audio{Prev,Next}
+ cmus-remote -{r,n} && pkill -SIGRTMIN+12 i3blocks
+
+## Programs
+
+super + q
+ qutebrowser
+
+super + shift + f
+ firefox
+
+super + w
+ firefox https://web.whatsapp.com/
+
+Print
+ screenshot.sh
+
+super + s
+ screenshot.sh
+
+super + a
+ screenshot.sh -a
+
+super + shift + a
+ screenshot.sh -c
+
+super + r
+ urxvt -title "floating" -e ranger
+
+super + c
+ ~/scripts/dmenuTerm.sh
+
+super + d
+ ~/scripts/dmenuDic.sh
+
+super + e
+ ~/scripts/emoji.sh
+
+super + m
+ ~/scripts/dmenuMount.sh
+
+super + shift + m
+ ~/scripts/dmenuUmount.sh
+
+super + shift + c
+ notify-send "$(fortune)"
+
+super + y
+ surfraw.sh
+
+super + ctrl + f
+ screenRecord.sh
+
+super + ctrl + p
+ passmenu
+
+super + z
+ docs.sh
+