some dunst and wal fixes, fix #1029
This commit is contained in:
parent
ab8ab913da
commit
11b7fb7b45
3 changed files with 49 additions and 299 deletions
|
@ -1,152 +1,27 @@
|
||||||
[global]
|
[global]
|
||||||
monitor = 0
|
monitor = 0
|
||||||
follow = keyboard
|
follow = keyboard
|
||||||
geometry = "350x5-0+24"
|
width = 370
|
||||||
indicate_hidden = yes
|
height = 350
|
||||||
shrink = yes
|
offset = 0x19
|
||||||
transparency = 20
|
padding = 2
|
||||||
notification_height = 0
|
horizontal_padding = 2
|
||||||
separator_height = 2
|
transparency = 25
|
||||||
padding = 0
|
font = Monospace 12
|
||||||
horizontal_padding = 8
|
|
||||||
frame_width = 3
|
|
||||||
frame_color = "#282828"
|
|
||||||
|
|
||||||
# Define a color for the separator.
|
|
||||||
# possible values are:
|
|
||||||
# * auto: dunst tries to find a color fitting to the background;
|
|
||||||
# * foreground: use the same color as the foreground;
|
|
||||||
# * frame: use the same color as the frame;
|
|
||||||
# * anything else will be interpreted as a X color.
|
|
||||||
separator_color = frame
|
|
||||||
|
|
||||||
# Sort messages by urgency.
|
|
||||||
sort = yes
|
|
||||||
|
|
||||||
idle_threshold = 120
|
|
||||||
font = Monospace 14
|
|
||||||
line_height = 0
|
|
||||||
markup = full
|
|
||||||
|
|
||||||
# The format of the message. Possible variables are:
|
|
||||||
# %a appname
|
|
||||||
# %s summary
|
|
||||||
# %b body
|
|
||||||
# %i iconname (including its path)
|
|
||||||
# %I iconname (without its path)
|
|
||||||
# %p progress value if set ([ 0%] to [100%]) or nothing
|
|
||||||
# %n progress value if set without any extra characters
|
|
||||||
# %% Literal %
|
|
||||||
# Markup is allowed
|
|
||||||
format = "<b>%s</b>\n%b"
|
format = "<b>%s</b>\n%b"
|
||||||
|
|
||||||
alignment = left
|
|
||||||
show_age_threshold = 60
|
|
||||||
word_wrap = yes
|
|
||||||
ellipsize = middle
|
|
||||||
ignore_newline = no
|
|
||||||
stack_duplicates = true
|
|
||||||
hide_duplicate_count = true
|
|
||||||
show_indicators = yes
|
|
||||||
icon_position = left
|
|
||||||
max_icon_size = 40
|
|
||||||
#icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/:/usr/share/icons/Adwaita/256x256/status/
|
|
||||||
sticky_history = yes
|
|
||||||
history_length = 20
|
|
||||||
dmenu = /usr/bin/dmenu -p dunst:
|
|
||||||
browser = /usr/bin/firefox -new-tab
|
|
||||||
|
|
||||||
# Always run rule-defined scripts, even if the notification is suppressed
|
|
||||||
always_run_script = true
|
|
||||||
|
|
||||||
title = Dunst
|
|
||||||
class = Dunst
|
|
||||||
startup_notification = false
|
|
||||||
force_xinerama = false
|
|
||||||
[experimental]
|
|
||||||
per_monitor_dpi = false
|
|
||||||
|
|
||||||
[shortcuts]
|
|
||||||
close = ctrl+space
|
|
||||||
close_all = ctrl+shift+space
|
|
||||||
history = ctrl+grave
|
|
||||||
context = ctrl+shift+period
|
|
||||||
|
|
||||||
[urgency_low]
|
[urgency_low]
|
||||||
# IMPORTANT: colors have to be defined in quotation marks.
|
background = "#040509"
|
||||||
# Otherwise the "#" and following would be interpreted as a comment.
|
foreground = "#70896e"
|
||||||
background = "#282828"
|
timeout = 3
|
||||||
foreground = "#928374"
|
|
||||||
timeout = 5
|
|
||||||
# Icon for notifications with low urgency, uncomment to enable
|
|
||||||
#icon = /path/to/icon
|
|
||||||
|
|
||||||
[urgency_normal]
|
[urgency_normal]
|
||||||
background = "#458588"
|
foreground = "#a0c49e"
|
||||||
foreground = "#ebdbb2"
|
background = "#545069"
|
||||||
timeout = 5
|
timeout = 5
|
||||||
|
|
||||||
[urgency_critical]
|
[urgency_critical]
|
||||||
background = "#cc2421"
|
background = "#4D314E"
|
||||||
foreground = "#ebdbb2"
|
foreground = "#a0c49e"
|
||||||
frame_color = "#fabd2f"
|
frame_color = "#544858"
|
||||||
timeout = 0
|
timeout = 10
|
||||||
|
|
||||||
# Every section that isn't one of the above is interpreted as a rules to
|
|
||||||
# override settings for certain messages.
|
|
||||||
# Messages can be matched by "appname", "summary", "body", "icon", "category",
|
|
||||||
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
|
|
||||||
# "background", "new_icon" and "format".
|
|
||||||
# Shell-like globbing will get expanded.
|
|
||||||
#
|
|
||||||
# SCRIPTING
|
|
||||||
# You can specify a script that gets run when the rule matches by
|
|
||||||
# setting the "script" option.
|
|
||||||
# The script will be called as follows:
|
|
||||||
# script appname summary body icon urgency
|
|
||||||
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
|
|
||||||
#
|
|
||||||
# NOTE: if you don't want a notification to be displayed, set the format
|
|
||||||
# to "".
|
|
||||||
# NOTE: It might be helpful to run dunst -print in a terminal in order
|
|
||||||
# to find fitting options for rules.
|
|
||||||
|
|
||||||
#[espeak]
|
|
||||||
# summary = "*"
|
|
||||||
# script = dunst_espeak.sh
|
|
||||||
|
|
||||||
#[script-test]
|
|
||||||
# summary = "*script*"
|
|
||||||
# script = dunst_test.sh
|
|
||||||
|
|
||||||
#[ignore]
|
|
||||||
# # This notification will not be displayed
|
|
||||||
# summary = "foobar"
|
|
||||||
# format = ""
|
|
||||||
|
|
||||||
#[history-ignore]
|
|
||||||
# # This notification will not be saved in history
|
|
||||||
# summary = "foobar"
|
|
||||||
# history_ignore = yes
|
|
||||||
|
|
||||||
#[signed_on]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = "*signed on*"
|
|
||||||
# urgency = low
|
|
||||||
#
|
|
||||||
#[signed_off]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = *signed off*
|
|
||||||
# urgency = low
|
|
||||||
#
|
|
||||||
#[says]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = *says*
|
|
||||||
# urgency = critical
|
|
||||||
#
|
|
||||||
#[twitter]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = *twitter.com*
|
|
||||||
# urgency = normal
|
|
||||||
#
|
|
||||||
# vim: ft=cfg
|
|
||||||
|
|
|
@ -1,16 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
dunstconf="${HOME}/.config/dunst/dunstrc"
|
dunstconf="${XDG_CONFIG_HOME:-$HOME/.config}/dunst/dunstrc"
|
||||||
zathuraconf="${HOME}/.config/zathura/zathurarc"
|
zathuraconf="${XDG_CONFIG_HOME:-$HOME/.config}/zathura/zathurarc"
|
||||||
|
|
||||||
source "${HOME}/.cache/wal/colors.sh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/wal/colors.sh"
|
||||||
|
|
||||||
|
mkdir -p "${dunstconf##*/}" "${zathuraconf##*/}"
|
||||||
|
|
||||||
mkdir -p "$dunstconf"
|
|
||||||
mkdir -p "$zathuraconf"
|
|
||||||
mv -n "$dunstconf" "$dunstconf.bak"
|
mv -n "$dunstconf" "$dunstconf.bak"
|
||||||
mv -n "$zathuraconf" "$zathuraconf.bak"
|
mv -n "$zathuraconf" "$zathuraconf.bak"
|
||||||
ln -sf "${HOME}/.cache/wal/dunstrc" "$dunstconf"
|
|
||||||
ln -sf "${HOME}/.cache/wal/zathurarc" "$zathuraconf"
|
ln -sf "${XDG_CACHE_HOME:-$HOME/.cache}/wal/dunstrc" "$dunstconf"
|
||||||
|
ln -sf "${XDG_CACHE_HOME:-$HOME/.cache}/wal/zathurarc" "$zathuraconf"
|
||||||
|
|
||||||
fix_sequences() {
|
fix_sequences() {
|
||||||
e=$'\e'
|
e=$'\e'
|
||||||
|
@ -19,14 +20,13 @@ fix_sequences() {
|
||||||
background_color="$(echo -e "${sequences}\c" | grep --color=never -Eo "${e}]11[^${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}")"
|
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}*
|
for term in /dev/pts/{0..9}*; do
|
||||||
do
|
echo -e "\e]4;256;${cursor_color}\a\c" > "${term}" 2>/dev/null
|
||||||
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;258;${background_color}\a\c" > "${term}" 2>/dev/null
|
echo -e "\e]4;259;${foreground_color}\a\c" > "${term}" 2>/dev/null
|
||||||
echo -e "\e]4;259;${foreground_color}\a\c" > "${term}" 2>/dev/null
|
done
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fix_sequences <"${HOME}/.cache/wal/sequences"
|
fix_sequences <"${XDG_CACHE_HOME:-$HOME/.cache}/wal/sequences"
|
||||||
|
|
||||||
pkill dunst; dunst &
|
pkill dunst; setsid -f dunst
|
||||||
|
|
|
@ -1,152 +1,27 @@
|
||||||
[global]
|
[global]
|
||||||
monitor = 0
|
monitor = 0
|
||||||
follow = keyboard
|
follow = keyboard
|
||||||
geometry = "350x5-0+24"
|
width = 370
|
||||||
indicate_hidden = yes
|
height = 350
|
||||||
shrink = yes
|
offset = 0x19
|
||||||
transparency = 20
|
padding = 2
|
||||||
notification_height = 0
|
horizontal_padding = 2
|
||||||
separator_height = 2
|
transparency = 25
|
||||||
padding = 0
|
font = Monospace 12
|
||||||
horizontal_padding = 8
|
|
||||||
frame_width = 3
|
|
||||||
frame_color = "{color4}"
|
|
||||||
|
|
||||||
# Define a color for the separator.
|
|
||||||
# possible values are:
|
|
||||||
# * auto: dunst tries to find a color fitting to the background;
|
|
||||||
# * foreground: use the same color as the foreground;
|
|
||||||
# * frame: use the same color as the frame;
|
|
||||||
# * anything else will be interpreted as a X color.
|
|
||||||
separator_color = frame
|
|
||||||
|
|
||||||
# Sort messages by urgency.
|
|
||||||
sort = yes
|
|
||||||
|
|
||||||
idle_threshold = 120
|
|
||||||
font = Monospace 14
|
|
||||||
line_height = 0
|
|
||||||
markup = full
|
|
||||||
|
|
||||||
# The format of the message. Possible variables are:
|
|
||||||
# %a appname
|
|
||||||
# %s summary
|
|
||||||
# %b body
|
|
||||||
# %i iconname (including its path)
|
|
||||||
# %I iconname (without its path)
|
|
||||||
# %p progress value if set ([ 0%] to [100%]) or nothing
|
|
||||||
# %n progress value if set without any extra characters
|
|
||||||
# %% Literal %
|
|
||||||
# Markup is allowed
|
|
||||||
format = "<b>%s</b>\n%b"
|
format = "<b>%s</b>\n%b"
|
||||||
|
|
||||||
alignment = left
|
|
||||||
show_age_threshold = 60
|
|
||||||
word_wrap = yes
|
|
||||||
ellipsize = middle
|
|
||||||
ignore_newline = no
|
|
||||||
stack_duplicates = true
|
|
||||||
hide_duplicate_count = true
|
|
||||||
show_indicators = yes
|
|
||||||
icon_position = left
|
|
||||||
max_icon_size = 40
|
|
||||||
#icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/:/usr/share/icons/Adwaita/256x256/status/
|
|
||||||
sticky_history = yes
|
|
||||||
history_length = 20
|
|
||||||
dmenu = /usr/bin/dmenu -p dunst:
|
|
||||||
browser = /usr/bin/firefox -new-tab
|
|
||||||
|
|
||||||
# Always run rule-defined scripts, even if the notification is suppressed
|
|
||||||
always_run_script = true
|
|
||||||
|
|
||||||
title = Dunst
|
|
||||||
class = Dunst
|
|
||||||
startup_notification = false
|
|
||||||
force_xinerama = false
|
|
||||||
[experimental]
|
|
||||||
per_monitor_dpi = false
|
|
||||||
|
|
||||||
[shortcuts]
|
|
||||||
close = ctrl+space
|
|
||||||
close_all = ctrl+shift+space
|
|
||||||
history = ctrl+grave
|
|
||||||
context = ctrl+shift+period
|
|
||||||
|
|
||||||
[urgency_low]
|
[urgency_low]
|
||||||
# IMPORTANT: colors have to be defined in quotation marks.
|
background = "{color0}" # color0
|
||||||
# Otherwise the "#" and following would be interpreted as a comment.
|
foreground = "{color8}" # color8
|
||||||
background = "{background}"
|
timeout = 3
|
||||||
foreground = "{foreground}"
|
|
||||||
timeout = 5
|
|
||||||
# Icon for notifications with low urgency, uncomment to enable
|
|
||||||
#icon = /path/to/icon
|
|
||||||
|
|
||||||
[urgency_normal]
|
[urgency_normal]
|
||||||
background = "{background}"
|
foreground = "{color15}" # color15
|
||||||
foreground = "{foreground}"
|
background = "{color4}" # color4
|
||||||
timeout = 5
|
timeout = 5
|
||||||
|
|
||||||
[urgency_critical]
|
[urgency_critical]
|
||||||
background = "{background}"
|
background = "{color1}" # color1
|
||||||
foreground = "{foreground}"
|
foreground = "{color15}" # color15
|
||||||
frame_color = "#fabd2f"
|
frame_color = "{color11}" # color11
|
||||||
timeout = 0
|
timeout = 10
|
||||||
|
|
||||||
# Every section that isn't one of the above is interpreted as a rules to
|
|
||||||
# override settings for certain messages.
|
|
||||||
# Messages can be matched by "appname", "summary", "body", "icon", "category",
|
|
||||||
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
|
|
||||||
# "background", "new_icon" and "format".
|
|
||||||
# Shell-like globbing will get expanded.
|
|
||||||
#
|
|
||||||
# SCRIPTING
|
|
||||||
# You can specify a script that gets run when the rule matches by
|
|
||||||
# setting the "script" option.
|
|
||||||
# The script will be called as follows:
|
|
||||||
# script appname summary body icon urgency
|
|
||||||
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
|
|
||||||
#
|
|
||||||
# NOTE: if you don't want a notification to be displayed, set the format
|
|
||||||
# to "".
|
|
||||||
# NOTE: It might be helpful to run dunst -print in a terminal in order
|
|
||||||
# to find fitting options for rules.
|
|
||||||
|
|
||||||
#[espeak]
|
|
||||||
# summary = "*"
|
|
||||||
# script = dunst_espeak.sh
|
|
||||||
|
|
||||||
#[script-test]
|
|
||||||
# summary = "*script*"
|
|
||||||
# script = dunst_test.sh
|
|
||||||
|
|
||||||
#[ignore]
|
|
||||||
# # This notification will not be displayed
|
|
||||||
# summary = "foobar"
|
|
||||||
# format = ""
|
|
||||||
|
|
||||||
#[history-ignore]
|
|
||||||
# # This notification will not be saved in history
|
|
||||||
# summary = "foobar"
|
|
||||||
# history_ignore = yes
|
|
||||||
|
|
||||||
#[signed_on]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = "*signed on*"
|
|
||||||
# urgency = low
|
|
||||||
#
|
|
||||||
#[signed_off]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = *signed off*
|
|
||||||
# urgency = low
|
|
||||||
#
|
|
||||||
#[says]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = *says*
|
|
||||||
# urgency = critical
|
|
||||||
#
|
|
||||||
#[twitter]
|
|
||||||
# appname = Pidgin
|
|
||||||
# summary = *twitter.com*
|
|
||||||
# urgency = normal
|
|
||||||
#
|
|
||||||
# vim: ft=cfg
|
|
||||||
|
|
Loading…
Reference in a new issue