Skip to content

Commit

Permalink
LARBS update
Browse files Browse the repository at this point in the history
  • Loading branch information
[Cole Brooks] committed Feb 10, 2020
2 parents afb5874 + 4acbbc0 commit ec50719
Show file tree
Hide file tree
Showing 77 changed files with 528 additions and 102 deletions.
40 changes: 40 additions & 0 deletions .config/bspwm/bspwm/bspwmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/sh

# If refreshing bspwm, remove all previous rules to prevent doubling up.
bspc rule -r "*"

xsetroot -cursor_name left_ptr

# We look for a non-laptop monitor to use for default, but use the laptop
# screen (LVDS) if there's nothing else. This is because I assume that if you
# have an extra screen attached to a laptop, you want to use that.
mainmonitor="$(bspc query --monitors --names | grep -v LVDS | head -n 1)"

# if ! echo "$mainmonitor" | grep LVDS >/dev/null 2>&1; then
# xrandr --output "$mainmonitor" --auto --output LVDS1 --off
# else
# mainmonitor="LVDS1"
# xrandr --output LVDS1 --auto
# fi

# Start workspaces on the main monitor.
bspc monitor $mainmonitor -d 1 2 3 4 5 6 7 8 9 10
bspc desktop -f 1

# If you want a multi-monitor display or something else, I leave that to you to
# arrange. I have this sensible default for most people's use cases.

bspc config border_width 3
bspc config window_gap 15
bspc config top_padding 24 # top_padding I set equal to polybar's height
bspc config focus_follows_pointer true

bspc rule -a Zathura state=tiled

dropdownname="dropdown"
bspc query -N -n .hidden >/dev/null || setsid $TERMINAL -n "$dropdownname" -e dropdown >/dev/null 2>&1 &
bspc rule -a St:$dropdownname hidden=on
bspc rule -a St:$dropdownname sticky=on
bspc rule -a St:$dropdownname state=floating

bspc config external_rules_command "$(which floaters)"
20 changes: 15 additions & 5 deletions .config/fontconfig/fonts.conf
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>

<alias>
<family>serif</family>
<prefer><family>Linux Libertine</family></prefer>
<prefer>
<family>Linux Libertine</family>
<family>Noto Color Emoji</family>
<family>Joy Pixels</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer><family>Linux Biolinum</family></prefer>
<prefer>
<family>Linux Biolinum</family>
<family>Noto Color Emoji</family>
<family>Joy Pixels</family>
</prefer>
</alias>
<alias>
<family>sans</family>
<prefer><family>Linux Biolinum</family></prefer>
<prefer>
<family>Linux Biolinum</family>
<family>Noto Color Emoji</family>
<family>Joy Pixels</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Inconsolata</family></prefer>
</alias>

</fontconfig>
9 changes: 5 additions & 4 deletions .config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ bindsym $mod+Insert exec --no-startup-id showclip
bindsym $mod+q [con_id="__focused__" instance="^(?!dropdown_).*$"] kill
bindsym $mod+Shift+q [con_id="__focused__" instance="^(?!dropdown_).*$"] exec --no-startup-id kill -9 `xdotool getwindowfocus getwindowpid`

bindsym $mod+w exec $term -e nmtui
bindsym $mod+Shift+w exec --no-startup-id $BROWSER
bindsym $mod+w exec --no-startup-id $BROWSER
bindsym $mod+Shift+w exec $term -e nmtui

bindsym $mod+e exec $term -e neomutt && pkill -RTMIN+12 i3blocks
bindsym $mod+Shift+e exec --no-startup-id tutorialvids
bindsym $mod+e exec --no-startup-id emacs
bindsym $mod+Shift+e exec $term -e neomutt && pkill -RTMIN+12 i3blocks
#exec --no-startup-id tutorialvids

bindsym $mod+r exec $term -e $FILE
bindsym $mod+Shift+r exec --no-startup-id winresize
Expand Down
2 changes: 0 additions & 2 deletions .config/i3blocks/config
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ interval=once
signal=11

[news]
label=📰
interval=once
signal=6

Expand All @@ -34,7 +33,6 @@ interval=18000
signal=5

[mailbox]
label=📬
interval=180
signal=12

Expand Down
9 changes: 8 additions & 1 deletion .config/mimeapps.list
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
[Default Applications]

# xdg-open will use these settings to determine how to open filetypes.
# These .desktop entries can also be seen and changed in ~/.local/share/applications/

