summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-20 19:11:56 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-20 19:11:56 -0700
commit1b883459c37e67964d92dd962fad6aa9d5efd74b (patch)
tree8b90d13ddb5a76ddc0ad2709ede69b028a2add7e /.config
parent9a5a4af5e9ad1791db8cdda2e3933b75eddff624 (diff)
Tidy up config, set sxhkd for universal keymaps
Diffstat (limited to '.config')
-rwxr-xr-x.config/bspwm/bspwmrc2
-rw-r--r--.config/i3/config64
-rw-r--r--.config/polybar/config2
-rw-r--r--.config/shell/profile1
-rw-r--r--.config/sxhkd/sxhkdrc96
-rw-r--r--.config/x11/xprofile1
6 files changed, 131 insertions, 35 deletions
diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc
index 00a0969..1facb75 100755
--- a/.config/bspwm/bspwmrc
+++ b/.config/bspwm/bspwmrc
@@ -17,6 +17,8 @@ polybar_panel
# fi
# Multihead stuff.
+# I changed hostname for uname -u, because
+# I didn't know hostname was in inetutils package, kek.
if [ $(uname -n) = "arch" ]; then
# Run a script to select the main monitor.
if [ $(pgrep -f bspwm_enforce_monitor_position | wc -l) < 2]; then
diff --git a/.config/i3/config b/.config/i3/config
index 2e0176d..5817454 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -15,19 +15,19 @@ font pango:monospace 10
# Totally needed.
set $mon2 "HDMI-0"
set $mon1 "DP-0"
- set $dmenu --no-startup-id i3-dmenu-desktop
- set $term --no-startup-id $TERMINAL
- set $fmgr $FILE
- set $ibwsr --no-startup-id $BROWSER
- set $edit --no-startup-id $EDITOR
- set $read --no-startup-id $READER
- set $rstbar pkill -RTMIN+1 $STATUSBAR
+ # set $dmenu --no-startup-id i3-dmenu-desktop
+ # set $term --no-startup-id $TERMINAL
+ # set $fmgr $FILE
+ # set $ibwsr --no-startup-id $BROWSER
+ # set $edit --no-startup-id $EDITOR
+ # set $read --no-startup-id $READER
+ # set $rstbar pkill -RTMIN+1 i3blocks
# Other.
- set $ss --no-startup-id $SSMGR
- set $sspath "$HOME/pix/ss/"
- set $music --no-startup-id $MUSIC
- set $msgs --no-startup-id $MSGCHAT
- set $mail --no-startup-id $MAILMGR
+ # set $ss --no-startup-id $SSMGR
+ # set $sspath "$HOME/pix/ss/"
+ # set $music --no-startup-id $MUSIC
+ # set $msgs --no-startup-id $MSGCHAT
+ # set $mail --no-startup-id $MAILMGR
## Colors from ~/.Xresources.
# set_from_resource $bg background
# set_from_resource $fg foreground
@@ -147,25 +147,25 @@ client.background $c15
##--Keybindings--##
## Basic bindings.
- bindsym $mod+Shift+c reload
- bindsym $mod+Shift+r restart
- bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
+ # bindsym $mod+Shift+c reload
+ # bindsym $mod+Shift+r restart
+ # bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
## Apps.
- bindsym $mod+Return exec $term
- bindsym $mod+Delete exec $term -e htop
- bindsym $mod+Shift+w exec $ibwsr
- bindsym $mod+Shift+f workspace $ws4 exec $term -e $fmgr
+ # bindsym $mod+Return exec $term
+ # bindsym $mod+Delete exec $term -e htop
+ # bindsym $mod+Shift+w exec $ibwsr
+ # bindsym $mod+Shift+f workspace $ws4 exec $term -e $fmgr
# bindsym $mod+m exec $music
# bindsym $mod+Shift+m exec $msgs
- bindsym $mod+Shift+m exec $mail
+ # bindsym $mod+Shift+m exec $mail
# Screenshots.
- bindsym Print exec $ss gui
- bindsym $mod+Print exec $ss full -c
- bindsym $mod+Shift+Print exec $ss full -p $sspath
+ # bindsym Print exec $ss gui
+ # bindsym $mod+Print exec $ss full -c
+ # bindsym $mod+Shift+Print exec $ss full -p $sspath
## Dmenu.
- bindsym $mod+d exec $dmenu
+ # bindsym $mod+d exec $dmenu
## Navigation and window options.
# Basics.
@@ -260,15 +260,15 @@ client.background $c15
}
##--Extra XF86 Keys--##
-bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +2% && $rstbar
-bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $rstbar
-bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -2% && $rstbar
-bindsym Shift+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $rstbar
-bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $rstbar
+# bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +2% && $rstbar
+# bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $rstbar
+# bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -2% && $rstbar
+# bindsym Shift+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $rstbar
+# bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $rstbar
# bindsym XF86AudioMedia exec
-bindsym XF86AudioPrev exec playerctl previous && $rstbar
-bindsym XF86AudioNext exec playerctl next && $rstbar
-bindsym XF86AudioPlay exec playerctl play-pause && $rstbar
+# bindsym XF86AudioPrev exec playerctl previous && $rstbar
+# bindsym XF86AudioNext exec playerctl next && $rstbar
+# bindsym XF86AudioPlay exec playerctl play-pause && $rstbar
# bindsym XF86AudioPause exec # Same as XF86AudioPlay in my keyboard. That's why the 'play-pause' option is used.
# bindsym XF86AudioStop exec
# bindsym XF86AudioRecord exec
diff --git a/.config/polybar/config b/.config/polybar/config
index 2f1e978..a04d931 100644
--- a/.config/polybar/config
+++ b/.config/polybar/config
@@ -30,7 +30,7 @@ screenchange-reload = true
# pseudo-transparency = false
[global/wm]
-margin-top = 0
+margin-top = 40
margin-bottom = 0
include-file = /home/lz/.config/polybar/main.ini
include-file = /home/lz/.config/polybar/second.ini
diff --git a/.config/shell/profile b/.config/shell/profile
index 0e3856e..67b5ad2 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -13,7 +13,6 @@ export TERMINAL="alacritty"
export BROWSER="firefox"
export READER="zathura"
export FILE="ranger"
-export STATUSBAR="i3blocks"
# export MUSIC="spotify"
export MAILMGR="thunderbird"
# export MSGCHAT="telegram-desktop"
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index f422f76..b92bc7b 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -6,7 +6,7 @@
super + Return
$TERMINAL
super + d
- i3-dmenu-desktop
+ dmenu_run
super + Escape
pkill -USR1 -x sxhkd
super + shift + Escape
@@ -134,3 +134,97 @@ super + alt + {h,j,k,l}
super + {Left,Down,Up,Right}
n=10; \
bspc node -v {-$n 0,0 $n,0 -$n,$n 0}
+
+#
+# Extra XF86 keys.
+#
+{_,shift + } XF86AudioRaiseVolume
+ pactl set-sink-volume @DEFAULT_SINK@ +{2,10}%
+
+{_,shift + } XF86AudioLowerVolume
+ pactl set-sink-volume @DEFAULT_SINK@ -{2,10}%
+
+XF86AudioMute
+ pactl set-sink-mute @DEFAULT_SINK@ toggle
+F86AudioPrev
+ playerctl previous
+F86AudioNext
+ playerctl next
+F86AudioPlay
+ playerctl play-pause
+
+# XF86AudioMedia
+# Same as XF86AudioPlay in my keyboard. That's why the 'play-pause' option is used.
+# XF86AudioPause
+# XF86AudioStop
+# XF86AudioRecord
+# XF86AudioRewind
+# XF86AudioForward
+# XF86AudioMicMute
+# pactl set-source-mute @DEFAULT_SOURCE@ toggle
+# XF86PowerOff
+# XF86Copy
+# XF86Open
+# XF86Past
+# XF86Cut
+# XF86MenuKB
+# XF86Calculator
+# This binding is typically mapped by systemd automatically.
+# XF86Sleep
+# XF86WakeUp
+# XF86Explorer
+# XF86Send
+# XF86Xfer
+# XF86WWW
+# XF86DOS
+# XF86ScreenSaver
+# XF86RotateWindows
+# XF86TaskPane
+# XF86Favorites
+# XF86MyComputer
+# XF86Back
+# XF86Forward
+# XF86Eject
+# XF86Phone
+# XF86Tools
+# XF86HomePage
+# XF86Reload
+# XF86ScrollUp
+# XF86ScrollDown
+# XF86New
+# XF86LaunchA
+# XF86LaunchB
+# XF86Launch2
+# XF86Launch3
+# XF86Launch4
+# XF86Launch5
+# XF86Launch6
+# XF86Launch7
+# XF86Launch8
+# XF86Launch9
+# XF86TouchpadToggle
+# XF86TouchpadOn
+# XF86TouchpadOff
+# XF86Suspend
+# XF86Close
+# XF86WebCam
+# XF86Mail
+# XF86Messenger
+# XF86Search
+# XF86Go
+# XF86Finance
+# XF86Game
+# XF86Shop
+# XF86MonBrightnessDown
+# XF86MonBrightnessUp
+# XF86Display
+# XF86KbdLightOnOff
+# XF86KbdBrightnessDown
+# XF86KbdBrightnessUp
+# XF86Reply
+# XF86MailForward
+# XF86Save
+# XF86Documents
+# XF86Battery
+# XF86Bluetooth
+# XF86WLAN
diff --git a/.config/x11/xprofile b/.config/x11/xprofile
index 5ee7f6f..1ba3c8f 100644
--- a/.config/x11/xprofile
+++ b/.config/x11/xprofile
@@ -3,6 +3,7 @@
# This is run when a display manager logs in.
# Used as source for ~/.xinitrc.
+setsid sxhkd &
numlockx on &
xsetroot -cursor_name left_ptr &
xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources &