Move scripts into respective directories
Having a general script folder makes little sense if the scripts are targeted to specific applications. This commit moved every script that solely, or mainly (like ueberzug), targets a single application into that respective stow module.
This commit is contained in:
parent
7d60a61565
commit
97f7fcbbd6
10 changed files with 2 additions and 44 deletions
|
@ -94,8 +94,8 @@ smart_gaps on
|
|||
gaps inner 0
|
||||
gaps outer 0
|
||||
# enable / disable gaps (g disables, G enables)
|
||||
bindsym $mod+shift+g gaps inner current set 15; gaps outer current set 0; exec picom_toggle_inactive_opacity on
|
||||
bindsym $mod+g gaps inner current set 0; gaps outer current set 0; exec picom_toggle_inactive_opacity off
|
||||
bindsym $mod+shift+g gaps inner current set 15; gaps outer current set 0
|
||||
bindsym $mod+g gaps inner current set 0; gaps outer current set 0
|
||||
|
||||
# Define names for default workspaces for which we configure key bindings later on.
|
||||
# We use variables to avoid repeating the names in multiple places.
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/sh
|
||||
# A dmenu binary prompt script.
|
||||
# Gives a dmenu prompt labeled with $1 to perform command $2.
|
||||
# For example:
|
||||
# `./prompt "Do you want to shutdown?" "shutdown -h now"`
|
||||
|
||||
if [[ -z $3 ]] || [[ $3 == "normal" ]]; then
|
||||
[ "$(printf "No\\nYes" | dmenu -i -p "$1")" = "Yes" ] && $2
|
||||
elif [[ $3 == "success" ]]; then
|
||||
[ "$(printf "No\\nYes" | dmenu -i -p "$1" -nb webgreen -sb greenyellow -sf black -nf white )" = "Yes" ] && $2
|
||||
elif [[ $3 == "warn" ]] || [[ $3 == "warning" ]]; then
|
||||
[ "$(printf "No\\nYes" | dmenu -i -p "$1" -nb goldenrod -sb gold -sf black -nf white )" = "Yes" ] && $2
|
||||
elif [[ $3 == "danger" ]]; then
|
||||
[ "$(printf "No\\nYes" | dmenu -i -p "$1" -nb darkred -sb red -sf white -nf gray )" = "Yes" ] && $2
|
||||
fi
|
|
@ -1,27 +0,0 @@
|
|||
#!/bin/bash
|
||||
# toggle the translucency of inactive windows in the picom compositor
|
||||
# by substituting the true/false setting in the picom config file.
|
||||
# picom will automatically reload its settings on any config file changes.
|
||||
#
|
||||
# scipt can be called without arguments to toggle the value;
|
||||
# or with on / off to set it to translucent / opaque, respectively.
|
||||
|
||||
piconf="$XDG_CONFIG_HOME"/picom/picom.conf
|
||||
|
||||
line=$(grep -n "inactive-opacity-override" "$piconf")
|
||||
|
||||
IFS=: read -r line text < <(grep -n "inactive-opacity-override" "$piconf")
|
||||
|
||||
_replace() { # line file old new
|
||||
sed -i "$1 s/$3/$4/" "$2"
|
||||
}
|
||||
|
||||
if [ "$1" = "off" ]; then
|
||||
_replace "$line" "$piconf" "true" "false"
|
||||
elif [ "$1" = "on" ]; then
|
||||
_replace "$line" "$piconf" "false" "true"
|
||||
elif echo "$text" | grep -q "true"; then
|
||||
_replace "$line" "$piconf" "true" "false"
|
||||
elif echo "$text" | grep -q "false"; then
|
||||
_replace "$line" "$piconf" "false" "true"
|
||||
fi
|
Loading…
Reference in a new issue