From d7b73f7126e97172516cf4ae7469ca3ad2e074fe Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Mon, 17 Oct 2022 14:43:53 +0200 Subject: [PATCH] feat: thesis config --- .config/X11/xprofile | 5 +- .config/X11/xresources | 8 +- .config/dunst/dunstrc | 133 ++++++++++-------- .config/mbsync/config | 63 +++------ .config/mimeapps.list | 26 +++- .config/mpd/mpd.conf | 2 +- .config/msmtp/config | 23 --- .../2-david.julien@ens-lyon.fr.muttrc | 6 +- .../accounts/3-david.julien@mailo.com.muttrc | 58 -------- ...-david.julien@centrale-marseille.fr.muttrc | 45 ------ .config/mutt/muttrc | 1 - .config/ncmpcpp/config | 2 +- .config/sxhkd/sxhkdrc | 10 +- .config/zsh/.zshrc | 6 +- .local/bin/displayselect | 2 +- .local/bin/statusbar/sb-internet | 2 +- .local/bin/statusbar/sb-volume | 6 +- .local/src/slock | 2 +- 18 files changed, 140 insertions(+), 260 deletions(-) delete mode 100644 .config/mutt/accounts/3-david.julien@mailo.com.muttrc delete mode 100644 .config/mutt/accounts/4-david.julien@centrale-marseille.fr.muttrc diff --git a/.config/X11/xprofile b/.config/X11/xprofile index 71069e1..4b3b117 100644 --- a/.config/X11/xprofile +++ b/.config/X11/xprofile @@ -18,9 +18,8 @@ xrdb "$XDG_CONFIG_HOME/X11/xresources" xrdb -merge "$XDG_STATE_HOME/xcolors" xautolock -locker slock -time 5 -corners 000- & -xinput set-prop 'Synaptics TM3072-003' 'libinput Tapping Enabled' 1 & -xinput set-prop 'Synaptics TM3072-003' 'libinput Natural Scrolling Enabled' 1 & -xinput set-prop 'Synaptics TM3072-003' 'libinput Accel Speed' 0.4 & +cursor_setup "SYNA30BD:00 06CB:CE08" &> /dev/null & +cursor_setup "PIXART HP Wireless Keyboard and Mouse" &> /dev/null & setxkbmap 'fr(oss)' remaps & sxhkd & diff --git a/.config/X11/xresources b/.config/X11/xresources index 63e2d76..bc47e55 100644 --- a/.config/X11/xresources +++ b/.config/X11/xresources @@ -1,13 +1,13 @@ !! Set a default font and font size as below: -*.font: Iosevka Fixed Slab:size=12 -*.symbols: Symbols Nerd Font:size=11 +*.font: FiraCode Nerd Font Mono:size=14 +*.symbols: FiraCode nerd Font Mono:size=14 /* dwm config */ dwm.borderpx: 2 dwm.gappx: 15 /* st config */ -st.font: Iosevka Fixed Slab:size=14 -st.symbols: Symbols Nerd Font:size=14 +st.font: FiraCode Nerd Font Mono:size=14 +st.symbols: FiraCode Nerd Font:size=14 st.termname: st-256color st.borderpx: 5 diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index aad0cc1..b6b144f 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -1,5 +1,3 @@ -# See dunst(5) for all configuration options - [global] ### Display ### @@ -17,53 +15,39 @@ # # If this option is set to mouse or keyboard, the monitor option # will be ignored. - follow = keyboard + follow = mouse - ### Geometry ### + # The geometry of the window: + # [{width}]x{height}[+/-{x}+/-{y}] + # The geometry of the message window. + # The height is measured in number of notifications everything else + # in pixels. If the width is omitted but the height is given + # ("-geometry x2"), the message window expands over the whole screen + # (dmenu-like). If width is 0, the window expands to the longest + # message displayed. A positive x is measured from the left, a + # negative from the right side of the screen. Y is measured from + # the top and down respectively. + # The width can be negative. In this case the actual width is the + # screen width minus the width defined in within the geometry option. + geometry = "450x50-25+47" - # dynamic width from 0 to 300 - # width = (0, 300) - # constant width of 300 - width = 450 - - # The maximum height of a single notification, excluding the frame. - height = 300 - - # Position the notification in the top right corner - origin = top-right - - # Offset from the origin - offset = 25x47 - - # Scale factor. It is auto-detected if value is 0. - scale = 0 - - # Turn on the progess bar - progress_bar = true - - # Set the progress bar height. This includes the frame, so make sure - # it's at least twice as big as the frame width. - progress_bar_height = 10 - - # Set the frame width of the progress bar - progress_bar_frame_width = 1 - - # Set the minimum width for the progress bar - progress_bar_min_width = 150 - - # Set the maximum width for the progress bar - progress_bar_max_width = 300 - - - # Show how many messages are currently hidden (because of - # notification_limit). + # Show how many messages are currently hidden (because of geometry). indicate_hidden = yes + # Shrink window if it's smaller than the width. Will be ignored if + # width is 0. + shrink = no + # The transparency of the window. Range: [0; 100]. # This option will only work if a compositing window manager is - # present (e.g. xcompmgr, compiz, etc.). (X11 only) + # present (e.g. xcompmgr, compiz, etc.). transparency = 0 + # The height of the entire notification. If the height is smaller + # than the font height and padding combined, it will be raised + # to the font height and padding. + notification_height = 0 + # Draw a line of "separator_height" pixel height between two # notifications. # Set to 0 to disable. @@ -75,9 +59,6 @@ # Horizontal padding. horizontal_padding = 8 - # Padding between text and icon. - text_icon_padding = 0 - # Defines width in pixels of frame around the notification window. # Set to 0 to disable. frame_width = 3 @@ -101,11 +82,11 @@ # Set to 0 to disable. # A client can set the 'transient' hint to bypass this. See the rules # section for how to disable this if necessary - # idle_threshold = 120 + idle_threshold = 120 ### Text ### - font = Iosevka Fixed Slab 14 + font = FiraCode 14 # The spacing between lines. If the height is smaller than the # font height, it will get raised to the font height. @@ -160,7 +141,11 @@ # Set to -1 to disable. show_age_threshold = -1 - # Specify where to make an ellipsis in long lines. + # Split notifications into multiple lines if they don't fit into + # geometry. + word_wrap = yes + + # When word_wrap is set to no, specify where to make an ellipsis in long lines. # Possible values are "start", "middle" and "end". ellipsize = middle @@ -187,7 +172,7 @@ min_icon_size = 0 # Scale larger icons down to this size, set to 0 to disable - max_icon_size = 80 + max_icon_size = 32 # Paths to default icons. icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ @@ -207,7 +192,7 @@ dmenu = /usr/bin/dmenu -p dunst: # Browser for opening urls in context menu. - browser = /usr/bin/xdg-open + browser = /usr/bin/firefox # Always run rule-defined scripts, even if the notification is suppressed always_run_script = true @@ -218,6 +203,20 @@ # Define the class of the windows spawned by dunst class = Dunst + # Print a notification on startup. + # This is mainly for error detection, since dbus (re-)starts dunst + # automatically after a crash. + startup_notification = false + + # Manage dunst's desire for talking + # Can be one of the following values: + # crit: Critical features. Dunst aborts + # warn: Only non-fatal warnings + # mesg: Important Messages + # info: all unimportant stuff + # debug: all less than unimportant stuff + verbosity = mesg + # Define the corner radius of the notification window # in pixel size. If the radius is 0, you have no rounded # corners. @@ -248,14 +247,10 @@ # Defines list of actions for each mouse event # Possible values are: # * none: Don't do anything. - # * do_action: Invoke the action determined by the action_name rule. If there is no - # such action, open the context menu. - # * open_url: If the notification has exactly one url, open it. If there are multiple - # ones, open the context menu. + # * do_action: If the notification has exactly one action, or one is marked as default, + # invoke it. If there are multiple and no default, open the context menu. # * close_current: Close current notification. # * close_all: Close all notifications. - # * context: Open context menu for the notification. - # * context_all: Open context menu for all notifications. # These values can be strung together for each mouse event, and # will be executed in sequence. mouse_left_click = close_current @@ -272,6 +267,27 @@ # where there are multiple screens with very different dpi values. per_monitor_dpi = false +[shortcuts] + + # Shortcuts are specified as [modifier+][modifier+]...key + # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2", + # "mod3" and "mod4" (windows-key). + # Xev might be helpful to find names for keys. + + # Close notification. + close = ctrl+space + + # Close all notifications. + close_all = ctrl+shift+space + + # Redisplay last message(s). + # On the US keyboard layout "grave" is normally above TAB and left + # of "1". Make sure this key actually exists on your keyboard layout, + # e.g. check output of 'xmodmap -pke' + history = ctrl+grave + + # Context menu. + context = ctrl+shift+period [urgency_low] # IMPORTANT: colors have to be defined in quotation marks. @@ -295,7 +311,7 @@ background = "#131616" foreground = "#ea6962" frame_color = "#ea6962" - timeout = 10 + timeout = 0 # Icon for notifications with critical urgency, uncomment to enable #icon = /path/to/icon @@ -324,7 +340,6 @@ # set_transient # timeout # urgency -# action_name # # Shell-like globbing will get expanded. # @@ -339,6 +354,8 @@ # 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. @@ -377,7 +394,7 @@ #[ignore] # # This notification will not be displayed # summary = "foobar" -# skip_display = true +# format = "" #[history-ignore] # # This notification will not be saved in history diff --git a/.config/mbsync/config b/.config/mbsync/config index 244335b..19b554b 100644 --- a/.config/mbsync/config +++ b/.config/mbsync/config @@ -10,13 +10,13 @@ CertificateFile /etc/ssl/certs/ca-certificates.crt MaildirStore david.julien@posteo.net-local Subfolders Verbatim -Path /home/swytch/.local/share/mail/david.julien@posteo.net/ -Inbox /home/swytch/.local/share/mail/david.julien@posteo.net/INBOX +Path /home/julien-d/.local/share/mail/david.julien@posteo.net/ +Inbox /home/julien-d/.local/share/mail/david.julien@posteo.net/INBOX Channel david.julien@posteo.net Expunge Both -Far :david.julien@posteo.net-remote: -Near :david.julien@posteo.net-local: +Master :david.julien@posteo.net-remote: +Slave :david.julien@posteo.net-local: Patterns * !"[Gmail]/All Mail" Create Both SyncState * @@ -36,13 +36,13 @@ CertificateFile /etc/ssl/certs/ca-certificates.crt MaildirStore david.julien@etu.univ-nantes.fr-local Subfolders Verbatim -Path /home/swytch/.local/share/mail/david.julien@etu.univ-nantes.fr/ -Inbox /home/swytch/.local/share/mail/david.julien@etu.univ-nantes.fr/INBOX +Path /home/julien-d/.local/share/mail/david.julien@etu.univ-nantes.fr/ +Inbox /home/julien-d/.local/share/mail/david.julien@etu.univ-nantes.fr/INBOX Channel david.julien@etu.univ-nantes.fr Expunge Both -Far :david.julien@etu.univ-nantes.fr-remote: -Near :david.julien@etu.univ-nantes.fr-local: +Master :david.julien@etu.univ-nantes.fr-remote: +Slave :david.julien@etu.univ-nantes.fr-local: Patterns * !"[Gmail]/All Mail" Create Both SyncState * @@ -50,54 +50,27 @@ MaxMessages 0 ExpireUnread no # End Profile -# Personnal -IMAPStore david.julien@mailo.com-remote -Host mail.mailo.com -Port 993 -User david.julien@mailo.com -PassCmd "pass mailo.com/david.julien" -AuthMechs LOGIN -SSLType IMAPS -CertificateFile /etc/ssl/certs/ca-certificates.crt - -MaildirStore david.julien@mailo.com-local -Subfolders Verbatim -Path /home/swytch/.local/share/mail/david.julien@mailo.com/ -Inbox /home/swytch/.local/share/mail/david.julien@mailo.com/INBOX - -Channel david.julien@mailo.com -Expunge Both -Far :david.julien@mailo.com-remote: -Near :david.julien@mailo.com-local: -Patterns * !"[Gmail]/All Mail" -Create Both -SyncState * -MaxMessages 0 -ExpireUnread no -# End Profile - -# Centrale -IMAPStore david.julien@centrale-marseille.fr-remote -Host imaps.centrale-marseille.fr +# University - old +IMAPStore david.julien@ens-lyon.fr-remote +Host imaps.ens-lyon.fr Port 993 User djulien -PassCmd "pass centrale-marseille.fr/djulien" +PassCmd "pass ens-lyon.fr/djulien" AuthMechs LOGIN SSLType IMAPS CertificateFile /etc/ssl/certs/ca-certificates.crt -MaildirStore david.julien@centrale-marseille.fr-local +MaildirStore david.julien@ens-lyon.fr-local Subfolders Verbatim -Path /home/swytch/.local/share/mail/david.julien@centrale-marseille.fr/ -Inbox /home/swytch/.local/share/mail/david.julien@centrale-marseille.fr/INBOX +Path /home/julien-d/.local/share/mail/david.julien@ens-lyon.fr/ +Inbox /home/julien-d/.local/share/mail/david.julien@ens-lyon.fr/INBOX -Channel david.julien@centrale-marseille.fr +Channel david.julien@ens-lyon.fr Expunge Both -Far :david.julien@centrale-marseille.fr-remote: -Near :david.julien@centrale-marseille.fr-local: +Master :david.julien@ens-lyon.fr-remote: +Slave :david.julien@ens-lyon.fr-local: Patterns * !"[Gmail]/All Mail" Create Both SyncState * MaxMessages 0 ExpireUnread no -# End Profile diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 81be384..643cdda 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -1,8 +1,4 @@ [Default Applications] - -# xdg-open will use these settings to determine how to open filetypes. -# These .desktop entries can also be seen and changed in ~/.local/share/applications/ - text/x-shellscript=text.desktop; x-scheme-handler/magnet=torrent.desktop; application/x-bittorrent=torrent.desktop; @@ -16,3 +12,25 @@ image/gif=img.desktop; application/rss+xml=rss.desktop video/x-matroska=video.desktop inode/directory=file.desktop +x-scheme-handler/http=firefox-esr.desktop +x-scheme-handler/https=firefox-esr.desktop +x-scheme-handler/chrome=firefox-esr.desktop +text/html=firefox-esr.desktop +application/x-extension-htm=firefox-esr.desktop +application/x-extension-html=firefox-esr.desktop +application/x-extension-shtml=firefox-esr.desktop +application/xhtml+xml=firefox-esr.desktop +application/x-extension-xhtml=firefox-esr.desktop +application/x-extension-xht=firefox-esr.desktop + +[Added Associations] +x-scheme-handler/http=firefox-esr.desktop; +x-scheme-handler/https=firefox-esr.desktop; +x-scheme-handler/chrome=firefox-esr.desktop; +text/html=firefox-esr.desktop; +application/x-extension-htm=firefox-esr.desktop; +application/x-extension-html=firefox-esr.desktop; +application/x-extension-shtml=firefox-esr.desktop; +application/xhtml+xml=firefox-esr.desktop; +application/x-extension-xhtml=firefox-esr.desktop; +application/x-extension-xht=firefox-esr.desktop; diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf index afedc3a..0ac3cf2 100644 --- a/.config/mpd/mpd.conf +++ b/.config/mpd/mpd.conf @@ -23,7 +23,7 @@ audio_output { audio_output { type "fifo" - name "my_fifo" + name "Visualize Feed" path "/tmp/mpd.fifo" format "44100:16:2" } diff --git a/.config/msmtp/config b/.config/msmtp/config index 1cfb35f..d513a3c 100644 --- a/.config/msmtp/config +++ b/.config/msmtp/config @@ -19,26 +19,3 @@ auth on tls on tls_trust_file /etc/ssl/certs/ca-certificates.crt logfile /home/swytch/.config/msmtp/msmtp.log - -account david.julien@mailo.com -host mail.mailo.com -port 587 -from david.julien@mailo.com -user david.julien@mailo.com -passwordeval "pass mailo.com/david.julien" -auth on -tls on -tls_trust_file /etc/ssl/certs/ca-certificates.crt -logfile /home/swytch/.config/msmtp/msmtp.log - -account david.julien@centrale-marseille.fr -host smtp.centrale-marseille.fr -port 587 -from david.julien@centrale-marseille.fr -user djulien -passwordeval "pass centrale-marseille.fr/djulien" -auth on -tls on -tls_trust_file /etc/ssl/certs/ca-certificates.crt -logfile /home/swytch/.config/msmtp/msmtp.log - diff --git a/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc b/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc index 9fea223..674cdd5 100644 --- a/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc +++ b/.config/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc @@ -43,9 +43,9 @@ set spoolfile = "+INBOX" macro index,pager gf "=fanfare" "go to fanfare" macro index,pager Mf ";=fanfare" "move mail to fanfare" macro index,pager Cf ";=fanfare" "copy mail to fanfare" -macro index,pager gI "=internship" "go to internship" -macro index,pager MI ";=internship" "move mail to internship" -macro index,pager CI ";=internship" "copy mail to internship" +macro index,pager gT "=thesis" "go to thesis" +macro index,pager MT ";=thesis" "move mail to thesis" +macro index,pager CT ";=thesis" "copy mail to thesis" macro index,pager gm "=MOVEP" "go to MOVEP" macro index,pager Mm ";=MOVEP" "move mail to MOVEP" macro index,pager Cm ";=MOVEP" "copy mail to MOVEP" diff --git a/.config/mutt/accounts/3-david.julien@mailo.com.muttrc b/.config/mutt/accounts/3-david.julien@mailo.com.muttrc deleted file mode 100644 index f9497d2..0000000 --- a/.config/mutt/accounts/3-david.julien@mailo.com.muttrc +++ /dev/null @@ -1,58 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account email@adress.you -set realname = "David JULIEN" -set from = "david.julien@mailo.com" -set sendmail = "msmtp -a david.julien@mailo.com" -alias me david.julien -set folder = "$XDG_DATA_HOME/mail/david.julien@mailo.com" -set header_cache = "$XDG_CACHE_HOME/mutt/david.julien@mailo.com/headers" -set message_cachedir = "$XDG_CACHE_HOME/mutt/david.julien@mailo.com/bodies" -set mbox_type = Maildir - -set crypt_autosign = yes -set pgp_sign_as = "0x86C2FBBE4A4F0F7F" - -bind index,pager gg noop -bind index,pager g noop -bind index,pager M noop -bind index,pager C noop -bind index gg first-entry -unmailboxes * -unalternates * -set signature="$XDG_CONFIG_HOME/mutt/accounts/mailo.signature" -unmacro index o -macro index o "mailsync" "run mbsync to sync david.julien@mailo.com" - -mailboxes "=sent" "=draftbox" "=trash" "=INBOX" "=farigoule" "=promo_fanfare" "=mediapart" "=git" "=sosh" -set record = "+sent" -macro index,pager gs "=sent" "go to sent" -macro index,pager Ms ";=sent" "move mail to sent" -macro index,pager Cs ";=sent" "copy mail to sent" -set postponed = "+draftbox" -macro index,pager gd "=draftbox" "go to drafts" -macro index,pager Md ";=draftbox" "move mail to drafts" -macro index,pager Cd ";=draftbox" "copy mail to drafts" -macro index,pager gt "=trash" "go to trash" -macro index,pager Mt ";=trash" "move mail to trash" -macro index,pager Ct ";=trash" "copy mail to trash" -set trash = "+trash" -macro index,pager gi "=INBOX" "go to inbox" -macro index,pager Mi ";=INBOX" "move mail to inbox" -macro index,pager Ci ";=INBOX" "copy mail to inbox" -set spoolfile = "+INBOX" - -macro index,pager gf "=farigoule" "go to farigoule" -macro index,pager Mf ";=farigoule" "move mail to farigoule" -macro index,pager Cf ";=farigoule" "copy mail to farigoule" -macro index,pager gp "=promo_fanfare" "go to promo_fanfare" -macro index,pager Mp ";=promo_fanfare" "move mail to promo_fanfare" -macro index,pager Cp ";=promo_fanfare" "copy mail to promo_fanfare" -macro index,pager gm "=mediapart" "go to mediapart" -macro index,pager Mm ";=mediapart" "move mail to mediapart" -macro index,pager Cm ";=mediapart" "copy mail to mediapart" -macro index,pager gg "=git" "go to git" -macro index,pager Mg ";=git" "move mail to git" -macro index,pager Cg ";=git" "copy mail to git" -macro index,pager gh "=sosh" "go to sosh" -macro index,pager Mh ";=sosh" "move mail to sosh" -macro index,pager Ch ";=sosh" "copy mail to sosh" diff --git a/.config/mutt/accounts/4-david.julien@centrale-marseille.fr.muttrc b/.config/mutt/accounts/4-david.julien@centrale-marseille.fr.muttrc deleted file mode 100644 index 7e6fcb1..0000000 --- a/.config/mutt/accounts/4-david.julien@centrale-marseille.fr.muttrc +++ /dev/null @@ -1,45 +0,0 @@ -# vim: filetype=neomuttrc -# muttrc file for account david.julien@centrale-marseille.fr -set realname = "Smecta" -set from = "david.julien@centrale-marseille.fr" -set sendmail = "msmtp -a david.julien@centrale-marseille.fr" -alias me david.julien -set folder = "$XDG_DATA_HOME/mail/david.julien@centrale-marseille.fr" -set header_cache = "$XDG_CACHE_HOME/mutt/david.julien@centrale-marseille.fr/headers" -set message_cachedir = "$XDG_CACHE_HOME/mutt/david.julien@centrale-marseille.fr/bodies" -set mbox_type = Maildir - -set crypt_autosign = no -set pgp_sign_as = "0x9F46CD164AE1E813" - -bind index,pager gg noop -bind index,pager g noop -bind index,pager M noop -bind index,pager C noop -bind index gg first-entry -unmailboxes * -unalternates * -set signature="$XDG_CONFIG_HOME/mutt/accounts/centrale.signature" -unmacro index o -macro index o "mailsync" "run mbsync to sync david.julien@centrale-marseille.fr" - -mailboxes "=Sent" "=Drafts" "=INBOX" "=Trash" "=Fanfare" -set record = "+Sent" -macro index,pager gs "=Sent" "go to sent" -macro index,pager Ms ";=Sent" "move mail to sent" -macro index,pager Cs ";=Sent" "copy mail to sent" -set postponed = "+Drafts" -macro index,pager gd "=Drafts" "go to drafts" -macro index,pager Md ";=Drafts" "move mail to drafts" -macro index,pager Cd ";=Drafts" "copy mail to drafts" -macro index,pager gt "=Trash" "go to trash" -macro index,pager Mt ";=Trash" "move mail to trash" -macro index,pager Ct ";=Trash" "copy mail to trash" -set trash = "+Trash" -macro index,pager gi "=INBOX" "go to inbox" -macro index,pager Mi ";=INBOX" "move mail to inbox" -macro index,pager Ci ";=INBOX" "copy mail to inbox" -set spoolfile = "+INBOX" -macro index,pager gf "=Fanfare" "go to fanfare" -macro index,pager Mf ";=Fanfare" "move mail to fanfare" -macro index,pager Cf ";=Fanfare" "copy mail to fanfare" diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc index 7c849b7..73f0df8 100644 --- a/.config/mutt/muttrc +++ b/.config/mutt/muttrc @@ -3,5 +3,4 @@ source $XDG_CONFIG_HOME/mutt/neomutt.muttrc macro index,pager ip 'source $XDG_CONFIG_HOME/mutt/accounts/1-david.julien@posteo.net.muttrc!;' "switch to david.julien@posteo.net" macro index,pager is 'source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@ens-lyon.fr.muttrc!;' "switch to david.julien@ens-lyon.fr" macro index,pager in 'source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@etu.univ-nantes.fr.muttrc!;' "switch to david.julien@etu.univ-nantes.fr" -macro index,pager im 'source $XDG_CONFIG_HOME/mutt/accounts/3-david.julien@mailo.com.muttrc!;' "switch to david.julien@mailto.com" source $XDG_CONFIG_HOME/mutt/accounts/2-david.julien@etu.univ-nantes.fr.muttrc diff --git a/.config/ncmpcpp/config b/.config/ncmpcpp/config index 26d9c20..dc15403 100644 --- a/.config/ncmpcpp/config +++ b/.config/ncmpcpp/config @@ -77,7 +77,7 @@ mpd_music_dir = ~/music ## to synchronize with audio. ## # -#visualizer_output_name = Visualizer feed +visualizer_output_name = Visualizer Feed # ## ## If you set format to 44100:16:2, make it 'yes'. diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 7aa4bed..643b275 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -2,9 +2,9 @@ # System stuff -super + F1 - pulsemixer --toggle-mute; audio-notify -super + {F2, F3} +XF86AudioMute + pulsemixer --toggle-mute; audio-notify +{XF86AudioLowerVolume,XF86AudioRaiseVolume} pulsemixer --change-volume {-5, +5}; audio-notify super + {F5, F6} @@ -72,10 +72,10 @@ super + shift + m $TERMINAL -g 128x32 -c "floating" -e $MUSIC_CLIENT super + shift + n - $TERMINAL -g 128x32 -c "floating" -e tsession "mail" "$MAIL_CLIENT" + $TERMINAL -g 128x32 -c "floating" -e $MAIL_CLIENT super + shift + i - $TERMINAL -g 128x32 -c "floating" -e tsession "irc" "$IRC_CLIENT" + $TERMINAL -g 128x32 -c "floating" -e $IRC_CLIENT super + shift + t $TERMINAL -g 128x32 -c "floating" -e tremc diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 6b444b6..4dd92f2 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -71,14 +71,14 @@ precmd_dunctions() { zle-line-init ;} # Use beam shape cursor for each new promp [ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc" # Load zsh-history-search -source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh 2>/dev/null +source "$HOME/.local/src/zsh-history-substring-search/zsh-history-substring-search.zsh" 2>/dev/null # Load zsh-syntax-highlighting -source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null +source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null typeset -A ZSH_HIGHLIGHT_STYLES ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold' ZSH_HIGHLIGHT_STYLES[path]='fg=magenta,bold' ZSH_HIGHLIGHT_STYLES[unknown-token]='bg=red,fg=white,bold' # opam configuration -test -r "$OPAMROOT/opam-init/init.zsh" && . "$OPAMROOT/opam-init/init.zsh" > /dev/null 2> /dev/null || true +#test -r "$OPAMROOT/opam-init/init.zsh" && . "$OPAMROOT/opam-init/init.zsh" > /dev/null 2> /dev/null || true diff --git a/.local/bin/displayselect b/.local/bin/displayselect index aa467aa..03191db 100755 --- a/.local/bin/displayselect +++ b/.local/bin/displayselect @@ -87,4 +87,4 @@ case "$chosen" in esac setbg # Fix background if screen size/arangement has changed. -pgrep -x dunst >/dev/null && killall dunst && setsid dunst & # Restart dunst to ensure proper location on screen +pgrep -x dunst >/dev/null && kill -9 $(pidof dunst) && setsid dunst & # Restart dunst to ensure proper location on screen diff --git a/.local/bin/statusbar/sb-internet b/.local/bin/statusbar/sb-internet index dbe07c8..9a9e842 100755 --- a/.local/bin/statusbar/sb-internet +++ b/.local/bin/statusbar/sb-internet @@ -18,7 +18,7 @@ case "$state" in INTERFACE_DISABLED) str="WIFI DOWN" ;; *) str="$(printf "NO WIFI")";; esac -eth="$(cat /sys/class/net/enp0s31f6/operstate)" +eth="$(cat /sys/class/net/eth0/operstate)" if [ "up" = "$eth" ]; then str="$(printf "%s /  " "$str")" fi diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index b7b0c08..1147aeb 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -14,11 +14,11 @@ vol="$(pulsemixer --get-volume | awk -F " " '{ printf "%d", $1 }')" if [ "$vol" -gt "70" ]; then - icon="墳" + icon="" elif [ "$vol" -lt "30" ]; then - icon="奄" + icon="" else - icon="奔" + icon="" fi printf " %s %3d%% " $icon $vol diff --git a/.local/src/slock b/.local/src/slock index 7c32247..9176d6f 160000 --- a/.local/src/slock +++ b/.local/src/slock @@ -1 +1 @@ -Subproject commit 7c322470fd2b9e3af4ea5620a163dbe9a1c37350 +Subproject commit 9176d6fcf8a3ced5eb3e390faebf76d0618f65b9