forked from LukeSmithxyz/voidrice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
528 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 & |
Oops, something went wrong.