dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c71754df895bd9319169c6f607a7525b61bcebdf
parent 68ba026b24a8cff2ae425ba3a482e367bdb68dd5
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue,  8 Jan 2019 00:19:32 -0500

setbg script for centrally editing wallpaper cmd

Diffstat:
M.config/i3/config | 2+-
M.config/sxiv/exec/key-handler | 2+-
M.scripts/i3cmds/displayselect | 9+++------
A.scripts/tools/setbg | 4++++
4 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/.config/i3/config b/.config/i3/config @@ -45,7 +45,7 @@ for_window [instance="dropdown_*"] move position center # #---Starting External Scripts---# # # Setting the background: -exec --no-startup-id feh --bg-scale ~/.config/wall.png +exec --no-startup-id setbg # Starts dunst for notifications: exec --no-startup-id dunst # Composite manager: diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler @@ -4,7 +4,7 @@ do case "$1" in "w") cp "$file" ~/.config/wall.png && - feh --bg-scale "$HOME/.config/wall.png" + setbg notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." ;; "c") [ -z "$destdir" ] && destdir="$(sed "s/\s.*#.*$//;/^\s*$/d" ~/.bmdirs | awk '{print $2}' | dmenu -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")" diff --git a/.scripts/i3cmds/displayselect b/.scripts/i3cmds/displayselect @@ -68,9 +68,6 @@ case "$chosen" in *) xrandr --output "$chosen" --auto --scale 1.0x1.0 $(echo "$screens" | grep -v "$chosen" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;; esac -# Fix feh background if screen size/arangement has changed. -feh --bg-scale "$HOME/.config/wall.png" -# Re-remap keys if keyboard added (for laptop bases) -remaps -# Restart dunst to ensure proper location on screen -pgrep -x dunst >/dev/null && killall dunst && setsid dunst & +setbg # Fix background if screen size/arangement has changed. +remaps # Re-remap keys if keyboard added (for laptop bases) +pgrep -x dunst >/dev/null && killall dunst && setsid dunst & # Restart dunst to ensure proper location on screen diff --git a/.scripts/tools/setbg b/.scripts/tools/setbg @@ -0,0 +1,4 @@ +#!/bin/sh +# Sets the background. Many scripts need to do this, but I've put it here so you can easily change all their actions. +#setroot -z ~/.config/wall.png # with setroot +feh --bg-scale "$HOME/.config/wall.png" # feh