text/x-shellscript=text.desktop;
x-scheme-handler/magnet=torrent.desktop;
application/x-bittorrent=torrent.desktop;
x-scheme-handler/mailto=mail.desktop;
text/plain=text.desktop;
text/x-shellscript=text.desktop;
application/postscript=pdf.desktop;
application/pdf=pdf.desktop;
image/png=img.desktop;
image/jpeg=img.desktop;
image/gif=img.desktop;
application/rss+xml=rss.desktop
video/x-matroska=video.desktop
x-scheme-handler/lbry=lbry.desktop
inode/directory=file.desktop
113 changes: 108 additions & 5 deletions .config/sxhkd/sxhkdrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
# Basic binds
super + Return
$TERMINAL
super + shift + Return
samedir
super + shift + q
kill -9 `xdotool getwindowfocus getwindowpid`
super + d
dmenu_run
super + r
Expand Down Expand Up @@ -100,7 +96,7 @@ super + {_,shift +} bracketright
super + {_,shift +} bracketleft
mpc seek -{10,120}
# Increase volume
super {_,shift +} + plus
super + {equal,plus}
amixer sset Master {5,15}%+; pkill -RTMIN+10 $STATUSBAR
# Decrease volume
super {_,shift +} + minus
Expand Down Expand Up @@ -169,3 +165,110 @@ super + F8
# Mount a USB drive or Android device
super + {F9,F10}
{dmenumount,dmenuumount}



# close and kill
super + {_,shift + }q
bspc node -{c,k}

# alternate between the tiled and monocle layout
super + {_,shift + }f
bspc {desktop -l next,node -t ~fullscreen}

# rotate current node 90 degrees
super + y
bspc node @focused:/ -R 90

# swap the current node and the biggest local node
super + space
bspc node -s biggest.local || bspc node -s next.local

#
# state/flags
#

# set the window state
#super + {t,shift + t,s}
#bspc node -t {tiled,pseudo_tiled,floating}

super + shift + space
bspc node focused -t \~floating

# focus/swap

# focus the node in the given direction
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}

# focus the node for the given path jump
super + {p,b,comma,period}
bspc node -f @{parent,brother,first,second}

super + {g,semicolon}
bspc desktop {prev,next}.occupied --focus
super + {Prior,Next}
bspc desktop {prev,next}.occupied --focus
super + {Tab,backslash}
bspc desktop last --focus

# focus or swap the next node
super + {_,shift + }c
bspc node -{f,s} next.local

# focus the older or newer node in the focus history

# focus or send to the given desktop
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} ^{1-9,10}

# preselect the direction
#super + {u,o}
#bspc node -p {south,east}

# preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}

# cancel the preselection for the focused node
super + ctrl + space
bspc node -p cancel

# cancel the preselection for the focused desktop
#super + space
#bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel

# expand a window by moving one of its side outward
super + shift + {y,u,i,o}
bspc node -z {right -20 0,bottom 0 20,bottom 0 -20,right 20 0}

# contract a window by moving one of its side inward

# move a floating window
super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}

# Toggle gaps
super + shift + d
bspc config window_gap {0,15}
# Increase/descrease gap size
super { ,+ shift }+ z
bspc config window_gap $(($(bspc config window_gap) {+,-} 3))

super + u
cat /tmp/dropdown | xargs -I win bspc node win --flag hidden;bspc node -f win

# Make a windoww sticky/non-sticky
super + o
bspc node -g sticky={on,off}

# remove and restore polybar
#super + b
#\{ pgrep polybar && \{ killall polybar ; bspc config top_padding 0 \} \} || \{ launch_polybar ; bspc config top_padding 24 \}

super + {i,o}
bspc node -f {prev,next}.local
super + shift + n
bspc node focused -t \~floating ; hover right
super + shift + b
bspc node focused -t \~floating ; hover left
28 changes: 28 additions & 0 deletions .config/wal/postrun
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

source "${HOME}/.cache/wal/colors.sh"

mkdir -p "${HOME}/.config/dunst"
mkdir -p "${HOME}/.config/zathura"
ln -sf "${HOME}/.cache/wal/dunstrc" "${HOME}/.config/dunst/dunstrc"
ln -sf "${HOME}/.cache/wal/zathurarc" "${HOME}/.config/zathura/zathurarc"

fix_sequences() {
e=$'\e'
sequences=$(cat)
foreground_color="$(echo -e "${sequences}\c" | grep --color=never -Eo "${e}]10[^${e}\\\\]*?${e}\\\\" | grep --color=never -Eo "#[0-9A-Fa-f]{6}")"
background_color="$(echo -e "${sequences}\c" | grep --color=never -Eo "${e}]11[^${e}\\\\]*?${e}\\\\" | grep --color=never -Eo "#[0-9A-Fa-f]{6}")"
cursor_color="$(echo -e "${sequences}\c" | grep --color=never -Eo "${e}]12[^${e}\\\\]*?${e}\\\\" | grep --color=never -Eo "#[0-9A-Fa-f]{6}")"

for term in /dev/pts/{0..9}*
do
echo -e "\e]4;256;${cursor_color}\a\c" > "${term}" 2>/dev/null
echo -e "\e]4;258;${background_color}\a\c" > "${term}" 2>/dev/null
echo -e "\e]4;259;${foreground_color}\a\c" > "${term}" 2>/dev/null
done
}

fix_sequences <"${HOME}/.cache/wal/sequences"

pkill dunst
dunst &
Loading

0 comments on commit ec50719

Please sign in to comment.