From c1d195baf80721df18d397735a3421c43a8c84f7 Mon Sep 17 00:00:00 2001 From: ziro Date: Sun, 14 Jun 2020 17:08:25 +0700 Subject: [PATCH] + Fix rofi misalligned problem + Mutt -> Mutt-wizard (luke smith's mutt script) transitiion --- .config/mutt/muttacc-def | 5 -- .config/mutt/muttcolor | 68 ---------------------------- .config/mutt/muttrc | 37 ++------------- .config/polybar/config | 2 + .config/rofi/theme/Android/five.rasi | 2 +- .scripts/prompt | 10 ++-- 6 files changed, 13 insertions(+), 111 deletions(-) delete mode 100644 .config/mutt/muttacc-def delete mode 100644 .config/mutt/muttcolor diff --git a/.config/mutt/muttacc-def b/.config/mutt/muttacc-def deleted file mode 100644 index 4605999..0000000 --- a/.config/mutt/muttacc-def +++ /dev/null @@ -1,5 +0,0 @@ -#account -set imap_user = '' -set imap_pass = '' -set smtp_url = '' -set smtp_pass = '' diff --git a/.config/mutt/muttcolor b/.config/mutt/muttcolor deleted file mode 100644 index 3324a51..0000000 --- a/.config/mutt/muttcolor +++ /dev/null @@ -1,68 +0,0 @@ -# vim: filetype=neomuttrc -# Default index colors: -color index yellow default '.*' -color index_author red default '.*' -color index_number blue default -color index_subject cyan default '.*' - -# For new mail: -color index brightyellow black "~N" -color index_author brightred black "~N" -color index_subject brightcyan black "~N" - -# Header colors: -color header blue default ".*" -color header brightmagenta default "^(From)" -color header brightcyan default "^(Subject)" -color header brightwhite default "^(CC|BCC)" - -mono bold bold -mono underline underline -mono indicator reverse -mono error bold -color normal default default -color indicator brightblack white -color sidebar_highlight red default -color sidebar_divider brightblack black -color sidebar_flagged red black -color sidebar_new green black -color normal brightyellow default -color error red default -color tilde black default -color message cyan default -color markers red white -color attachment white default -color search brightmagenta default -color status brightyellow black -color hdrdefault brightgreen default -color quoted green default -color quoted1 blue default -color quoted2 cyan default -color quoted3 yellow default -color quoted4 red default -color quoted5 brightred default -color signature brightgreen default -color bold black default -color underline black default -color normal default default - -color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses -color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL -color body green default "\`[^\`]*\`" # Green text between ` and ` -color body brightblue default "^# \.*" # Headings as bold blue -color body brightcyan default "^## \.*" # Subheadings as bold cyan -color body brightgreen default "^### \.*" # Subsubheadings as bold green -color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow -color body brightcyan default "[;:][-o][)/(|]" # emoticons -color body brightcyan default "[;:][)(|]" # emoticons -color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon? -color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon? -color body red default "(BAD signature)" -color body cyan default "(Good signature)" -color body brightblack default "^gpg: Good signature .*" -color body brightyellow default "^gpg: " -color body brightyellow red "^gpg: BAD signature from.*" -mono body bold "^gpg: Good signature" -mono body bold "^gpg: BAD signature from.*" -color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[09]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" - diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc index cccac0f..3c0e543 100644 --- a/.config/mutt/muttrc +++ b/.config/mutt/muttrc @@ -1,34 +1,7 @@ -# vim: filetype=neomuttrc -#source ~/.config/mutt/muttacc-def -source ~/.config/mutt/muttacc -source ~/.config/mutt/muttcolor -set date_format="%Y-%m-%d %T" -set index_format="%2C %zs %?X?A& ? %D %-15.15F %s (%-4.4c)" -set sort = 'reverse-date' - -set sidebar_visible = yes -set sidebar_width = 20 -set sidebar_short_path = yes -set sidebar_next_new_wrap = yes -set mail_check_stats -set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?' -bind index,pager \Ck sidebar-prev -bind index,pager \Cj sidebar-next -bind index,pager \Co sidebar-open -bind index,pager \Cp sidebar-prev-new -bind index,pager \Cn sidebar-next-new -bind index,pager B sidebar-toggle-visible - -set folder = imaps://imap.gmail.com/ -set spoolfile = +INBOX -set record = "+[Gmail]/Sent Mail" -set postponed = "+[Gmail]/Drafts" -mailboxes = +INBOX =[Gmail]/Drafts ="[Gmail]/Sent Mail" -# set imap_check_subscribed - -set header_cache = ~/.cache/mutt -set message_cachedir = "~/.cache/mutt" - -set mail_check = 120 +# mutt-wizard stuff +source /usr/local/share/mutt-wizard/mutt-wizard.muttrc # mw-autogenerated +source /home/ziro/.config/mutt/accounts/1-aap.muttrc # mw-autogenerated +macro index,pager i1 'source /home/ziro/.config/mutt/accounts/1-aap.muttrc!;' "switch to 191420078@student.binadarma.ac.id" # mw-autogenerated +macro index,pager i2 'source /home/ziro/.config/mutt/accounts/2-aap_personal.muttrc!;' "switch to palembani@gmail.com" # mw-autogenerated diff --git a/.config/polybar/config b/.config/polybar/config index 83519eb..f31df30 100755 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -742,6 +742,7 @@ format-prefix-font = "5" format-foreground = ${colors.alert} format-background = ${colors.background} format-padding = 1 +click-left = notify-send "$(cov -H)" & [module/covSem] type = custom/script @@ -755,6 +756,7 @@ format-prefix-font = "5" format-foreground = ${colors.spotgreen} format-background = ${colors.background} format-padding = 1 +click-left = notify-send "$(cov -H)" & [module/currency] type = custom/script diff --git a/.config/rofi/theme/Android/five.rasi b/.config/rofi/theme/Android/five.rasi index 24da578..a11f773 100755 --- a/.config/rofi/theme/Android/five.rasi +++ b/.config/rofi/theme/Android/five.rasi @@ -22,7 +22,7 @@ #window { width: 6%; - height: 46.6%; + height: 45.8%; anchor: east; location: east; x-offset: -1%; diff --git a/.scripts/prompt b/.scripts/prompt index ef27f04..fe065dd 100755 --- a/.scripts/prompt +++ b/.scripts/prompt @@ -1,21 +1,21 @@ #!/bin/sh #--- Option ------------------ -cancel="" +lock="" suspend="" log_out="" restart="" shutdown="" #--- Choices ----------------- -choice="$cancel -$shutdown +choice="$shutdown $restart +$lock $suspend $log_out" -chosen=$(echo -en "$choice" | rofi -selected-row 0 -dmenu -i -theme ~/.config/rofi/theme/Android/five.rasi) +chosen=$(echo -en "$choice" | rofi -selected-row 2 -dmenu -i -theme ~/.config/rofi/theme/Android/five.rasi) case "$chosen" in - $cancel) ;; + $lock) slock;; $log_out) bspc quit ;; $suspend) systemctl suspend ;; $restart) systemctl reboot ;;