mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-16 05:13:11 +01:00
Use symlinks with pywal templates
Instead of manually changing every instance where a program could run to use the config in the cache directory, and instead of copying files every time pywal is updated, it makes sense to create symbolic links for these files instead. This ensures that the right settings are used even without knowing the passed parameters.
This commit is contained in:
parent
032a58fc75
commit
f19dc21649
@ -65,7 +65,7 @@ if not set -q set_abbr
|
||||
abbr e "exit"
|
||||
abbr l "ls -l"
|
||||
abbr f "launch feh --auto-zoom" # Easy image viewing with f
|
||||
abbr z "launch zathura -c ~/.cache/wal" # Easy document browsing with z
|
||||
abbr z "launch zathura" # Easy document browsing with z
|
||||
abbr m "launch mpv" # Easy media playing with m
|
||||
abbr w "wal -o ~/.config/wal/done.sh"
|
||||
abbr T "tree"
|
||||
|
@ -11,11 +11,11 @@ super + shift + Return
|
||||
|
||||
# Open a new transparent terminal with tmux without the status bar
|
||||
super + backslash
|
||||
termite --config ~/.cache/wal/termite -e "tmux new-session; set status"
|
||||
termite -e "tmux new-session; set status"
|
||||
|
||||
# Open a new transparent terminal with tmux
|
||||
super + shift + backslash
|
||||
termite --config ~/.cache/wal/termite -e "tmux"
|
||||
termite -e "tmux"
|
||||
|
||||
# Reload sxhkd (applies new keybindings, etc.)
|
||||
super + Escape
|
||||
|
@ -1,5 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# ===================
|
||||
# ====== bspwm ======
|
||||
# ===================
|
||||
|
||||
# Source the colors from wal
|
||||
source "${HOME}/.cache/wal/colors.sh"
|
||||
|
||||
@ -9,6 +13,24 @@ bspc config active_border_color "$color2"
|
||||
bspc config focused_border_color "$color15"
|
||||
bspc config presel_feedback_color "$color1"
|
||||
|
||||
# =================================================
|
||||
# Symlink config files so programs can be started
|
||||
# without referencing the cache directly
|
||||
#
|
||||
# Includes: zathura, termite, dunst
|
||||
# =================================================
|
||||
|
||||
mkdir -p "${HOME}/.config/zathura"
|
||||
mkdir -p "${HOME}/.config/termite"
|
||||
mkdir -p "${HOME}/.config/dunst"
|
||||
ln -sf "${HOME}/.cache/wal/zathurarc" "${HOME}/.config/zathura/zathurarc"
|
||||
ln -sf "${HOME}/.cache/wal/termite" "${HOME}/.config/termite/config"
|
||||
ln -sf "${HOME}/.cache/wal/dunstrc" "${HOME}/.config/dunst/dunstrc"
|
||||
|
||||
# ===================
|
||||
# ====== dunst ======
|
||||
# ===================
|
||||
|
||||
# Restart dunst with the new color scheme
|
||||
pkill dunst
|
||||
dunst -conf "${HOME}/.cache/wal/dunstrc" &
|
||||
dunst &
|
||||
|
@ -1,3 +1,8 @@
|
||||
# New Start: A modern Arch workflow built with an emphasis on functionality.
|
||||
# Copyright (C) 2018 Donovan Glover
|
||||
|
||||
# NOTE: This file is automatically generated by pywal. Do not edit it by hand.
|
||||
|
||||
[global]
|
||||
# Make the width 3740 (3840 - 100), have 50 left margin and 95 above
|
||||
geometry = "3740x5-50+95"
|
||||
|
@ -1,6 +1,8 @@
|
||||
# New Start: A modern Arch workflow built with an emphasis on functionality.
|
||||
# Copyright (C) 2017-2018 Donovan Glover
|
||||
|
||||
# NOTE: This file is automatically generated by pywal. Do not edit it by hand.
|
||||
|
||||
[options]
|
||||
font = Hack 11
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
# New Start: A modern Arch workflow built with an emphasis on functionality.
|
||||
# Copyright (C) 2017-2018 Donovan Glover
|
||||
|
||||
# NOTE: This file is automatically generated by pywal. Do not edit it by hand.
|
||||
|
||||
set font "Hack 12" # Use Hack as our font of choice
|
||||
set guioptions "v" # Show a "progress bar" when scrolling up/down
|
||||
set adjust-open "width" # Make documents take up all the available space by default
|
||||
|
Loading…
Reference in New Issue
Block a user