Skip to content

Instantly share code, notes, and snippets.

@NNBnh
Created February 22, 2021 04:59
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NNBnh/5f6e601a6a82a6ed43b1959698758141 to your computer and use it in GitHub Desktop.
Save NNBnh/5f6e601a6a82a6ed43b1959698758141 to your computer and use it in GitHub Desktop.
font = "Bmono 12"
geometry = "0x0-62-62"
separator_height = 2
padding = 2
horizontal_padding = 2
frame_width = 2
markup = full
format = "<b>%s</b>\n%b"
icon_path = ""
icon_position = left
max_icon_size = 64
show_indicators = false
separator_color = frame
lf = #D8D8D8
nf = #D8D8D8
cf = #D8D8D8
lb = #181818E5
nb = #181818E5
cb = #181818E5
lfr = #585858
nfr = #585858
cfr = #AB4642
lto = 1
nto = 3
cto = 5
mouse_left_click = do_action
mouse_right_click = close_current
mouse_middle_click = close_current
@NNBnh
Copy link
Author

NNBnh commented Feb 28, 2021

Here is a screenshot of the entire desktop:

screeny_2021-02-22_11-48-35

BTW, check out my Đotfiles !!!

Đotfiles

@mangkoran
Copy link

Awesome work! I wonder how to display calendar in dunst?

@NNBnh
Copy link
Author

NNBnh commented May 8, 2021

Here is the script that i use, just ignore the path where i involve a Sway command (swaymsg):

#!/bin/sh


# Start
[ "$(dunstify --replace '999999999' --action 'cal,more' "$(date +'%I:%M %p')" "$(swaymsg --raw --type get_workspaces | jq --raw-output '.[] | "\(.focused)\(.name)\(.focused)"' | sed -e 's/^false//g' -e 's/false$//g' -e 's/^true/<u>/g' -e 's/true$/<\/u>/g' | tr '\n' ' ')")" = 'cal' ] && {
	DAY=$(date +'%e')

	dunstify 'Calendar' "$(cal | sed -e "s/$DAY\b/<u>$DAY<\/u>/g")"
}


exit 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment