2 #+property: header-args :comments link :mkdirp yes :results silent
6 This org file contains the configuration files of pretty much every
7 program I use. The files are tangled (i.e. exported, or derived) from
8 this file using =org-babel=.
10 Note: This file is best viewed inside Emacs with org mode.
14 This section contains the configuration files (dotfiles) of various
19 :header-args+: :tangle ~/.config/compton.conf
22 #+begin_src conf :tangle no
24 shadow = false; # Enabled client-side shadows on windows.
25 no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows.
26 no-dnd-shadow = true; # Don't draw shadows on DND windows.
27 clear-shadow = true; # Zero the part of the shadow's mask behind the
28 # window. Fix some weirdness with ARGB windows.
29 shadow-radius = 5; # The blur radius for shadows. (default 12)
30 shadow-offset-x = -5; # The left offset for shadows. (default -15)
31 shadow-offset-y = -5; # The top offset for shadows. (default -15)
32 # shadow-opacity = 0.7; # The translucency for shadows. (default .75)
33 # shadow-red = 0.0; # Red color value of shadow. (0.0 - 1.0, defaults to 0)
34 # shadow-green = 0.0; # Green color value of shadow. (0.0 - 1.0, defaults to 0)
35 # shadow-blue = 0.0; # Blue color value of shadow. (0.0 - 1.0, defaults to 0)
36 shadow-exclude = [ "n:e:Notification", "class_g = 'Chromium'", "class_g = 'Dmenu'", "class_g = 'Firefox' && argb" ]; # Exclude conditions for shadows.
37 # shadow-exclude = "n:e:Notification";
38 #shadow-exclude = [ "_GTK_FRAME_EXTENTS@:c" ] # Fix dual shadow on some gtk3 powered applications
39 shadow-ignore-shaped = true; # Avoid drawing shadow on all shaped windows
40 # (see also: --detect-rounded-corners)
43 menu-opacity = 1.0; # The opacity for menus. (default 1.0)
44 #inactive-opacity = 0.9; # Default opacity of inactive windows. (0.0 - 1.0)
45 # active-opacity = 0.8; # Default opacity for active windows. (0.0 - 1.0)
46 frame-opacity = 1.0; # Opacity of window titlebars and borders. (0.1 - 1.0)
47 # inactive-opacity-override = true; # Let inactive opacity set by 'inactive-opacity' overrides
48 # value of _NET_WM_OPACITY. Bad choice.
49 alpha-step = 0.06; # XRender backend: Step size for alpha pictures. Increasing
50 # it may result in less X resource usage,
51 # Yet fading may look bad.
52 #inactive-dim = 0.5; # Dim inactive windows. (0.0 - 1.0)
53 #inactive-dim-fixed = true; # Do not let dimness adjust based on window opacity.
54 # blur-background = true; # Blur background of transparent windows.
55 # Bad performance with X Render backend.
56 # GLX backend is preferred.
57 # blur-background-frame = true; # Blur background of opaque windows with transparent
59 blur-background-fixed = true; # Do not let blur radius adjust based on window opacity.
60 blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
61 # Exclude conditions for background blur.
64 fading = false; # Fade windows during opacity changes.
65 fade-delta = 3; # The time between steps in a fade in milliseconds. (default 10).
66 fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).
67 fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).
68 # no-fading-openclose = true; # Avoid fade windows in/out when opening/closing.
69 fade-exclude = [ ]; # Exclude conditions for fading.
72 backend = "glx" # Backend to use: "xrender" or "glx". GLX backend is typically
73 # much faster but depends on a sane driver.
74 mark-wmwin-focused = true; # Try to detect WM windows and mark them as active.
75 mark-ovredir-focused = true; # Mark all non-WM but override-redirect windows active (e.g. menus).
76 use-ewmh-active-win = true; # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused
77 # instead of using FocusIn/Out events. Usually more reliable but
78 # depends on a EWMH-compliant WM.
79 detect-rounded-corners = false; # Detect rounded corners and treat them as rectangular when --shadow-ignore- shaped is on.
80 detect-client-opacity = true; # Detect _NET_WM_OPACITY on client windows, useful for window
81 # managers not passing _NET_WM_OPACITY of client windows to frame
83 refresh-rate = 0; # For --sw-opti: Specify refresh rate of the screen. 0 for auto.
84 vsync = "drm"; # "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc"
85 # See man page for more details.
86 dbe = false; # Enable DBE painting mode. Rarely needed.
87 paint-on-overlay = true; # Painting on X Composite overlay window. Recommended.
88 sw-opti = false; # Limit compton to repaint at most once every 1 / refresh_rate.
89 # Incompatible with certain VSync methods.
90 unredir-if-possible = false; # Unredirect all windows if a full-screen opaque window is
91 # detected, to maximize performance for full-screen windows.
92 focus-exclude = [ ]; # A list of conditions of windows that should always be considered
94 detect-transient = true; # Use WM_TRANSIENT_FOR to group windows, and consider windows in
95 # the same group focused at the same time.
96 detect-client-leader = true; # Use WM_CLIENT_LEADER to group windows.
97 invert-color-include = [ ]; # Conditions for windows to be painted with inverted color.
99 # GLX backend # GLX backend fine-tune options. See man page for more info.
100 glx-no-stencil = true; # Recommended.
101 glx-copy-from-front = false; # Useful with --glx-swap-method,
102 # glx-use-copysubbuffermesa = true; # Recommended if it works. Breaks VSync.
103 # glx-no-rebind-pixmap = true; # Recommended if it works.
104 glx-no-rebind-pixmap = true; # Recommended if it works.
105 #glx-swap-method = "4"; # See man page.
106 glx-swap-method = "4"; # See man page.
108 # Window type settings
111 tooltip = { fade = true; shadow = false; opacity = 1; focus = true; };
112 menu = { shadow = false; };
113 dropdown_menu = { shadow = false; };
114 popup_menu = { shadow = false; };
115 utility = { shadow = false; };
116 # fade: Fade the particular type of windows.
117 # shadow: Give those windows shadow
118 # opacity: Default opacity for the type of windows.
119 # focus: Whether to always consider windows of this type focused.
125 :header-args+: :tangle "/sudo::/etc/dovecot/dovecot.conf"
132 log_path = /var/log/dovecot.log
133 info_log_path = /var/log/dovecot-info.log
136 disable_plaintext_auth = no
139 auth_mechanisms = plain
143 args = /etc/dovecot/passwd
148 args = uid=amin gid=amin home=/home/amin/mail/%d/%n
149 default_fields = mail=maildir:/home/amin/mail/%d/%n/mail
152 # mail_home = /home/amin/mail/%d/%n
153 # mail_location = maildir:/home/amin/mail/%d/%n/mail:LAYOUT=fs:INBOX=/home/amin/mail/%d/%n/mail/Inbox
160 mail_plugins = $mail_plugins fts fts_lucene
164 fts_lucene = whitespace_chars=@.
171 :header-args+: :tangle ~/.config/dunst/dunstrc
176 #font = Ubuntu Mono 10.5
177 font = Inconsolata 11
179 # Path to default icons.
180 icon_folders = /usr/share/icons/Moka/16x16/status/:/usr/share/icons/Moka/16x16/devices/:/usr/share/icons/Faba-Mono/16x16/status/:/usr/share/icons/Faba-Mono/16x16/devices/:/usr/share/icons/Moka/16x16/actions/:/usr/share/icons/Moka/16x16/categories/:/usr/share/icons/Moka/16x16/mimetypes/:/usr/share/icons/Moka/16x16/apps/:/usr/share/icons/Moka/16x16/places/:/usr/share/icons/Paper/16x16/status/
185 # <s>strikethrough<s/>
188 # The format of the message. Possible variables are:
192 # %i iconname (including its path)
193 # %I iconname (without its path)
194 # %p progress value if set ([ 0%] to [100%]) or nothing
196 format = "<b>%s</b>\n%b"
197 # Sort messages by urgency
199 # Show how many messages are currently hidden (because of geometry)
201 # Alignment of message text.
202 # Possible values are "left", "center" and "right"
204 # The frequency with wich text that is longer than the notification
205 # window allows bounces back and forth.
206 # This option conflicts with 'word_wrap'.
207 # Set to 0 to disable
209 # show age of message if message is older than show_age_threshold seconds.
210 # set to -1 to disable
211 show_age_threshold = -1
212 # split notifications into multiple lines if they don't fit into geometry
214 # ignore newlines '\n' in notifications
216 # The geometry of the message window.
217 # geometry [{width}]x{height}][+/-{x}+/-{y}]
218 # The height is measured in number of notifications everything else in pixels. If the width
219 # is omitted but the height is given ("-geometry x2"), the message window
220 # expands over the whole screen (dmenu-like). If width is 0,
221 # the window expands to the longest message displayed.
222 # A positive x is measured from the left, a negative from the
223 # right side of the screen. Y is measured from the top and down respectevly.
224 # The width can be negative. In this case the actual width is the
225 # screen width minus the width defined in within the geometry option.
226 #geometry = "410x12-12+12"
227 #geometry = "0x0-30-30"
228 geometry = "260x12-30-30"
229 # The transparency of the window. range: [0; 100]
230 # This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
232 # Don't remove messages, if the user is idle (no mouse or keyboard input)
233 # for longer than idle_threshold seconds.
234 # Set to 0 to disable.
236 # Which monitor should the notifications be displayed on.
238 # Display notification on focused monitor. Possible modes are:
239 # mouse: follow mouse pointer
240 # keyboard: follow window with keyboard focus
241 # none: don't follow anything
243 # "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
244 # This should be the case for almost all modern windowmanagers.
246 # If this option is set to mouse or keyboard, the monitor option will be
249 # should a notification popped up from history be sticky or
250 # timeout as if it would normally do.
252 # The height of a single line. If the height is smaller than the font height,
253 # it will get raised to the font height.
254 # This adds empty space above and under the text.
257 show_indicators = yes
259 # Draw a line of 'separatpr_height' pixel height between two notifications.
260 # Set to 0 to disable
262 # padding between text and separator
265 horizontal_padding = 8
266 # Define a color for the separator.
267 # possible values are:
268 # * auto: dunst tries to find a color fitting to the background
269 # * foreground: use the same color as the foreground
270 # * frame: use the same color as the frame.
271 # * anything else will be interpreted as a X color
272 separator_color = foreground
273 # print a notification on startup
274 # This is mainly for error detection, since dbus (re-)starts dunst
275 # automatically after a crash.
276 startup_notification = false
278 #dmenu = /usr/bin/dmenu -p dunst:
279 dmenu = /usr/bin/rofi -dmenu -p dunst:
280 # browser for opening urls in context menu
281 browser = /usr/bin/firefox -new-tab
286 # shortcuts are specified as [modifier+][modifier+]...key
287 # available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
288 # and 'mod4' (windows-key)
289 # xev might be helpful to find names for keys
292 # close all notifications
293 close_all = ctrl+shift+space
294 # redisplay last message(s)
295 # On the US keyboard layout 'grave' is normally above TAB and left of '1'.
296 history = ctrl+shift+h
298 context = ctrl+shift+period
300 # IMPORTANT: colors have to be defined in quotation marks.
301 # Otherwise the '#' and following would be interpreted as a comment.
302 background = "#1d2a30"
303 foreground = "#71c2af"
306 background = "#1d2a30"
307 foreground = "#71c2af"
310 background = "#1d2a30"
311 foreground = "#ff9982"
314 # Every section that isn't one of the above is interpreted as a rules
315 # to override settings for certain messages.
316 # Messages can be matched by 'appname', 'summary', 'body' or 'icon'
317 # and you can override the 'timeout', 'urgency', 'foreground', 'background'
319 # Shell-like globbing will get expanded.
322 # you can specify a script that gets run when the rule matches by setting
323 # the 'script' option.
324 # The script will be called as follows:
325 # script appname summary body icon urgency
326 # where urgency can be "LOW", "NORMAL" or "CRITICAL".
328 # NOTE: if you don't want a notification to be displayed, set the format to ""
329 # NOTE: It might be helpful to run dunst -print in a terminal in order to find
330 # fitting options for rules.
333 # script = dunst_espeak.sh
335 # summary = "*script*"
336 # script = dunst_test.sh
338 ## This notification will not be displayed
343 # summary = "*signed on*"
348 # summary = *signed off*
358 # summary = *twitter.com*
362 summary = *Brightness*
368 :header-args+: :tangle ~/.config/fontconfig/fonts.conf :comments none
372 <?xml version="1.0"?>
373 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
375 <match target="font">
376 <edit mode="assign" name="rgba">
380 <match target="font">
381 <edit mode="assign" name="hinting">
385 <match target="font">
386 <edit mode="assign" name="hintstyle">
387 <const>hintslight</const>
390 <match target="font">
391 <edit mode="assign" name="antialias">
395 <match target="font">
396 <edit mode="assign" name="lcdfilter">
397 <const>lcddefault</const>
402 <!-- Use Liberation Sans for Helvetica (instead of Nimbus Sans) -->
403 <alias binding="same">
404 <family>Helvetica</family>
406 <family>Liberation Sans</family>
416 :header-args+: :tangle ~/.getmail/getmailrc
421 type = SimplePOP3SSLRetriever
422 server = fencepost.gnu.org
424 password_command = ("gpg2", "--no-tty", "-q", "-d", "/home/amin/.passwd/gnu.gpg")
430 path = ~/mail/gnu/Inbox/
433 # type = MDA_external
434 # path = /usr/lib/dovecot/deliver
435 # arguments = ('-d', 'amin@aminb.org')
443 :header-args+: :tangle ~/.config/systemd/user/getmail.service
446 #+begin_src conf :tangle no
448 Description=getmail service
452 ExecStart=/usr/bin/getmail
453 StandardOutput=syslog
459 :header-args+: :tangle ~/.config/systemd/user/getmail.timer
462 #+begin_src conf :tangle no
464 Description=getmail timer
472 WantedBy=timers.target
479 :header-args+: :tangle ~/.gitconfig
486 email = bandali@gnu.org
487 signingkey = BE6273738E616D6D1B3A08E8A21A020248816103
501 autocrlf = input # CRLF -> LF on commit
502 editor = emacsclient -t
503 excludesfile = ~/.gitignore_global
516 git = !exec git # handle nested git calls, e.g. git git status
517 aliases = config --get-regexp '^alias\\.'
529 nmam = "!f() { notmuch show --format=raw $1 | git am -; }; f"
530 nmam3 = "!f() { notmuch show --format=raw $1 | git am -3 -; }; f"
543 remote = magenta bold
552 # showUntrackedFiles = all
567 smtpserver = fencepost.gnu.org
575 :header-args+: :tangle ~/.gitignore_global
590 :header-args+: :tangle ~/.gnupg/gpg-agent.conf
594 default-cache-ttl 43200
597 default-cache-ttl-ssh 10800
598 max-cache-ttl-ssh 10800
600 # pinentry-program /usr/bin/pinentry-qt
607 :header-args+: :tangle ~/.gtkrc-2.0
611 gtk-theme-name="Greybird"
612 gtk-icon-theme-name="Paper"
613 gtk-font-name="Ubuntu 10"
615 # gtk-key-theme-name = "Emacs"
620 :header-args+: :tangle ~/.config/gtk-3.0/settings.ini
623 #+begin_src conf :tangle no
625 gtk-icon-theme-name = Paper
626 # gtk-theme-name = Adwaita
628 gtk-theme-name = Greybird
629 # gtk-theme-name = Arc-Darker
630 # gtk-theme-name = Numix-ArchBlue
632 gtk-font-name = Ubuntu 10
633 # gtk-key-theme-name = Emacs
636 ** [[https://github.com/Leinnan/i3gs][i3gs]]
638 :header-args+: :tangle ~/.config/i3gs/config
641 #+begin_src conf :comments none :tangle no
642 borders_width=0 0 2 0
647 #title=<span weight='heavy' fgcolor='#7FDBFF'> </span>
648 #borders_color=#7FDBFF
652 title=<span weight='heavy' fgcolor='#3D9970'> </span>
653 borders_color=#3D9970
657 #title=<span weight='heavy' fgcolor='#2ECC40'> </span>
658 #borders_color=#2ECC40
662 #title=<span weight='heavy' fgcolor='#01FF70'> </span>
663 #borders_color=#01FF70
667 title=<span weight='heavy' fgcolor='#7FDBFF'></span>
668 borders_color=#7FDBFF
672 command=battery-percentage-time
673 title=<span weight='heavy' fgcolor='#39CCCC'> </span>
674 borders_color=#39CCCC
678 title=<span weight='heavy' fgcolor='#01FF70'> </span>
679 borders_color=#01FF70
683 command=date '+%-I:%M, %a %b %d '
684 title=<span weight='heavy' fgcolor='#FFDC00'> </span>
685 borders_color=#FFDC00
691 :header-args+: :tangle ~/.config/i3status/config
694 #+begin_src conf :comments none
695 # i3status configuration file.
696 # see "man i3status" for documentation.
698 # It is important that this file is edited as UTF-8.
699 # The following line should contain a sharp s:
701 # If the above line is not correctly displayed, fix your editor first!
706 output_format = "i3bar"
711 order += "disk /data"
712 # order += "wireless _first_"
713 order += "ethernet _first_"
715 order += "volume master"
717 order += "tztime local"
720 format_up = "W:%quality %essid %ip"
721 format_down = "W: down"
725 # if you use %speed, i3status requires root privileges
726 format_up = "E: %ip (%speed)"
727 format_down = "E: down"
731 format = "%status %percentage %remaining (%consumption)"
732 path = "/sys/class/power_supply/BAT%d/uevent"
734 threshold_type = "percentage"
735 last_full_capacity = true
736 integer_battery_capacity = true
741 format = "%-I:%M%P %a %b %d"
746 format_muted = "🔇 %volume"
759 format = "/data %avail"
767 :header-args+: :tangle ~/.mbsyncrc
780 PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/amin.gpg"
783 IMAPStore amin-remote
786 IMAPAccount amin-dovecot
790 PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/amin-dovecot.gpg"
802 IMAPAccount uwaterloo
803 Host connect.uwaterloo.ca
805 PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/uwaterloo.gpg"
808 IMAPStore uwaterloo-remote
811 IMAPAccount uwaterloo-dovecot
814 User abandali@uwaterloo.ca
815 PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/uwaterloo-dovecot.gpg"
818 IMAPStore uwaterloo-local
819 Account uwaterloo-dovecot
822 Master :uwaterloo-remote:
823 Slave :uwaterloo-local:
828 Host mail.csclub.uwaterloo.ca
830 PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/csclub.gpg"
833 IMAPStore csclub-remote
836 IMAPAccount csclub-dovecot
839 User abandali@csclub.uw
840 PassCmd "gpg -q --for-your-eyes-only --no-tty -d ~/.passwd/csclub-dovecot.gpg"
843 IMAPStore csclub-local
844 Account csclub-dovecot
847 Master :csclub-remote:
854 :header-args+: :tangle ~/.config/systemd/user/mbsync.service
857 #+begin_src conf :tangle no
859 Description=mbsync service
863 ExecStart=/usr/bin/mbsync -Va
864 StandardOutput=syslog
870 :header-args+: :tangle ~/.config/systemd/user/mbsync.timer
873 #+begin_src conf :tangle no
875 Description=mbsync timer
883 WantedBy=timers.target
888 :header-args+: :tangle ~/.latexmkrc
892 $pdf_previewer = "start zathura %O %S";
893 $clean_ext = "aux out";
895 # $pdf_update_method = 4;
896 # $pdf_update_command = "zathura %O %S";
898 # Synctex allows one to jump to from the PDF in Zathura to the source in Emacs
899 # by Ctrl+click in the PDF.
900 # Tell latexmk to use Zathura as a previewer, and run emacsclient as the Synctex
902 # $pdf_previewer = 'exec zathura --synctex-forward -x \'emacsclient --no-wait +%{line} %{input}\' %O %S';
907 Improve XPS 15 9560's touchpad experience.
909 # begin_src conf :tangle (when (and (eq system-type 'gnu/linux) (string= (system-name) "plasma")) "/sudo::/etc/X11/xorg.conf.d/30-touchpad.conf")
910 #+begin_src conf :tangle no
912 Identifier "libinput touchpad catchall"
915 Option "ClickMethod" "clickfinger"
916 Option "NaturalScrolling" "true"
917 Option "Tapping" "on"
918 Option "TappingButtonMap" "lrm"
924 #+begin_src conf :tangle /sudo::/etc/mkinitcpio.conf :comments none
927 # The following modules are loaded before any boot hooks are
928 # run. Advanced users may wish to specify all system modules
929 # in this array. For instance:
930 # MODULES=(piix ide_disk reiserfs)
934 # This setting includes any additional binaries a given user may
935 # wish into the CPIO image. This is run last, so it may be used to
936 # override the actual binaries included by a given hook
937 # BINARIES are dependency parsed, so you may safely ignore libraries
941 # This setting is similar to BINARIES above, however, files are added
942 # as-is and are not parsed in any way. This is useful for config files.
946 # This is the most important setting in this file. The HOOKS control the
947 # modules and scripts added to the image, and what happens at boot time.
948 # Order is important, and it is recommended that you do not change the
949 # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
950 # help on a given hook.
951 # 'base' is _required_ unless you know precisely what you are doing.
952 # 'udev' is _required_ in order to automatically load modules
953 # 'filesystems' is _required_ unless you specify your fs modules in MODULES
955 ## This setup specifies all modules in the MODULES setting above.
956 ## No raid, lvm2, or encrypted root is needed.
959 ## This setup will autodetect all modules for your system and should
960 ## work as a sane default
961 # HOOKS=(base udev autodetect block filesystems)
963 ## This setup will generate a 'full' image which supports most systems.
964 ## No autodetection is done.
965 # HOOKS=(base udev block filesystems)
967 ## This setup assembles a pata mdadm array with an encrypted root FS.
968 ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
969 # HOOKS=(base udev block mdadm encrypt filesystems)
971 ## This setup loads an lvm2 volume group on a usb device.
972 # HOOKS=(base udev block lvm2 filesystems)
974 ## NOTE: If you have /usr on a separate partition, you MUST include the
975 # usr, fsck and shutdown hooks.
976 HOOKS=(base udev autodetect modconf block keyboard encrypt lvm2 resume filesystems fsck)
979 # Use this to compress the initramfs image. By default, gzip compression
980 # is used. Use 'cat' to create an uncompressed image.
988 # COMPRESSION_OPTIONS
989 # Additional options for the compressor
990 #COMPRESSION_OPTIONS=()
995 :header-args+: :tangle ~/.config/mpd/mpd.conf
999 # An example configuration file for MPD.
1000 # Read the user manual for documentation: http://www.musicpd.org/doc/user/
1003 # Files and directories #######################################################
1005 # This setting controls the top directory which MPD will search to discover the
1006 # available audio files and add them to the daemon's online database. This
1007 # setting defaults to the XDG directory, otherwise the music directory will be
1008 # be disabled and audio files will only be accepted over ipc socket (using
1009 # file:// protocol) or streaming files over an accepted protocol.
1011 music_directory "~/usr/music"
1013 # This setting sets the MPD internal playlist directory. The purpose of this
1014 # directory is storage for playlists created by MPD. The server will use
1015 # playlist files not created by the server but only if they are in the MPD
1016 # format. This setting defaults to playlist saving being disabled.
1018 playlist_directory "~/.mpd/playlists"
1020 # This setting sets the location of the MPD database. This file is used to
1021 # load the database at server start up and store the database while the
1022 # server is not up. This setting defaults to disabled which will allow
1023 # MPD to accept files over ipc socket (using file:// protocol) or streaming
1024 # files over an accepted protocol.
1026 db_file "~/.mpd/database"
1028 # These settings are the locations for the daemon log files for the daemon.
1029 # These logs are great for troubleshooting, depending on your log_level
1032 # The special value "syslog" makes MPD use the local syslog daemon. This
1033 # setting defaults to logging to syslog, otherwise logging is disabled.
1035 log_file "~/.mpd/log"
1037 # This setting sets the location of the file which stores the process ID
1038 # for use of mpd --kill and some init scripts. This setting is disabled by
1039 # default and the pid file will not be stored.
1041 pid_file "~/.mpd/pid"
1043 # This setting sets the location of the file which contains information about
1044 # most variables to get MPD back into the same general shape it was in before
1045 # it was brought down. This setting is disabled by default and the server
1046 # state will be reset on server start up.
1048 state_file "~/.mpd/state"
1050 # The location of the sticker database. This is a database which
1051 # manages dynamic information attached to songs.
1053 sticker_file "~/.mpd/sticker.sql"
1055 ###############################################################################
1058 # General music daemon options ################################################
1060 # This setting specifies the user that MPD will run as. MPD should never run as
1061 # root and you may use this setting to make MPD change its user ID after
1062 # initialization. This setting is disabled by default and MPD is run as the
1067 # This setting specifies the group that MPD will run as. If not specified
1068 # primary group of user specified with "user" setting will be used (if set).
1069 # This is useful if MPD needs to be a member of group such as "audio" to
1070 # have permission to use sound card.
1074 # This setting sets the address for the daemon to listen on. Careful attention
1075 # should be paid if this is assigned to anything other then the default, any.
1076 # This setting can deny access to control of the daemon. Not effective if
1077 # systemd socket activiation is in use.
1080 #bind_to_address "any"
1082 # And for Unix Socket
1083 #bind_to_address "~/.mpd/socket"
1085 # This setting is the TCP port that is desired for the daemon to get assigned
1090 # This setting controls the type of information which is logged. Available
1091 # setting arguments are "default", "secure" or "verbose". The "verbose" setting
1092 # argument is recommended for troubleshooting, though can quickly stretch
1093 # available resources on limited hardware storage.
1095 #log_level "default"
1097 # If you have a problem with your MP3s ending abruptly it is recommended that
1098 # you set this argument to "no" to attempt to fix the problem. If this solves
1099 # the problem, it is highly recommended to fix the MP3 files with vbrfix
1100 # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
1101 # point gapless MP3 playback can be enabled.
1103 #gapless_mp3_playback "yes"
1105 # Setting "restore_paused" to "yes" puts MPD into pause mode instead
1106 # of starting playback after startup.
1108 #restore_paused "no"
1110 # This setting enables MPD to create playlists in a format usable by other
1113 #save_absolute_paths_in_playlists "no"
1115 # This setting defines a list of tag types that will be extracted during the
1116 # audio file discovery process. The complete list of possible values can be
1117 # found in the user manual.
1118 #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
1120 # This setting enables automatic update of MPD's database when files in
1121 # music_directory are changed.
1125 # Limit the depth of the directories being watched, 0 means only watch
1126 # the music directory itself. There is no limit by default.
1128 #auto_update_depth "3"
1130 ###############################################################################
1133 # Symbolic link behavior ######################################################
1135 # If this setting is set to "yes", MPD will discover audio files by following
1136 # symbolic links outside of the configured music_directory.
1138 #follow_outside_symlinks "yes"
1140 # If this setting is set to "yes", MPD will discover audio files by following
1141 # symbolic links inside of the configured music_directory.
1143 #follow_inside_symlinks "yes"
1145 ###############################################################################
1148 # Zeroconf / Avahi Service Discovery ##########################################
1150 # If this setting is set to "yes", service information will be published with
1153 #zeroconf_enabled "yes"
1155 # The argument to this setting will be the Zeroconf / Avahi unique name for
1156 # this MPD server on the network.
1158 #zeroconf_name "Music Player"
1160 ###############################################################################
1163 # Permissions #################################################################
1165 # If this setting is set, MPD will require password authorization. The password
1166 # setting can be specified multiple times for different password profiles.
1168 #password "password@read,add,control,admin"
1170 # This setting specifies the permissions a user has who has not yet logged in.
1172 #default_permissions "read,add,control,admin"
1174 ###############################################################################
1177 # Database #######################################################################
1182 # host "other.mpd.host"
1186 # Input #######################################################################
1191 # proxy "proxy.isp.com:8080"
1193 # proxy_password "password"
1197 ###############################################################################
1199 # Audio Output ################################################################
1210 path "/tmp/mpd.fifo"
1214 # MPD supports various audio output types, as well as playing through multiple
1215 # audio outputs at the same time, through multiple audio_output settings
1216 # blocks. Setting this block is optional, though the server will only attempt
1217 # autodetection for one sound card.
1219 # An example of an ALSA output:
1223 # name "My ALSA Device"
1224 ## device "hw:0,0" # optional
1225 ## mixer_type "hardware" # optional
1226 ## mixer_device "default" # optional
1227 ## mixer_control "PCM" # optional
1228 ## mixer_index "0" # optional
1231 # An example of an OSS output:
1235 # name "My OSS Device"
1236 ## device "/dev/dsp" # optional
1237 ## mixer_type "hardware" # optional
1238 ## mixer_device "/dev/mixer" # optional
1239 ## mixer_control "PCM" # optional
1242 # An example of a shout output (for streaming to Icecast):
1246 # encoder "vorbis" # optional
1247 # name "My Shout Stream"
1254 # format "44100:16:1"
1255 ## protocol "icecast2" # optional
1256 ## user "source" # optional
1257 ## description "My Stream Description" # optional
1258 ## url "http://example.com" # optional
1259 ## genre "jazz" # optional
1260 ## public "no" # optional
1261 ## timeout "2" # optional
1262 ## mixer_type "software" # optional
1265 # An example of a recorder output:
1269 # name "My recorder"
1270 # encoder "vorbis" # optional, vorbis or lame
1271 # path "/var/lib/mpd/recorder/mpd.ogg"
1272 ## quality "5.0" # do not define if bitrate is defined
1273 # bitrate "128" # do not define if quality is defined
1274 # format "44100:16:1"
1277 # An example of a httpd output (built-in HTTP streaming server):
1281 # name "My HTTP Stream"
1282 # encoder "vorbis" # optional, vorbis or lame
1284 # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
1285 ## quality "5.0" # do not define if bitrate is defined
1286 # bitrate "128" # do not define if quality is defined
1287 # format "44100:16:1"
1288 # max_clients "0" # optional 0=no limit
1291 # An example of a pulseaudio output (streaming to a remote pulseaudio server)
1295 # name "My Pulse Output"
1296 ## server "remote_server" # optional
1297 ## sink "remote_server_sink" # optional
1300 # An example of a winmm output (Windows multimedia API).
1304 # name "My WinMM output"
1305 ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
1307 ## device "0" # optional
1308 ## mixer_type "hardware" # optional
1311 # An example of an openal output.
1315 # name "My OpenAL output"
1316 ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
1319 # An example of an sndio output.
1323 # name "sndio output"
1324 # mixer_type "software"
1327 # An example of an OS X output:
1331 # name "My OS X Device"
1332 ## device "Built-in Output" # optional
1333 ## channel_map "-1,-1,0,1" # optional
1336 ## Example "pipe" output:
1341 # command "aplay -f cd 2>/dev/null"
1342 ## Or if you're want to use AudioCompress
1343 # command "AudioCompress -m | aplay -f cd 2>/dev/null"
1344 ## Or to send raw PCM stream through PCM:
1345 # command "nc example.org 8765"
1346 # format "44100:16:2"
1349 ## An example of a null output (for no audio output):
1353 # name "My Null Output"
1354 # mixer_type "none" # optional
1357 ###############################################################################
1360 # Normalization automatic volume adjustments ##################################
1362 # This setting specifies the type of ReplayGain to use. This setting can have
1363 # the argument "off", "album", "track" or "auto". "auto" is a special mode that
1364 # chooses between "track" and "album" depending on the current state of
1365 # random playback. If random playback is enabled then "track" mode is used.
1366 # See <http://www.replaygain.org> for more details about ReplayGain.
1367 # This setting is off by default.
1371 # This setting sets the pre-amp used for files that have ReplayGain tags. By
1372 # default this setting is disabled.
1374 #replaygain_preamp "0"
1376 # This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
1377 # By default this setting is disabled.
1379 #replaygain_missing_preamp "0"
1381 # This setting enables or disables ReplayGain limiting.
1382 # MPD calculates actual amplification based on the ReplayGain tags
1383 # and replaygain_preamp / replaygain_missing_preamp setting.
1384 # If replaygain_limit is enabled MPD will never amplify audio signal
1385 # above its original level. If replaygain_limit is disabled such amplification
1386 # might occur. By default this setting is enabled.
1388 #replaygain_limit "yes"
1390 # This setting enables on-the-fly normalization volume adjustment. This will
1391 # result in the volume of all playing audio to be adjusted so the output has
1392 # equal "loudness". This setting is disabled by default.
1394 #volume_normalization "no"
1396 ###############################################################################
1398 # Character Encoding ##########################################################
1400 # If file or directory names do not display correctly for your locale then you
1401 # may need to modify this setting.
1403 #filesystem_charset "UTF-8"
1405 ###############################################################################
1410 :header-args+: :tangle ~/.msmtprc
1414 # Set default values for all following accounts.
1419 #tls_trust_file /etc/ssl/certs/ca-certificates.crt
1420 logfile ~/.msmtp.log
1425 # use `msmtp -a amin --serverinfo --tls --tls-certcheck=off --tls-fingerprint=` to get the current fingerprint
1426 tls_fingerprint B8:17:DF:D7:26:56:4F:CD:F0:51:D5:E5:4C:44:B6:F1:C9:47:E7:A2:C7:36:C9:C1:F2:10:85:18:43:72:9D:ED
1430 passwordeval gpg2 --no-tty -q -d ~/.passwd/amin.gpg
1432 account aminb : amin
1437 host fencepost.gnu.org
1438 # use `msmtp -a gnu --serverinfo --tls --tls-certcheck=off --tls-fingerprint=` to get the current fingerprint
1439 tls_fingerprint FB:DB:E3:7D:96:22:22:20:9F:4A:FD:70:96:99:50:5C:39:B2:29:D9:47:47:52:A8:5A:4A:DF:70:9D:21:DE:C4
1441 from bandali@gnu.org
1443 passwordeval gpg2 --no-tty -q -d ~/.passwd/gnu.gpg
1446 account gnu-aminb : gnu
1448 account gnu-amin : gnu
1450 account gnu-mab : gnu
1455 host connect.uwaterloo.ca
1457 from abandali@uwaterloo.ca
1459 passwordeval gpg2 --no-tty -q -d ~/.passwd/uwaterloo.gpg
1460 tls_trust_file /etc/ssl/certs/ca-certificates.crt
1464 host mail.csclub.uwaterloo.ca
1466 from abandali@csclub.uwaterloo.ca
1468 passwordeval gpg2 --no-tty -q -d ~/.passwd/csclub.gpg
1469 tls_trust_file /etc/ssl/certs/ca-certificates.crt
1471 # Set a default account
1472 account default : amin
1479 :header-args+: :tangle ~/.ncmpcpp/config
1482 #+begin_src conf :tangle no
1483 ##############################################################
1484 ## This is the example configuration file. Copy it to ##
1485 ## $HOME/.ncmpcpp/config or $XDG_CONFIG_HOME/ncmpcpp/config ##
1486 ## and set up your preferences. ##
1487 ##############################################################
1489 ##### directories ######
1491 ## Directory for storing ncmpcpp related files.
1492 ## Changing it is useful if you want to store
1493 ## everything somewhere else and provide command
1494 ## line setting for alternative location to config
1495 ## file which defines that while launching ncmpcpp.
1498 ncmpcpp_directory = ~/.ncmpcpp
1501 ## Directory for storing downloaded lyrics. It
1502 ## defaults to ~/.lyrics since other MPD clients
1503 ## (eg. ncmpc) also use that location.
1506 #lyrics_directory = ~/.lyrics
1508 ##### connection settings #####
1510 #mpd_host = localhost
1514 #mpd_connection_timeout = 5
1516 ## Needed for tag editor and file operations to work.
1518 mpd_music_dir = ~/usr/music
1520 #mpd_crossfade_time = 5
1522 ##### music visualizer #####
1524 ## Note: In order to make music visualizer work you'll
1525 ## need to use mpd fifo output, whose format parameter
1526 ## has to be set to 44100:16:1 for mono visualization
1527 ## or 44100:16:2 for stereo visualization. Example
1528 ## configuration (it has to be put into mpd.conf):
1532 ## name "Visualizer feed"
1533 ## path "/tmp/mpd.fifo"
1534 ## format "44100:16:2"
1538 visualizer_fifo_path = /tmp/mpd.fifo
1541 ## Note: Below parameter is needed for ncmpcpp
1542 ## to determine which output provides data for
1543 ## visualizer and thus allow syncing between
1544 ## visualization and sound as currently there
1545 ## are some problems with it.
1548 visualizer_output_name = my fifo
1551 ## If you set format to 44100:16:2, make it 'yes'.
1553 visualizer_in_stereo = yes
1556 ## Multiply received samples by given value. Very
1557 ## useful for proper visualization of quiet music.
1559 #visualizer_sample_multiplier = 1
1562 ## Note: Below parameter defines how often ncmpcpp
1563 ## has to "synchronize" visualizer and audio outputs.
1564 ## 30 seconds is optimal value, but if you experience
1565 ## synchronization problems, set it to lower value.
1566 ## Keep in mind that sane values start with >=10.
1569 visualizer_sync_interval = 30
1572 ## Note: To enable spectrum frequency visualization
1573 ## you need to compile ncmpcpp with fftw3 support.
1576 ## Available values: spectrum, wave, wave_filled, ellipse.
1578 visualizer_type = spectrum
1580 #visualizer_look = ●▮
1581 visualizer_look = "●•"
1583 #visualizer_color = blue, cyan, green, yellow, magenta, red
1585 ## Alternative subset of 256 colors for terminals that support it.
1587 #visualizer_color = 41, 83, 119, 155, 185, 215, 209, 203, 197, 161
1589 ##### system encoding #####
1591 ## ncmpcpp should detect your charset encoding
1592 ## but if it failed to do so, you can specify
1593 ## charset encoding you are using here.
1595 ## Note: You can see whether your ncmpcpp build
1596 ## supports charset detection by checking output
1597 ## of `ncmpcpp --version`.
1599 ## Note: Since MPD uses UTF-8 by default, setting
1600 ## this option makes sense only if your encoding
1604 #system_encoding = ""
1608 ## Time of inactivity (in seconds) after playlist
1609 ## highlighting will be disabled (0 = always on).
1611 #playlist_disable_highlight_delay = 5
1613 ## Defines how long messages are supposed to be visible.
1615 #message_delay_time = 5
1617 ##### song format #####
1619 ## For a song format you can use:
1625 ## %A - album artist
1629 ## %n - track number (01/12 -> 01)
1630 ## %N - full track info (01/12 -> 01/12)
1637 ## $R - begin right alignment
1639 ## If you want to make sure that a part of the format is displayed
1640 ## only when certain tags are present, you can archieve it by
1641 ## grouping them with brackets, e.g. '{%a - %t}' will be evaluated
1642 ## to 'ARTIST - TITLE' if both tags are present or '' otherwise.
1643 ## It is also possible to define a list of alternatives by providing
1644 ## several groups and separating them with '|', e.g. '{%t}|{%f}'
1645 ## will be evaluated to 'TITLE' or 'FILENAME' if the former is not
1648 ## Note: If you want to set limit on maximal length of a tag, just
1649 ## put the appropriate number between % and character that defines
1650 ## tag type, e.g. to make album take max. 20 terminal cells, use '%20b'.
1652 ## In addition, formats support markers used for text attributes.
1653 ## They are followed by character '$'. After that you can put:
1655 ## - 0 - default window color (discards all other colors)
1664 ## - 9 - end of current color
1666 ## - u - underline text
1667 ## - r - reverse colors
1668 ## - a - use alternative character set
1670 ## If you don't want to use a non-color attribute anymore, just put it
1671 ## again, but this time insert character '/' between '$' and attribute
1672 ## character, e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag
1673 ## or filename with reversed colors.
1675 ## If you want to use 256 colors and/or background colors in formats
1676 ## (the naming scheme is described below in section about color
1677 ## definitions), it can be done with the syntax $(COLOR), e.g. to set
1678 ## the artist tag to one of the non-standard colors and make it have
1679 ## yellow background, you need to write $(197_yellow)%a$(end). Note
1680 ## that for standard colors this is interchangable with attributes
1683 ## Note: colors can be nested.
1686 #song_list_format = {%a - }{%t}|{$8%f$9}$R{$3(%l)$9}
1688 #song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f}
1690 #song_library_format = {%n - }{%t}|{%f}
1693 #alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b
1695 #alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
1697 #now_playing_prefix = $b
1699 #now_playing_suffix = $/b
1701 #browser_playlist_prefix = "$2playlist$9 "
1703 #selected_item_prefix = $6
1705 #selected_item_suffix = $9
1707 #modified_item_prefix = $3> $9
1710 ## Note: attributes are not supported for the following variables.
1712 #song_window_title_format = {%a - }{%t}|{%f}
1714 ## Note: Below variables are used for sorting songs in browser.
1715 ## The sort mode determines how songs are sorted, and can be used
1716 ## in combination with a sort format to specify a custom sorting format.
1717 ## Available values for browser_sort_mode are "name", "mtime", "format"
1721 #browser_sort_mode = name
1723 #browser_sort_format = {%a - }{%t}|{%f} {(%l)}
1725 ##### columns settings #####
1727 ## syntax of song columns list format is "column column etc."
1729 ## - syntax for each column is:
1731 ## (width of the column)[color of the column]{displayed tag}
1733 ## Note: Width is by default in %, if you want a column to
1734 ## have fixed size, add 'f' after the value, e.g. (10)[white]{a}
1735 ## will be the column that take 10% of screen (so the real width
1736 ## will depend on actual screen size), whereas (10f)[white]{a}
1737 ## will take 10 terminal cells, no matter how wide the screen is.
1739 ## - color is optional (if you want the default one,
1740 ## leave the field empty).
1742 ## Note: You can give a column additional attributes by putting appropriate
1743 ## character after displayed tag character. Available attributes are:
1745 ## - r - column will be right aligned
1746 ## - E - if tag is empty, empty tag marker won't be displayed
1750 ## - give a column custom name by putting it after attributes,
1751 ## separated with character ':', e.g. {lr:Length} gives you
1752 ## right aligned column of lengths named "Length".
1754 ## - define sequence of tags, that have to be displayed in case
1755 ## predecessor is empty in a way similar to the one in classic
1756 ## song format, i.e. using '|' character, e.g. {a|c|p:Owner}
1757 ## creates column named "Owner" that tries to display artist
1758 ## tag and then composer and performer if previous ones are
1762 #song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l}
1764 ##### various settings #####
1767 ## Note: Custom command that will be executed each
1768 ## time song changes. Useful for notifications etc.
1770 #execute_on_song_change = ""
1772 #playlist_show_mpd_host = no
1774 #playlist_show_remaining_time = no
1776 #playlist_shorten_total_times = no
1778 #playlist_separate_albums = no
1781 ## Note: Possible display modes: classic, columns.
1783 #playlist_display_mode = columns
1785 #browser_display_mode = classic
1787 #search_engine_display_mode = classic
1789 #playlist_editor_display_mode = classic
1791 #discard_colors_if_item_is_selected = yes
1793 #incremental_seeking = yes
1797 #volume_change_step = 2
1799 #autocenter_mode = no
1801 #centered_cursor = no
1804 ## Note: You can specify third character which will
1805 ## be used to build 'empty' part of progressbar.
1807 #progressbar_look = =>
1808 progressbar_look = "─╼╶"
1809 #progressbar_look = "─⊙╶"
1811 #progressbar_boldness = yes
1813 ## Available values: database, playlist.
1815 #default_place_to_search_in = database
1817 ## Available values: classic, alternative.
1819 #user_interface = classic
1821 #data_fetching_delay = yes
1823 ## Available values: artist, album_artist, date, genre, composer, performer.
1825 #media_library_primary_tag = artist
1827 ## Available values: wrapped, normal.
1829 #default_find_mode = wrapped
1831 #default_tag_editor_pattern = %n - %t
1833 #header_visibility = yes
1835 #statusbar_visibility = yes
1837 #titles_visibility = yes
1839 #header_text_scrolling = yes
1841 #cyclic_scrolling = no
1845 #follow_now_playing_lyrics = no
1847 #fetch_lyrics_for_current_song_in_background = no
1849 #store_lyrics_in_song_dir = no
1851 #generate_win32_compatible_filenames = yes
1853 #allow_for_physical_item_deletion = no
1856 ## Note: If you set this variable, ncmpcpp will try to
1857 ## get info from last.fm in language you set and if it
1858 ## fails, it will fall back to english. Otherwise it will
1859 ## use english the first time.
1861 ## Note: Language has to be expressed as an ISO 639 alpha-2 code.
1863 #lastfm_preferred_language = en
1865 #show_hidden_files_in_local_browser = no
1868 ## How shall screen switcher work?
1870 ## - "previous" - switch between the current and previous screen.
1871 ## - "screen1,...,screenN" - switch between given sequence of screens.
1873 ## Screens available for use: help, playlist, browser, search_engine,
1874 ## media_library, playlist_editor, tag_editor, outputs, visualizer, clock.
1876 #screen_switcher_mode = playlist, browser
1879 ## Note: You can define startup screen
1880 ## by choosing screen from the list above.
1882 #startup_screen = playlist
1885 ## Note: You can define startup slave screen
1886 ## by choosing screen from the list above or
1887 ## an empty value for no slave screen.
1889 #startup_slave_screen = ""
1891 #startup_slave_screen_focus = no
1894 ## Default width of locked screen (in %).
1895 ## Acceptable values are from 20 to 80.
1898 #locked_screen_width_part = 50
1900 #ask_for_locked_screen_width_part = yes
1902 #jump_to_now_playing_song_at_start = yes
1904 #ask_before_clearing_playlists = yes
1906 #clock_display_seconds = no
1908 #display_volume_level = yes
1910 #display_bitrate = no
1912 #display_remaining_time = no
1914 ## Available values: none, basic, extended, perl.
1916 #regular_expressions = perl
1919 ## Note: If below is enabled, ncmpcpp will ignore leading
1920 ## "The" word while sorting items in browser, tags in
1921 ## media library, etc.
1923 #ignore_leading_the = no
1925 #block_search_constraints_change_if_items_found = yes
1927 #mouse_support = yes
1929 #mouse_list_scroll_whole_page = yes
1931 #empty_tag_marker = <empty>
1933 #tags_separator = " | "
1935 #tag_editor_extended_numeration = no
1937 #media_library_sort_by_mtime = no
1939 #enable_window_title = yes
1942 ## Note: You can choose default search mode for search
1943 ## engine. Available modes are:
1945 ## - 1 - use mpd built-in searching (no regexes, pattern matching)
1946 ## - 2 - use ncmpcpp searching (pattern matching with support for regexes,
1947 ## but if your mpd is on a remote machine, downloading big database
1948 ## to process it can take a while
1949 ## - 3 - match only exact values (this mode uses mpd function for searching
1950 ## in database and local one for searching in current playlist)
1953 #search_engine_default_search_mode = 1
1955 #external_editor = nano
1957 ## Note: set to yes if external editor is a console application.
1959 #use_console_editor = yes
1961 ##### colors definitions #####
1963 ## It is possible to set a background color by setting a color
1964 ## value "<foreground>_<background>", e.g. red_black will set
1965 ## foregound color to red and background color to black.
1967 ## In addition, for terminals that support 256 colors it
1968 ## is possible to set one of them by using a number in range
1969 ## [1, 256] instead of color name, e.g. numerical value
1970 ## corresponding to red_black is 2_1. To find out if the
1971 ## terminal supports 256 colors, run ncmpcpp and check out
1972 ## the bottom of the help screen for list of available colors
1973 ## and their numerical values.
1975 ## Note: due to technical limitations of ncurses, if 256 colors
1976 ## are used, it is possible to either use only the colors with
1977 ## default background color, or all pairs from 1_1 up to 254_127,
1978 ## depending on the ncurses version used.
1981 #colors_enabled = yes
1983 #empty_tag_color = cyan
1985 #header_window_color = default
1987 #volume_color = default
1989 #state_line_color = default
1991 #state_flags_color = default
1993 #main_window_color = yellow
1999 #main_window_highlight_color = yellow
2001 #progressbar_color = black
2003 #progressbar_elapsed_color = green
2005 #statusbar_color = default
2007 #alternative_ui_separator_color = black
2009 #active_column_color = red
2011 #window_border_color = green
2013 #active_window_border = red
2019 :header-args+: :tangle ~/.ncmpcpp/bindings
2022 #+begin_src conf :tangle no
2047 move_sort_order_down
2056 :header-args+: :tangle ~/.notmuch-config
2060 # .notmuch-config - Configuration file for the notmuch mail system
2062 # For more information about notmuch, see https://notmuchmail.org
2064 # Database configuration
2066 # The only value supported here is 'path' which should be the top-level
2067 # directory where your mail currently exists and to where mail will be
2068 # delivered in the future. Files should be individual email messages.
2069 # Notmuch will store its database within a sub-directory of the path
2070 # configured here named ".notmuch".
2073 path=/home/amin/oldmail
2075 # User configuration
2077 # Here is where you can let notmuch know how you would like to be
2078 # addressed. Valid settings are
2080 # name Your full name.
2081 # primary_email Your primary email address.
2082 # other_email A list (separated by ';') of other email addresses
2083 # at which you receive email.
2085 # Notmuch will use the various email addresses configured here when
2086 # formatting replies. It will avoid including your own addresses in the
2087 # recipient list of replies, and will set the From address based on the
2088 # address to which the original email was addressed.
2092 primary_email=amin@aminb.org
2093 other_email=bandali@gnu.org;abandali@uwaterloo.ca;
2095 # Configuration for "notmuch new"
2097 # The following options are supported here:
2099 # tags A list (separated by ';') of the tags that will be
2100 # added to all messages incorporated by "notmuch new".
2102 # ignore A list (separated by ';') of file and directory names
2103 # that will not be searched for messages by "notmuch new".
2105 # NOTE: *Every* file/directory that goes by one of those
2106 # names will be ignored, independent of its depth/location
2107 # in the mail store.
2112 ignore=.uidvalidity;.mbsyncstate;/.*/dovecot*/
2114 # Search configuration
2116 # The following option is supported here:
2119 # A ;-separated list of tags that will be excluded from
2120 # search results by default. Using an excluded tag in a
2121 # query will override that exclusion.
2124 exclude_tags=deleted;spam;
2126 # Maildir compatibility configuration
2128 # The following option is supported here:
2130 # synchronize_flags Valid values are true and false.
2132 # If true, then the following maildir flags (in message filenames)
2133 # will be synchronized with the corresponding notmuch tags:
2141 # S unread (added when 'S' flag is not present)
2143 # The "notmuch new" command will notice flag changes in filenames
2144 # and update tags, while the "notmuch tag" and "notmuch restore"
2145 # commands will notice tag changes and update flags in filenames
2148 synchronize_flags=true
2150 # Cryptography related configuration
2152 # The following option is supported here:
2155 # binary name or full path to invoke gpg.
2163 :header-args+: :tangle ~/mail/.notmuch/hooks/pre-new :shebang "#!/bin/sh"
2167 touch /tmp/gnusieve.log
2168 sieve-filter -eW -o postmaster_address=postmaster@aminb.org \
2169 -o mail_location=maildir:$MAILDIR/gnu:LAYOUT=fs:INBOX=$MAILDIR/gnu/Inbox ~/sieve/gnu.sieve INBOX delete &>>/tmp/gnusieve.log
2174 :header-args+: :tangle ~/mail/.notmuch/hooks/post-new :shebang "#!/bin/sh"
2178 # apply sent tag to messages sent by me
2179 notmuch tag -new +sent -- from:amin@aminb.org or from:bandali@gnu.org or from:aminb@gnu.org or from:amin@gnu.org or from:mab@gnu.org or from:abandali@uwaterloo.ca
2182 notmuch tag -latest -- tag:latest
2183 notmuch tag +inbox +unread +latest -new -- tag:new
2186 # apply tags to lists
2189 notmuch tag -inbox +lists/hackernewsletter -- folder:amin/lists/hackernewsletter
2190 notmuch tag -inbox +lists/haskell-weekly -- folder:amin/lists/haskell-weekly
2192 notmuch tag -inbox +pay -- folder:amin/pay
2193 notmuch tag -inbox +banking -- folder:amin/banking
2194 notmuch tag -inbox +work -- folder:amin/work
2198 notmuch tag -inbox +uw/cs136 -- folder:uwaterloo/lists/cs136
2199 notmuch tag -inbox +uw/cs846 -- folder:uwaterloo/lists/cs846
2200 notmuch tag -inbox +uw/ece750 -- folder:uwaterloo/lists/ece750
2201 notmuch tag -inbox +uw/se212 -- folder:uwaterloo/lists/se212
2202 notmuch tag -inbox +uw/se463 -- folder:uwaterloo/lists/se463
2204 notmuch tag -inbox +lists/alloytools -- folder:uwaterloo/lists/alloytools
2205 notmuch tag -inbox +lists/clvsingle -- folder:uwaterloo/lists/Clvsingle
2206 notmuch tag -inbox +lists/gsa -- folder:uwaterloo/lists/GSA
2207 notmuch tag -inbox +lists/math-grad -- folder:uwaterloo/lists/Math-grad
2208 notmuch tag -inbox +lists/scs-grads -- folder:uwaterloo/lists/scs-grads
2209 notmuch tag -inbox +lists/watform-students -- folder:uwaterloo/lists/Watform-students
2213 notmuch tag -inbox +l/emacs-devel -- folder:gnu/l/emacs-devel
2214 notmuch tag -inbox +l/emacs-orgmode -- folder:gnu/l/emacs-orgmode
2215 notmuch tag -inbox +l/emacsconf-discuss -- folder:gnu/l/emacsconf-discuss
2216 notmuch tag -inbox +l/fencepost-users -- folder:gnu/l/fencepost-users
2217 notmuch tag -inbox +l/guix-devel -- folder:gnu/l/guix-devel
2218 notmuch tag -inbox +l/guile-devel -- folder:gnu/l/guile-devel
2219 notmuch tag -inbox +l/help-gnu-emacs -- folder:gnu/l/help-gnu-emacs
2220 notmuch tag -inbox +l/info-gnu-emacs -- folder:gnu/l/info-gnu-emacs
2221 notmuch tag -inbox +l/www-commits -- folder:gnu/l/www-commits
2222 notmuch tag -inbox +l/www-discuss -- folder:gnu/l/www-discuss
2223 notmuch tag -inbox +webmasters -- folder:gnu/webmasters
2225 notmuch tag -inbox +l/deepspec -- folder:gnu/l/deepspec
2226 notmuch tag -inbox +l/haskell-cafe -- folder:gnu/l/haskell-cafe
2227 notmuch tag -inbox +l/haskell-art -- folder:gnu/l/haskell-art
2228 notmuch tag -inbox +l/notmuch -- folder:gnu/l/notmuch
2230 notmuch tag -inbox +l/~aminb/test-priv -- folder:gnu/l/~aminb/test-priv
2231 notmuch tag -inbox +l/~sircmpwn/sr.ht-admins -- folder:gnu/l/~sircmpwn/sr.ht-admins
2232 notmuch tag -inbox +l/~sircmpwn/sr.ht-announce -- folder:gnu/l/~sircmpwn/sr.ht-announce
2233 notmuch tag -inbox +l/~sircmpwn/sr.ht-dev -- folder:gnu/l/~sircmpwn/sr.ht-dev
2234 notmuch tag -inbox +l/~sircmpwn/sr.ht-discuss -- folder:gnu/l/~sircmpwn/sr.ht-discuss
2237 notmuch tag -inbox -unread +archive/notmuch -- path:archive/notmuch/**
2238 notmuch tag -inbox -unread +archive/emacs-devel -- path:archive/emacs-devel/**
2243 :header-args+: :tangle ~/.config/systemd/user/notmuch.service
2246 #+begin_src conf :tangle no
2248 Description=notmuch service
2252 ExecStart=/usr/bin/notmuch new
2253 StandardOutput=syslog
2254 StandardError=syslog
2259 :header-args+: :tangle ~/.config/systemd/user/notmuch.timer
2262 #+begin_src conf :tangle no
2264 Description=notmuch timer
2269 Unit=notmuch.service
2272 WantedBy=timers.target
2279 #+begin_src conf :tangle /sudo::/etc/pacman.conf :comments none
2283 # See the pacman.conf(5) manpage for option and repository directives
2289 # The following paths are commented out with their default values listed.
2290 # If you wish to use different paths, uncomment and update the paths.
2292 #DBPath = /var/lib/pacman/
2293 #CacheDir = /var/cache/pacman/pkg/
2294 #LogFile = /var/log/pacman.log
2295 #GPGDir = /etc/pacman.d/gnupg/
2296 #HookDir = /etc/pacman.d/hooks/
2297 HoldPkg = pacman glibc
2298 #XferCommand = /usr/bin/curl -L -C - -f -o %o %u
2299 #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
2300 #CleanMethod = KeepInstalled
2304 # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
2318 # By default, pacman accepts packages signed by keys that its local keyring
2319 # trusts (see pacman-key and its man page), as well as unsigned packages.
2320 SigLevel = Required DatabaseOptional
2321 LocalFileSigLevel = Optional
2322 #RemoteFileSigLevel = Required
2324 # NOTE: You must run `pacman-key --init` before first using pacman; the local
2325 # keyring can then be populated with the keys of all Arch/Parabola packagers
2326 # with `pacman-key --populate archlinux` and `pacman-key --populate parabola`.
2330 # - can be defined here or included from another file
2331 # - pacman will search repositories in the order defined here
2332 # - local/custom mirrors can be added here or in separate files
2333 # - repositories listed first will take precedence when packages
2334 # have identical names, regardless of version number
2335 # - URLs will have $repo replaced by the name of the current repo
2336 # - URLs will have $arch replaced by the name of the architecture
2338 # Repository entries are of the format:
2340 # Server = ServerName
2341 # Include = IncludePath
2343 # The header [repo-name] is crucial - it must be present and
2344 # uncommented to enable the repo.
2347 # The testing repositories are disabled by default. To enable, uncomment the
2348 # repo name header and Include lines. You can add preferred servers immediately
2349 # after the header, and they will be used before the default mirrors.
2351 # NOTE: Nonprism is a particular repository that aims to provide software built
2352 # and patched without services under global data surveillance programs like PRISM,
2353 # XKeyscore and Tempora. For more info see: https://wiki.parabola.nu/Nonprism
2356 #Include = /etc/pacman.d/mirrorlist
2359 #Include = /etc/pacman.d/mirrorlist
2362 Include = /etc/pacman.d/mirrorlist
2365 Include = /etc/pacman.d/mirrorlist
2368 #Include = /etc/pacman.d/mirrorlist
2371 Include = /etc/pacman.d/mirrorlist
2374 Include = /etc/pacman.d/mirrorlist
2376 #[community-testing]
2377 #Include = /etc/pacman.d/mirrorlist
2380 Include = /etc/pacman.d/mirrorlist
2382 # The PCR (Parabola Community Repository) contains packages maintained by trusted
2383 # members of the Parabola community. It also contains packages maintained by
2384 # Parabola developers, but that the developer decided didn't belong in core/libre.
2387 #Include = /etc/pacman.d/mirrorlist
2390 Include = /etc/pacman.d/mirrorlist
2392 # If you want to run 32 bit applications on your x86_64 system,
2393 # enable the libre-multilib, multilib and pcr-multilib repositories as required here.
2395 #[nonprism-multilib-testing]
2396 #Include = /etc/pacman.d/mirrorlist
2398 #[nonprism-multilib]
2399 #Include = /etc/pacman.d/mirrorlist
2401 #[libre-multilib-testing]
2402 #Include = /etc/pacman.d/mirrorlist
2405 #Include = /etc/pacman.d/mirrorlist
2408 #Include = /etc/pacman.d/mirrorlist
2411 #Include = /etc/pacman.d/mirrorlist
2413 #[pcr-multilib-testing]
2414 #Include = /etc/pacman.d/mirrorlist
2417 #Include = /etc/pacman.d/mirrorlist
2419 # Parabola also supports another community projects and personal repositories, to
2420 # find them check out this wiki page: https://wiki.parabola.nu/Repositories
2422 # An example of a custom package repository. See the pacman manpage for
2423 # tips on creating your own repositories.
2425 #SigLevel = Optional TrustAll
2426 #Server = file:///home/custompkgs
2428 Include = /etc/pacman.d/*.conf
2433 #+begin_src conf :tangle /sudo::/etc/pacman.d/mirrorlist :comments none
2434 # Parabola GNU/Linux-libre - Last Updated: Wed Dec 20 02:59:35 GMT 2017
2436 Server = http://mirror.fsf.org/parabola/$repo/os/$arch
2437 Server = http://mirror.fsf.org/parabola/$repo/os/$arch
2438 Server = http://mirror.fsf.org/parabola/$repo/os/$arch
2439 Server = http://mirror.fsf.org/parabola/$repo/os/$arch
2441 # Location: London, UK
2442 # Responsible: Parabola Project
2443 # Note: Not really a mirror, automatically redirects you to an Arch
2444 # mirror when possible. Works best specifying it a few times in a
2445 # row (404s workaround).
2446 # Server = http://redirector.parabola.nu/$repo/os/$arch
2447 Server = https://redirector.parabola.nu/$repo/os/$arch
2449 # Location: Reykjavík, Iceland
2450 # Responsible: Parabola Project
2451 # Note: Not really a mirror, automatically redirects you to a Parabola
2452 # mirror that has the file you are looking for.
2453 # Server = http://repomirror.parabola.nu/$repo/os/$arch
2454 Server = https://repomirror.parabola.nu/$repo/os/$arch
2456 # Location: Falkenstein, Germany
2457 # Server = http://mirror.grapentin.org/parabola/$repo/os/$arch
2458 Server = https://mirror.grapentin.org/parabola/$repo/os/$arch
2460 # Location: Volendam, Netherlands
2461 Server = https://jeweet.net/repo/parabola/$repo/os/$arch
2463 # Location: Amsterdam, Netherlands
2464 # Note: Not really a mirror, but a high-speed 10GiB cache for
2465 # mirror.yandex.ru/mirrors/parabola
2466 # Server = http://parabola.isacdaavid.info:8080/$repo/os/$arch
2467 Server = https://parabola.isacdaavid.info:8081/$repo/os/$arch
2469 # Location: Moscow, Russian Federation
2470 # Server = http://mirror.yandex.ru/mirrors/parabola/$repo/os/$arch
2471 Server = https://mirror.yandex.ru/mirrors/parabola/$repo/os/$arch
2473 # Location: Ho Chi Minh City, Vietnam
2474 # Server = http://mirror.freedif.org/Parabola/$repo/os/$arch
2475 Server = https://mirror.freedif.org/Parabola/$repo/os/$arch
2477 # Location: Los Angeles, CA, USA
2478 # Note: Also visit http://alfplayer.com/ for its SNAPSHOTS ARCHIVE
2479 Server = http://alfplayer.com/parabola/$repo/os/$arch
2481 # Location: Boston, MA, USA
2482 Server = http://mirror.fsf.org/parabola/$repo/os/$arch
2484 # Location: Austin, TX, USA
2485 # Server = http://parabola.serverpit.com/
2486 Server = https://parabola.serverpit.com/
2488 # Location: Reykjavík, Iceland
2489 # Responsible: Parabola Project
2490 # Note: Currently pointing to repomirror.parabola.nu
2491 # Server = http://repo.parabola.nu/$repo/os/$arch
2492 Server = https://repo.parabola.nu/$repo/os/$arch
2498 :header-args+: :tangle ~/mail/bndl.org/amin/sieve/amin.sieve :comments none
2502 require ["regex", "variables", "fileinto", "envelope",
2503 "mailbox", "imap4flags", "include"];
2507 address :is "from" ["webmasters@gnu.org", "webmasters-comment@gnu.org"]) {
2508 fileinto :create "gnu.webmasters";
2512 include :personal "lists";
2517 :header-args+: :tangle ~/mail/bndl.org/amin/sieve/lists.sieve :comments none
2521 require ["regex", "variables", "fileinto", "envelope",
2522 "mailbox", "imap4flags", "include"];
2526 header :contains "list-id"
2527 [ "<emacs-devel.gnu.org>"
2528 , "<emacs-orgmode.gnu.org>"
2529 , "<emacsconf-discuss.gnu.org>"
2530 , "<fencepost-users.gnu.org>"
2531 , "<guix-devel.gnu.org>"
2532 , "<guile-devel.gnu.org>"
2533 , "<help-gnu-emacs.gnu.org>"
2534 , "<info-gnu-emacs.gnu.org>"
2535 , "<info-guix.gnu.org>"
2536 , "<www-commits.gnu.org>"
2537 , "<www-discuss.gnu.org>"
2538 , "<deepspec.lists.cs.princeton.edu>"
2539 , "<haskell-cafe.haskell.org>"
2540 , "<haskell-art.we.lurk.org>"
2541 , "<notmuch.notmuchmail.org>"
2543 if header :regex "list-id" "<([a-z_0-9-]+)[.@]" {
2544 set :lower "listname" "${1}";
2545 fileinto :create "gnu.${listname}";
2550 # sr.ht lists, with dots ('.') omitted
2552 header :contains "list-id"
2553 [ "<~bandali/public-inbox@lists.sr.ht>"
2554 , "<~sircmpwn/sr.ht-admins@lists.sr.ht>"
2555 , "<~sircmpwn/sr.ht-announce@lists.sr.ht>"
2556 , "<~sircmpwn/sr.ht-dev@lists.sr.ht>"
2557 , "<~sircmpwn/sr.ht-discuss@lists.sr.ht>"
2559 if header :regex "list-id" "(~[a-z_0-9-]+)/([^.]*)\\.?([^.]*)\\.?([^.]*)\\.?([^.]*)\\.?([^.]*)\\.?([^.]*)@" {
2560 set :lower "username" "${1}";
2561 set :lower "listname" "${2}${3}${4}${5}${6}${7}";
2562 fileinto :create "gnu.${username}.${listname}";
2570 :header-args+: :tangle "/sudo::/etc/systemd/system/powertop.service"
2575 Description=Powertop tunings
2578 ExecStart=/usr/bin/powertop --auto-tune
2579 RemainAfterExit=true
2582 WantedBy=multi-user.target
2587 :header-args+: :tangle ~/.config/redshift.conf :comments none
2591 ; Global settings for redshift
2593 ; Set the day and night screen temperatures (Neutral is 6500K)
2604 ; Enable/Disable a smooth transition between day and night
2605 ; 0 will cause a direct change from day to night screen temperature.
2606 ; 1 will gradually increase or decrease the screen temperature.
2609 ; Set the screen brightness. Default is 1.0.
2611 ; It is also possible to use different settings for day and night
2612 ; since version 1.8.
2614 ;brightness-night=0.4
2615 ; Set the screen gamma (for all colors, or each color channel
2620 ; This can also be set individually for day and night since
2622 ;gamma-day=0.8:0.7:0.8
2625 ; Set the location-provider: 'geoclue2' or 'manual'
2626 ; type 'redshift -l list' to see possible values.
2627 ; The location provider settings are in a different section.
2628 ;location-provider=manual
2629 location-provider=geoclue2
2631 ; Set the adjustment-method: 'randr', 'vidmode'
2632 ; type 'redshift -m list' to see all possible values.
2633 ; 'randr' is the preferred method, 'vidmode' is an older API.
2634 ; but works in some cases when 'randr' does not.
2635 ; The adjustment method settings are in a different section.
2636 adjustment-method=randr
2638 ; Configuration of the location-provider:
2639 ; type 'redshift -l PROVIDER:help' to see the settings.
2640 ; ex: 'redshift -l manual:help'
2641 ; Keep in mind that longitudes west of Greenwich (e.g. the Americas)
2642 ; are negative numbers.
2647 ; Configuration of the adjustment-method
2648 ; type 'redshift -m METHOD:help' to see the settings.
2649 ; ex: 'redshift -m randr:help'
2650 ; In this example, randr is configured to adjust screen 1.
2651 ; Note that the numbering starts from 0, so this is actually the
2652 ; second screen. If this option is not specified, Redshift will try
2653 ; to adjust _all_ screens.
2660 :header-args+: :tangle ~/.config/rofi/config
2664 ! rofi.font: Ubuntu Mono 13
2665 ! rofi.font: Inconsolata 16
2666 ! rofi.font: Iosevka 13
2667 ! rofi.font: Source Code Pro 11
2668 rofi.font: Source Code Pro 10.5
2669 rofi.modi: run,window
2677 !rofi.theme: /usr/share/rofi/themes//Arc.rasi
2678 !rofi.theme: /usr/share/rofi/themes//Paper.rasi
2679 !rofi.theme: /usr/share/rofi/themes//sidebar.rasi
2681 rofi.theme: /usr/share/rofi/themes//gruvbox-light.rasi
2686 :header-args+: :tangle ~/.config/rofi-pass/config
2690 # permanently set alternative root dir
2691 # root=/path/to/root
2693 # rofi command. Make sure to have "$@" as last argument
2695 #rofi -no-auto-select -kb-accept-entry "!Return" -i -no-levenshtein-sort "$@"
2696 rofi -i -no-auto-select -kb-accept-entry "!Return" "$@"
2699 # xdotool needs the keyboard layout to be set using setxkbmap
2700 # You can do this in your autostart scripts (e.g. xinitrc)
2702 # If for some reason, you cannot do this, you can set the command here.
2703 # and set fix_layout to true
2712 USERNAME_field='user'
2713 AUTOTYPE_field='autotype'
2715 # delay to be used for :delay keyword
2718 ## Programs to be used
2727 default_do='menu' # menu, autotype, copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl
2730 default_autotype='user :tab pass'
2732 # color of the help messages
2733 # leave empty for autodetection
2734 help_color="#4872FF"
2736 # Clipboard settings
2737 # Possible options: primary, clipboard, both
2740 # Options for generating new password entries
2741 # default_user is also used for password files that have no user field.
2743 default_user2=bandali
2746 # Custom Keybindings
2770 :header-args+: :tangle ~/.config/sway/config
2784 set $menu rofi -show run -display-run '> ' -display-window ' 🗔 '
2786 ### Output configuration
2788 # Default wallpaper (more resolutions are available in __DATADIR__/backgrounds/sway/)
2789 output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
2791 # Example configuration:
2793 # output HDMI-A-1 resolution 1920x1080 position 1920,0
2795 # You can get the names of your outputs by running: swaymsg -t get_outputs
2797 ### Idle configuration
2800 timeout 120 '[ -f ~/.nosleep ] || swaymsg "output * dpms off"' \
2801 resume '[ -f ~/.nosleep ] || swaymsg "output * dpms on"' \
2809 bindsym $mod+Return exec $term -name floating
2810 bindsym $mod+Shift+Return exec $term
2811 for_window [class="URxvt" instance="floating"] floating enable
2813 # kill focused window
2814 bindsym $mod+Shift+q kill
2816 # start your launcher
2817 bindsym $mod+d exec $menu
2820 bindsym $mod2+space exec rofi-pass
2822 # Drag floating windows by holding down $mod and left mouse button.
2823 # Resize them with right mouse button + $mod.
2824 # Despite the name, also works for non-floating windows.
2825 # Change normal to inverse to use left mouse button for resizing and right
2826 # mouse button for dragging.
2827 floating_modifier $mod normal
2829 # reload the configuration file
2830 bindsym $mod+Shift+c reload
2832 # exit sway (logs you out of your wayland session)
2833 # bindsym $mod+Shift+e exit
2835 bindsym $mod+apostrophe exec rofi-light # rofi-based brightness chooser
2836 bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness
2837 bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness
2839 bindsym XF86AudioRaiseVolume exec pamixer --allow-boost --increase 5
2840 bindsym XF86AudioLowerVolume exec pamixer --allow-boost --decrease 5
2841 bindsym XF86AudioMute exec pamixer --toggle-mute
2842 bindsym XF86AudioMicMute exec pactl set-source-mute 1 toggle
2844 bindsym $mod+Shift+apostrophe exec rofi-remmina.py # choose remmina connection
2846 # original sway workspace switch and window move
2847 bindsym $mod+bracketleft workspace prev
2848 bindsym $mod+bracketright workspace next
2849 bindsym $mod+braceleft move container to workspace prev
2850 bindsym $mod+braceright move container to workspace next
2852 # bspwm-esque workspace switch and window move
2853 bindsym $mod2+bracketleft exec sway-ws-util switch prev
2854 bindsym $mod2+bracketright exec sway-ws-util switch next
2855 bindsym $mod2+braceleft exec sway-ws-util move prev follow
2856 bindsym $mod2+braceright exec sway-ws-util move next follow
2860 # Move your focus around
2861 bindsym $mod+$left focus left
2862 bindsym $mod+$down focus down
2863 bindsym $mod+$up focus up
2864 bindsym $mod+$right focus right
2865 # or use $mod+[up|down|left|right]
2866 bindsym $mod+Left focus left
2867 bindsym $mod+Down focus down
2868 bindsym $mod+Up focus up
2869 bindsym $mod+Right focus right
2871 # _move_ the focused window with the same, but add Shift
2872 bindsym $mod+Shift+$left move left
2873 bindsym $mod+Shift+$down move down
2874 bindsym $mod+Shift+$up move up
2875 bindsym $mod+Shift+$right move right
2876 # ditto, with arrow keys
2877 bindsym $mod+Shift+Left move left
2878 bindsym $mod+Shift+Down move down
2879 bindsym $mod+Shift+Up move up
2880 bindsym $mod+Shift+Right move right
2884 # switch to workspace
2885 bindsym $mod+1 workspace 1
2886 bindsym $mod+2 workspace 2
2887 bindsym $mod+3 workspace 3
2888 bindsym $mod+4 workspace 4
2889 bindsym $mod+5 workspace 5
2890 bindsym $mod+6 workspace 6
2891 bindsym $mod+7 workspace 7
2892 bindsym $mod+8 workspace 8
2893 bindsym $mod+9 workspace 9
2894 bindsym $mod+0 workspace 10
2895 # move focused container to workspace
2896 bindsym $mod+Shift+1 move container to workspace 1
2897 bindsym $mod+Shift+2 move container to workspace 2
2898 bindsym $mod+Shift+3 move container to workspace 3
2899 bindsym $mod+Shift+4 move container to workspace 4
2900 bindsym $mod+Shift+5 move container to workspace 5
2901 bindsym $mod+Shift+6 move container to workspace 6
2902 bindsym $mod+Shift+7 move container to workspace 7
2903 bindsym $mod+Shift+8 move container to workspace 8
2904 bindsym $mod+Shift+9 move container to workspace 9
2905 bindsym $mod+Shift+0 move container to workspace 10
2906 # Note: workspaces can have any name you want, not just numbers.
2907 # We just use 1-10 as the default.
2911 # You can "split" the current object of your focus with
2912 # $mod+b or $mod+v, for horizontal and vertical splits
2914 bindsym $mod+b splith
2915 bindsym $mod+v splitv
2917 # Switch the current container between different layout styles
2918 bindsym $mod+s layout stacking
2919 bindsym $mod+w layout tabbed
2920 bindsym $mod+e layout toggle split
2922 # Make the current focus fullscreen
2923 bindsym $mod+f fullscreen
2925 # Toggle sticky-ness of the current (floating) window
2926 bindsym $mod+$mod2+space sticky toggle
2928 # Toggle the current focus between tiling and floating mode
2929 bindsym $mod+Shift+space floating toggle
2931 # Swap focus between the tiling area and the floating area
2932 bindsym $mod+space focus mode_toggle
2934 # move focus to the parent container
2935 bindsym $mod+a focus parent
2939 # Sway has a "scratchpad", which is a bag of holding for windows.
2940 # You can send windows there and get them back later.
2942 # Move the currently focused window to the scratchpad
2943 bindsym $mod+Shift+minus move scratchpad
2945 # Show the next scratchpad window or hide the focused scratchpad window.
2946 # If there are multiple scratchpad windows, this command cycles through them.
2947 bindsym $mod+minus scratchpad show
2949 # Resizing containers:
2952 # left will shrink the containers width
2953 # right will grow the containers width
2954 # up will shrink the containers height
2955 # down will grow the containers height
2956 bindsym $left resize shrink width 10px
2957 bindsym $down resize grow height 10px
2958 bindsym $up resize shrink height 10px
2959 bindsym $right resize grow width 10px
2961 # ditto, with arrow keys
2962 bindsym Left resize shrink width 10px
2963 bindsym Down resize grow height 10px
2964 bindsym Up resize shrink height 10px
2965 bindsym Right resize grow width 10px
2967 # return to default mode
2968 bindsym Return mode "default"
2969 bindsym Escape mode "default"
2971 bindsym $mod+Shift+r mode "resize"
2977 set $mode_system System (l)ock, (e)xit sway, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown
2978 mode "$mode_system" {
2979 bindsym l exec swaylock, mode "default"
2980 bindsym e exec swaymsg exit, mode "default"
2981 bindsym s exec systemctl suspend, mode "default"
2982 bindsym h exec systemctl hibernate, mode "default"
2983 bindsym r exec systemctl reboot, mode "default"
2984 bindsym Shift+s exec systemctl poweroff -i, mode "default"
2986 # back to normal: Enter, Escape, or q
2987 bindsym Return mode "default"
2988 bindsym Escape mode "default"
2989 bindsym q mode "default"
2991 # bindsym XF86PowerOff mode "$mode_system"
2992 bindsym $mod+Shift+e mode "$mode_system"
2998 bindsym $mod+$mod2+p exec ([ ! -e ~/.nosleep ] && touch ~/.nosleep || rm ~/.nosleep) && killall -USR1 i3status
3004 bindsym $mod+Shift+n mode notifications
3005 mode notifications {
3006 bindsym Return exec makoctl invoke; exec makoctl dismiss; mode default
3007 bindsym d exec makoctl dismiss; mode default
3008 bindsym Shift+d exec makoctl dismiss -a; mode default
3010 bindsym Escape mode default
3011 bindsym q mode default
3018 bindsym $mod+Shift+s mode screenshot
3020 bindsym a exec grim $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default
3021 bindsym r exec slurp | grim -g - $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default
3023 bindsym Escape mode default
3024 bindsym q mode default
3028 # Window configurations
3030 for_window [class="mpv"] floating enable
3031 for_window [class="TelegramDesktop"] floating enable
3032 for_window [app_id="pavucontrol"] floating enable
3033 for_window [app_id="meld"] floating enable
3034 for_window [app_id="nm-connection-editor"] floating enable
3039 # Read `man 5 sway-bar` for more information about this section.
3045 inactive_workspace #21212100 #21212100 #5c5c5c
3047 status_command i3status | my-i3status.py
3050 # font pango: benis uushi 9
3051 # font pango: Ubuntu Mono 11
3052 # font pango: Inconsolata 11
3053 font pango: DejaVu Sans Mono 9
3054 # font pango: Liberation Mono 9
3056 exec xrdb .Xresources
3057 # exec pgrep -x "systemd-inhibit" || \
3058 # systemd-inhibit --what=handle-power-key --who=aminb \
3059 # --why="Handle power button in sway" sleep infinity
3060 exec mako 2>&1 >/tmp/mako.log
3061 exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
3063 include /etc/sway/config.d/*
3064 include ~/.config/sway/`hostname`
3066 exec systemd-notify --ready || true
3072 :header-args+: :tangle ~/.config/sway/langa
3076 input "2:7:SynPS/2_Synaptics_TouchPad" {
3080 natural_scroll enabled
3081 click_method clickfinger
3084 input "1:1:AT_Translated_Set_2_keyboard" {
3088 xkb_options ctrl:nocaps,altwin:swap_alt_win,grp:shifts_toggle
3094 :header-args+: :tangle ~/.config/sway/shemshak
3098 input "1739:31251:DLL07BE:01_06CB:7A13_Touchpad" {
3101 natural_scroll enabled
3102 middle_emulation enabled
3103 click_method clickfinger
3106 input "1:1:AT_Translated_Set_2_keyboard" {
3110 xkb_options ctrl:nocaps,altwin:swap_alt_win,ctrl:rctrl_ralt,grp:shifts_toggle
3115 :header-args+: :tangle ~/.config/swaylock/config
3119 image=/home/amin/usr/pics/wp/wp2445784-blurred-wallpapers.jpg
3124 Keep boot messages on tty1 (see [[https://wiki.archlinux.org/index.php/getty#Have_boot_messages_stay_on_tty1][here]])
3126 #+begin_src conf :tangle /sudo::/etc/systemd/system/getty@tty1.service.d/noclear.conf
3135 #+begin_src conf :tangle (when (and (eq system-type 'gnu/linux) (string= (system-name) "langa")) "/sudo::/etc/default/tlp")
3136 # ------------------------------------------------------------------------------
3137 # tlp - Parameters for power saving
3138 # See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html
3140 # Hint: some features are disabled by default, remove the leading # to enable
3143 # Set to 0 to disable, 1 to enable TLP.
3146 # Operation mode when no power supply can be detected: AC, BAT.
3147 # Concerns some desktop and embedded hardware only.
3150 # Operation mode select: 0=depend on power source, 1=always use TLP_DEFAULT_MODE
3151 # Hint: use in conjunction with TLP_DEFAULT_MODE=BAT for BAT settings on AC.
3152 TLP_PERSISTENT_DEFAULT=0
3154 # Seconds laptop mode has to wait after the disk goes idle before doing a sync.
3155 # Non-zero value enables, zero disables laptop mode.
3156 DISK_IDLE_SECS_ON_AC=0
3157 DISK_IDLE_SECS_ON_BAT=2
3159 # Dirty page values (timeouts in secs).
3160 MAX_LOST_WORK_SECS_ON_AC=15
3161 MAX_LOST_WORK_SECS_ON_BAT=60
3163 # Hint: CPU parameters below are disabled by default, remove the leading #
3164 # to enable them, otherwise kernel default values are used.
3166 # Select a CPU frequency scaling governor.
3167 # Intel Core i processor with intel_pstate driver:
3168 # powersave(*), performance.
3169 # Older hardware with acpi-cpufreq driver:
3170 # ondemand(*), powersave, performance, conservative, schedutil.
3171 # (*) is recommended.
3172 # Hint: use tlp-stat -p to show the active driver and available governors.
3174 # powersave for intel_pstate and ondemand for acpi-cpufreq are power
3175 # efficient for *almost all* workloads and therefore kernel and most
3176 # distributions have chosen them as defaults. If you still want to change,
3177 # you should know what you're doing! You *must* disable your distribution's
3178 # governor settings or conflicts will occur.
3179 #CPU_SCALING_GOVERNOR_ON_AC=powersave
3180 #CPU_SCALING_GOVERNOR_ON_BAT=powersave
3182 # Set the min/max frequency available for the scaling governor.
3183 # Possible values strongly depend on your CPU. For available frequencies see
3184 # the output of tlp-stat -p.
3185 #CPU_SCALING_MIN_FREQ_ON_AC=0
3186 #CPU_SCALING_MAX_FREQ_ON_AC=0
3187 #CPU_SCALING_MIN_FREQ_ON_BAT=0
3188 #CPU_SCALING_MAX_FREQ_ON_BAT=0
3190 # Set energy performance hints (HWP) for Intel P-state governor:
3191 # performance, balance_performance, default, balance_power, power
3192 # Values are given in order of increasing power saving.
3193 # Note: Intel Skylake or newer CPU and Kernel >= 4.10 required.
3194 CPU_HWP_ON_AC=balance_performance
3195 CPU_HWP_ON_BAT=balance_power
3197 # Set Intel P-state performance: 0..100 (%).
3198 # Limit the max/min P-state to control the power dissipation of the CPU.
3199 # Values are stated as a percentage of the available performance.
3200 # Requires an Intel Core i processor with intel_pstate driver.
3201 #CPU_MIN_PERF_ON_AC=0
3202 #CPU_MAX_PERF_ON_AC=100
3203 #CPU_MIN_PERF_ON_BAT=0
3204 #CPU_MAX_PERF_ON_BAT=30
3206 # Set the CPU "turbo boost" feature: 0=disable, 1=allow
3207 # Requires an Intel Core i processor.
3209 # - This may conflict with your distribution's governor settings
3210 # - A value of 1 does *not* activate boosting, it just allows it
3214 # Minimize number of used CPU cores/hyper-threads under light load conditions:
3215 # 0=disable, 1=enable.
3216 SCHED_POWERSAVE_ON_AC=0
3217 SCHED_POWERSAVE_ON_BAT=1
3219 # Kernel NMI Watchdog:
3220 # 0=disable (default, saves power), 1=enable (for kernel debugging only).
3223 # Change CPU voltages aka "undervolting" - Kernel with PHC patch required.
3224 # Frequency voltage pairs are written to:
3225 # /sys/devices/system/cpu/cpu0/cpufreq/phc_controls
3226 # CAUTION: only use this, if you thoroughly understand what you are doing!
3227 #PHC_CONTROLS="F:V F:V F:V F:V"
3229 # Set CPU performance versus energy savings policy:
3230 # performance, balance-performance, default, balance-power, power.
3231 # Values are given in order of increasing power saving.
3232 # Requires kernel module msr and x86_energy_perf_policy from linux-tools.
3233 ENERGY_PERF_POLICY_ON_AC=performance
3234 ENERGY_PERF_POLICY_ON_BAT=balance-power
3236 # Disk devices; separate multiple devices with spaces (default: sda).
3237 # Devices can be specified by disk ID also (lookup with: tlp diskid).
3238 DISK_DEVICES="sda sdb"
3240 # Disk advanced power management level: 1..254, 255 (max saving, min, off).
3241 # Levels 1..127 may spin down the disk; 255 allowable on most drives.
3242 # Separate values for multiple disks with spaces. Use the special value 'keep'
3243 # to keep the hardware default for the particular disk.
3244 DISK_APM_LEVEL_ON_AC="254 254"
3245 DISK_APM_LEVEL_ON_BAT="128 128"
3247 # Hard disk spin down timeout:
3248 # 0: spin down disabled
3249 # 1..240: timeouts from 5s to 20min (in units of 5s)
3250 # 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
3251 # See 'man hdparm' for details.
3252 # Separate values for multiple disks with spaces. Use the special value 'keep'
3253 # to keep the hardware default for the particular disk.
3254 #DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
3255 #DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"
3257 # Select IO scheduler for the disk devices: cfq, deadline, noop (Default: cfq).
3258 # Separate values for multiple disks with spaces. Use the special value 'keep'
3259 # to keep the kernel default scheduler for the particular disk.
3260 #DISK_IOSCHED="cfq cfq"
3262 # AHCI link power management (ALPM) for disk devices:
3263 # min_power, med_power_with_dipm(*), medium_power, max_performance.
3264 # (*) Kernel >= 4.15 required, then recommended.
3265 # Multiple values separated with spaces are tried sequentially until success.
3266 SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
3267 SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
3269 # Exclude host devices from AHCI link power management.
3270 # Separate multiple hosts with spaces.
3271 #SATA_LINKPWR_BLACKLIST="host1"
3273 # Runtime Power Management for AHCI host and disks devices:
3274 # on=disable, auto=enable.
3275 # EXPERIMENTAL ** WARNING: auto will most likely cause system lockups/data loss.
3276 #AHCI_RUNTIME_PM_ON_AC=on
3277 #AHCI_RUNTIME_PM_ON_BAT=on
3279 # Seconds of inactivity before disk is suspended.
3280 AHCI_RUNTIME_PM_TIMEOUT=15
3282 # PCI Express Active State Power Management (PCIe ASPM):
3283 # default, performance, powersave.
3284 PCIE_ASPM_ON_AC=performance
3285 PCIE_ASPM_ON_BAT=powersave
3287 # Radeon graphics clock speed (profile method): low, mid, high, auto, default;
3288 # auto = mid on BAT, high on AC; default = use hardware defaults.
3289 RADEON_POWER_PROFILE_ON_AC=high
3290 RADEON_POWER_PROFILE_ON_BAT=low
3292 # Radeon dynamic power management method (DPM): battery, performance.
3293 RADEON_DPM_STATE_ON_AC=performance
3294 RADEON_DPM_STATE_ON_BAT=battery
3296 # Radeon DPM performance level: auto, low, high; auto is recommended.
3297 RADEON_DPM_PERF_LEVEL_ON_AC=auto
3298 RADEON_DPM_PERF_LEVEL_ON_BAT=auto
3300 # WiFi power saving mode: on=enable, off=disable; not supported by all adapters.
3304 # Disable wake on LAN: Y/N.
3307 # Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
3308 # A value of 0 disables, >=1 enables power saving (recommended: 1).
3309 SOUND_POWER_SAVE_ON_AC=0
3310 SOUND_POWER_SAVE_ON_BAT=0
3312 # Disable controller too (HDA only): Y/N.
3313 SOUND_POWER_SAVE_CONTROLLER=N
3315 # Power off optical drive in UltraBay/MediaBay: 0=disable, 1=enable.
3316 # Drive can be powered on again by releasing (and reinserting) the eject lever
3317 # or by pressing the disc eject button on newer models.
3318 # Note: an UltraBay/MediaBay hard disk is never powered off.
3319 BAY_POWEROFF_ON_AC=0
3320 BAY_POWEROFF_ON_BAT=0
3321 # Optical drive device to power off (default sr0).
3324 # Runtime Power Management for PCI(e) bus devices: on=disable, auto=enable.
3326 RUNTIME_PM_ON_BAT=auto
3328 # Exclude PCI(e) device adresses the following list from Runtime PM
3329 # (separate with spaces). Use lspci to get the adresses (1st column).
3330 #RUNTIME_PM_BLACKLIST="bb:dd.f 11:22.3 44:55.6"
3332 # Exclude PCI(e) devices assigned to the listed drivers from Runtime PM.
3333 # Default when unconfigured is "amdgpu nouveau nvidia radeon" which
3334 # prevents accidential power-on of dGPU in hybrid graphics setups.
3335 # Use "" to disable the feature completely.
3336 # Separate multiple drivers with spaces.
3337 #RUNTIME_PM_DRIVER_BLACKLIST="amdgpu nouveau nvidia radeon"
3339 # Set to 0 to disable, 1 to enable USB autosuspend feature.
3342 # Exclude listed devices from USB autosuspend (separate with spaces).
3343 # Use lsusb to get the ids.
3344 # Note: input devices (usbhid) are excluded automatically
3345 #USB_BLACKLIST="1111:2222 3333:4444"
3347 # Bluetooth devices are excluded from USB autosuspend:
3348 # 0=do not exclude, 1=exclude.
3349 USB_BLACKLIST_BTUSB=0
3351 # Phone devices are excluded from USB autosuspend:
3352 # 0=do not exclude, 1=exclude (enable charging).
3353 USB_BLACKLIST_PHONE=0
3355 # Printers are excluded from USB autosuspend:
3356 # 0=do not exclude, 1=exclude.
3357 USB_BLACKLIST_PRINTER=1
3359 # WWAN devices are excluded from USB autosuspend:
3360 # 0=do not exclude, 1=exclude.
3361 USB_BLACKLIST_WWAN=1
3363 # Include listed devices into USB autosuspend even if already excluded
3364 # by the blacklists above (separate with spaces).
3365 # Use lsusb to get the ids.
3366 #USB_WHITELIST="1111:2222 3333:4444"
3368 # Set to 1 to disable autosuspend before shutdown, 0 to do nothing
3369 # (workaround for USB devices that cause shutdown problems).
3370 #USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1
3372 # Restore radio device state (Bluetooth, WiFi, WWAN) from previous shutdown
3373 # on system startup: 0=disable, 1=enable.
3374 # Hint: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below
3375 # are ignored when this is enabled!
3376 #RESTORE_DEVICE_STATE_ON_STARTUP=0
3377 RESTORE_DEVICE_STATE_ON_STARTUP=1
3379 # Radio devices to disable on startup: bluetooth, wifi, wwan.
3380 # Separate multiple devices with spaces.
3381 #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"
3383 # Radio devices to enable on startup: bluetooth, wifi, wwan.
3384 # Separate multiple devices with spaces.
3385 #DEVICES_TO_ENABLE_ON_STARTUP="wifi"
3387 # Radio devices to disable on shutdown: bluetooth, wifi, wwan.
3388 # (workaround for devices that are blocking shutdown).
3389 #DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"
3391 # Radio devices to enable on shutdown: bluetooth, wifi, wwan.
3392 # (to prevent other operating systems from missing radios).
3393 #DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan"
3395 # Radio devices to enable on AC: bluetooth, wifi, wwan.
3396 #DEVICES_TO_ENABLE_ON_AC="bluetooth wifi wwan"
3398 # Radio devices to disable on battery: bluetooth, wifi, wwan.
3399 #DEVICES_TO_DISABLE_ON_BAT="bluetooth wifi wwan"
3400 DEVICES_TO_DISABLE_ON_BAT="bluetooth"
3402 # Radio devices to disable on battery when not in use (not connected):
3403 # bluetooth, wifi, wwan.
3404 #DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth wifi wwan"
3406 # Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module
3407 # required). Charging starts when the remaining capacity falls below the
3408 # START_CHARGE_THRESH value and stops when exceeding the STOP_CHARGE_THRESH value.
3409 # Main / Internal battery (values in %)
3410 #START_CHARGE_THRESH_BAT0=75
3411 #STOP_CHARGE_THRESH_BAT0=80
3412 # Ultrabay / Slice / Replaceable battery (values in %)
3413 #START_CHARGE_THRESH_BAT1=75
3414 #STOP_CHARGE_THRESH_BAT1=80
3416 # Restore charge thresholds when AC is unplugged: 0=disable, 1=enable.
3417 #RESTORE_THRESHOLDS_ON_BAT=1
3419 # ------------------------------------------------------------------------------
3420 # tlp-rdw - Parameters for the radio device wizard
3421 # Possible devices: bluetooth, wifi, wwan.
3424 # - Parameters are disabled by default, remove the leading # to enable them
3425 # - Separate multiple radio devices with spaces
3427 # Radio devices to disable on connect.
3428 #DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
3429 #DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
3430 #DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"
3432 # Radio devices to enable on disconnect.
3433 #DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
3434 #DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
3435 #DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""
3437 # Radio devices to enable/disable when docked.
3438 #DEVICES_TO_ENABLE_ON_DOCK=""
3439 #DEVICES_TO_DISABLE_ON_DOCK=""
3441 # Radio devices to enable/disable when undocked.
3442 #DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
3443 #DEVICES_TO_DISABLE_ON_UNDOCK=""
3448 #+begin_src conf :tangle (when (and (eq system-type 'gnu/linux) (string= (system-name) "shemshak")) "/sudo::/etc/default/tlp")
3449 # ------------------------------------------------------------------------------
3450 # tlp - Parameters for power saving
3451 # See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html
3453 # Hint: some features are disabled by default, remove the leading # to enable
3456 # Set to 0 to disable, 1 to enable TLP.
3459 # Operation mode when no power supply can be detected: AC, BAT.
3460 # Concerns some desktop and embedded hardware only.
3463 # Operation mode select: 0=depend on power source, 1=always use TLP_DEFAULT_MODE
3464 # Hint: use in conjunction with TLP_DEFAULT_MODE=BAT for BAT settings on AC.
3465 TLP_PERSISTENT_DEFAULT=0
3467 # Seconds laptop mode has to wait after the disk goes idle before doing a sync.
3468 # Non-zero value enables, zero disables laptop mode.
3469 DISK_IDLE_SECS_ON_AC=0
3470 DISK_IDLE_SECS_ON_BAT=2
3472 # Dirty page values (timeouts in secs).
3473 MAX_LOST_WORK_SECS_ON_AC=15
3474 MAX_LOST_WORK_SECS_ON_BAT=60
3476 # Hint: CPU parameters below are disabled by default, remove the leading #
3477 # to enable them, otherwise kernel default values are used.
3479 # Select a CPU frequency scaling governor.
3480 # Intel Core i processor with intel_pstate driver:
3481 # powersave(*), performance.
3482 # Older hardware with acpi-cpufreq driver:
3483 # ondemand(*), powersave, performance, conservative, schedutil.
3484 # (*) is recommended.
3485 # Hint: use tlp-stat -p to show the active driver and available governors.
3487 # powersave for intel_pstate and ondemand for acpi-cpufreq are power
3488 # efficient for *almost all* workloads and therefore kernel and most
3489 # distributions have chosen them as defaults. If you still want to change,
3490 # you should know what you're doing! You *must* disable your distribution's
3491 # governor settings or conflicts will occur.
3492 #CPU_SCALING_GOVERNOR_ON_AC=powersave
3493 #CPU_SCALING_GOVERNOR_ON_BAT=powersave
3495 # Set the min/max frequency available for the scaling governor.
3496 # Possible values strongly depend on your CPU. For available frequencies see
3497 # the output of tlp-stat -p.
3498 #CPU_SCALING_MIN_FREQ_ON_AC=0
3499 #CPU_SCALING_MAX_FREQ_ON_AC=0
3500 #CPU_SCALING_MIN_FREQ_ON_BAT=0
3501 #CPU_SCALING_MAX_FREQ_ON_BAT=0
3503 # Set energy performance hints (HWP) for Intel P-state governor:
3504 # performance, balance_performance, default, balance_power, power
3505 # Values are given in order of increasing power saving.
3506 # Note: Intel Skylake or newer CPU and Kernel >= 4.10 required.
3507 CPU_HWP_ON_AC=balance_performance
3508 CPU_HWP_ON_BAT=balance_power
3510 # Set Intel P-state performance: 0..100 (%).
3511 # Limit the max/min P-state to control the power dissipation of the CPU.
3512 # Values are stated as a percentage of the available performance.
3513 # Requires an Intel Core i processor with intel_pstate driver.
3514 #CPU_MIN_PERF_ON_AC=0
3515 #CPU_MAX_PERF_ON_AC=100
3516 #CPU_MIN_PERF_ON_BAT=0
3517 #CPU_MAX_PERF_ON_BAT=30
3519 # Set the CPU "turbo boost" feature: 0=disable, 1=allow
3520 # Requires an Intel Core i processor.
3522 # - This may conflict with your distribution's governor settings
3523 # - A value of 1 does *not* activate boosting, it just allows it
3527 # Minimize number of used CPU cores/hyper-threads under light load conditions:
3528 # 0=disable, 1=enable.
3529 SCHED_POWERSAVE_ON_AC=0
3530 SCHED_POWERSAVE_ON_BAT=1
3532 # Kernel NMI Watchdog:
3533 # 0=disable (default, saves power), 1=enable (for kernel debugging only).
3536 # Change CPU voltages aka "undervolting" - Kernel with PHC patch required.
3537 # Frequency voltage pairs are written to:
3538 # /sys/devices/system/cpu/cpu0/cpufreq/phc_controls
3539 # CAUTION: only use this, if you thoroughly understand what you are doing!
3540 #PHC_CONTROLS="F:V F:V F:V F:V"
3542 # Set CPU performance versus energy savings policy:
3543 # performance, balance-performance, default, balance-power, power.
3544 # Values are given in order of increasing power saving.
3545 # Requires kernel module msr and x86_energy_perf_policy from linux-tools.
3546 ENERGY_PERF_POLICY_ON_AC=performance
3547 ENERGY_PERF_POLICY_ON_BAT=balance-power
3549 # Disk devices; separate multiple devices with spaces (default: sda).
3550 # Devices can be specified by disk ID also (lookup with: tlp diskid).
3551 DISK_DEVICES="sda sdb"
3553 # Disk advanced power management level: 1..254, 255 (max saving, min, off).
3554 # Levels 1..127 may spin down the disk; 255 allowable on most drives.
3555 # Separate values for multiple disks with spaces. Use the special value 'keep'
3556 # to keep the hardware default for the particular disk.
3557 DISK_APM_LEVEL_ON_AC="254 254"
3558 DISK_APM_LEVEL_ON_BAT="128 128"
3560 # Hard disk spin down timeout:
3561 # 0: spin down disabled
3562 # 1..240: timeouts from 5s to 20min (in units of 5s)
3563 # 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
3564 # See 'man hdparm' for details.
3565 # Separate values for multiple disks with spaces. Use the special value 'keep'
3566 # to keep the hardware default for the particular disk.
3567 #DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
3568 #DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"
3570 # Select IO scheduler for the disk devices: cfq, deadline, noop (Default: cfq).
3571 # Separate values for multiple disks with spaces. Use the special value 'keep'
3572 # to keep the kernel default scheduler for the particular disk.
3573 #DISK_IOSCHED="cfq cfq"
3575 # AHCI link power management (ALPM) for disk devices:
3576 # min_power, med_power_with_dipm(*), medium_power, max_performance.
3577 # (*) Kernel >= 4.15 required, then recommended.
3578 # Multiple values separated with spaces are tried sequentially until success.
3579 SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
3580 SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
3582 # Exclude host devices from AHCI link power management.
3583 # Separate multiple hosts with spaces.
3584 #SATA_LINKPWR_BLACKLIST="host1"
3586 # Runtime Power Management for AHCI host and disks devices:
3587 # on=disable, auto=enable.
3588 # EXPERIMENTAL ** WARNING: auto will most likely cause system lockups/data loss.
3589 #AHCI_RUNTIME_PM_ON_AC=on
3590 #AHCI_RUNTIME_PM_ON_BAT=on
3592 # Seconds of inactivity before disk is suspended.
3593 AHCI_RUNTIME_PM_TIMEOUT=15
3595 # PCI Express Active State Power Management (PCIe ASPM):
3596 # default, performance, powersave.
3597 PCIE_ASPM_ON_AC=performance
3598 PCIE_ASPM_ON_BAT=powersave
3600 # Radeon graphics clock speed (profile method): low, mid, high, auto, default;
3601 # auto = mid on BAT, high on AC; default = use hardware defaults.
3602 RADEON_POWER_PROFILE_ON_AC=high
3603 RADEON_POWER_PROFILE_ON_BAT=low
3605 # Radeon dynamic power management method (DPM): battery, performance.
3606 RADEON_DPM_STATE_ON_AC=performance
3607 RADEON_DPM_STATE_ON_BAT=battery
3609 # Radeon DPM performance level: auto, low, high; auto is recommended.
3610 RADEON_DPM_PERF_LEVEL_ON_AC=auto
3611 RADEON_DPM_PERF_LEVEL_ON_BAT=auto
3613 # WiFi power saving mode: on=enable, off=disable; not supported by all adapters.
3617 # Disable wake on LAN: Y/N.
3620 # Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
3621 # A value of 0 disables, >=1 enables power saving (recommended: 1).
3622 SOUND_POWER_SAVE_ON_AC=0
3623 SOUND_POWER_SAVE_ON_BAT=0
3625 # Disable controller too (HDA only): Y/N.
3626 SOUND_POWER_SAVE_CONTROLLER=N
3628 # Power off optical drive in UltraBay/MediaBay: 0=disable, 1=enable.
3629 # Drive can be powered on again by releasing (and reinserting) the eject lever
3630 # or by pressing the disc eject button on newer models.
3631 # Note: an UltraBay/MediaBay hard disk is never powered off.
3632 BAY_POWEROFF_ON_AC=0
3633 BAY_POWEROFF_ON_BAT=0
3634 # Optical drive device to power off (default sr0).
3637 # Runtime Power Management for PCI(e) bus devices: on=disable, auto=enable.
3639 RUNTIME_PM_ON_BAT=auto
3641 # Exclude PCI(e) device adresses the following list from Runtime PM
3642 # (separate with spaces). Use lspci to get the adresses (1st column).
3643 #RUNTIME_PM_BLACKLIST="bb:dd.f 11:22.3 44:55.6"
3644 RUNTIME_PM_BLACKLIST="01:00.0"
3646 # Exclude PCI(e) devices assigned to the listed drivers from Runtime PM.
3647 # Default when unconfigured is "amdgpu nouveau nvidia radeon" which
3648 # prevents accidential power-on of dGPU in hybrid graphics setups.
3649 # Use "" to disable the feature completely.
3650 # Separate multiple drivers with spaces.
3651 #RUNTIME_PM_DRIVER_BLACKLIST="amdgpu nouveau nvidia radeon"
3653 # Set to 0 to disable, 1 to enable USB autosuspend feature.
3656 # Exclude listed devices from USB autosuspend (separate with spaces).
3657 # Use lsusb to get the ids.
3658 # Note: input devices (usbhid) are excluded automatically
3659 #USB_BLACKLIST="1111:2222 3333:4444"
3661 # Bluetooth devices are excluded from USB autosuspend:
3662 # 0=do not exclude, 1=exclude.
3663 USB_BLACKLIST_BTUSB=0
3665 # Phone devices are excluded from USB autosuspend:
3666 # 0=do not exclude, 1=exclude (enable charging).
3667 USB_BLACKLIST_PHONE=0
3669 # Printers are excluded from USB autosuspend:
3670 # 0=do not exclude, 1=exclude.
3671 USB_BLACKLIST_PRINTER=1
3673 # WWAN devices are excluded from USB autosuspend:
3674 # 0=do not exclude, 1=exclude.
3675 USB_BLACKLIST_WWAN=1
3677 # Include listed devices into USB autosuspend even if already excluded
3678 # by the blacklists above (separate with spaces).
3679 # Use lsusb to get the ids.
3680 #USB_WHITELIST="1111:2222 3333:4444"
3682 # Set to 1 to disable autosuspend before shutdown, 0 to do nothing
3683 # (workaround for USB devices that cause shutdown problems).
3684 #USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1
3686 # Restore radio device state (Bluetooth, WiFi, WWAN) from previous shutdown
3687 # on system startup: 0=disable, 1=enable.
3688 # Hint: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below
3689 # are ignored when this is enabled!
3690 #RESTORE_DEVICE_STATE_ON_STARTUP=0
3691 RESTORE_DEVICE_STATE_ON_STARTUP=1
3693 # Radio devices to disable on startup: bluetooth, wifi, wwan.
3694 # Separate multiple devices with spaces.
3695 #DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"
3697 # Radio devices to enable on startup: bluetooth, wifi, wwan.
3698 # Separate multiple devices with spaces.
3699 #DEVICES_TO_ENABLE_ON_STARTUP="wifi"
3701 # Radio devices to disable on shutdown: bluetooth, wifi, wwan.
3702 # (workaround for devices that are blocking shutdown).
3703 #DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"
3705 # Radio devices to enable on shutdown: bluetooth, wifi, wwan.
3706 # (to prevent other operating systems from missing radios).
3707 #DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan"
3709 # Radio devices to enable on AC: bluetooth, wifi, wwan.
3710 #DEVICES_TO_ENABLE_ON_AC="bluetooth wifi wwan"
3712 # Radio devices to disable on battery: bluetooth, wifi, wwan.
3713 #DEVICES_TO_DISABLE_ON_BAT="bluetooth wifi wwan"
3715 # Radio devices to disable on battery when not in use (not connected):
3716 # bluetooth, wifi, wwan.
3717 #DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth wifi wwan"
3719 # Battery charge thresholds (ThinkPad only, tp-smapi or acpi-call kernel module
3720 # required). Charging starts when the remaining capacity falls below the
3721 # START_CHARGE_THRESH value and stops when exceeding the STOP_CHARGE_THRESH value.
3722 # Main / Internal battery (values in %)
3723 #START_CHARGE_THRESH_BAT0=75
3724 #STOP_CHARGE_THRESH_BAT0=80
3725 # Ultrabay / Slice / Replaceable battery (values in %)
3726 #START_CHARGE_THRESH_BAT1=75
3727 #STOP_CHARGE_THRESH_BAT1=80
3729 # Restore charge thresholds when AC is unplugged: 0=disable, 1=enable.
3730 #RESTORE_THRESHOLDS_ON_BAT=1
3732 # ------------------------------------------------------------------------------
3733 # tlp-rdw - Parameters for the radio device wizard
3734 # Possible devices: bluetooth, wifi, wwan.
3737 # - Parameters are disabled by default, remove the leading # to enable them
3738 # - Separate multiple radio devices with spaces
3740 # Radio devices to disable on connect.
3741 #DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
3742 #DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
3743 #DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"
3745 # Radio devices to enable on disconnect.
3746 #DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
3747 #DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
3748 #DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""
3750 # Radio devices to enable/disable when docked.
3751 #DEVICES_TO_ENABLE_ON_DOCK=""
3752 #DEVICES_TO_DISABLE_ON_DOCK=""
3754 # Radio devices to enable/disable when undocked.
3755 #DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
3756 #DEVICES_TO_DISABLE_ON_UNDOCK=""
3763 :header-args+: :tangle ~/.xprofile
3766 =~/.xprofile= is similar in style to =~/.xinitrc=, but on the
3767 contrary, it's automatically sourced by LightDM, my display manager of
3770 #+begin_src sh :tangle no
3771 xset -b # disable bell
3772 xset r rate 200 45 # repeat delay (ms) and rate (repeats/sec)
3774 # setxkbmap -option compose:ralt
3776 setxkbmap -option ctrl:nocaps # turn capslock into control
3777 setxkbmap -option altwin:swap_alt_win # swap alt and super
3779 if [ $(hostname) = "plasma" ]
3781 setxkbmap -option ctrl:rctrl_ralt # turn right control into right alt
3784 if [ $(hostname) = "enigma" ]
3786 xmodmap -e "keycode 135 = Alt_R" # remap menu key to alt
3789 light -Scrs "intel_backlight" 2
3791 source $HOME/.zprofile
3793 export _JAVA_AWT_WM_NONREPARENTING=1
3794 export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
3796 if [ $(hostname) = "plasma" ]
3808 :header-args+: :tangle (when (eq system-type 'gnu/linux) "~/.Xresources")
3811 #+begin_src conf-xdefaults
3812 #include ".Xresources.d/fonts"
3813 ! #include ".Xresources.d/colors"
3814 #include ".Xresources.d/emacs"
3815 #include ".Xresources.d/rxvt-unicode"
3822 :header-args+: :tangle (when (eq system-type 'gnu/linux) "~/.Xresources.d/fonts")
3825 #+begin_src conf-xdefaults
3826 Xft.lcdfilter: lcddefault
3830 Xft.hintstyle: hintslight
3831 ! Xft.hintstyle: hintfull
3838 :header-args+: :tangle (when (eq system-type 'gnu/linux) "~/.Xresources.d/colors")
3841 #+begin_src conf-xdefaults :tangle no
3842 #include "gruvbox-light.xresources"
3843 ! #include "gruvbox-dark.xresources"
3844 #include "gruvbox-urxvt256.xresources"
3847 #+begin_src conf-xdefaults :tangle no
3848 ! -----------------------------------------------------------------------------
3849 ! File: gruvbox-light.xresources
3850 ! Description: Retro groove colorscheme generalized
3851 ! Author: morhetz <morhetz@gmail.com>
3852 ! Source: https://github.com/morhetz/gruvbox-generalized
3853 ! Last Modified: 6 Sep 2014
3854 ! -----------------------------------------------------------------------------
3856 ! hard contrast: *background: #f9f5d7
3857 *background: #fbf1c7
3858 ! soft contrast: *background: #f2e5bc
3859 *foreground: #3c3836
3869 ! DarkYellow + Yellow
3875 ! DarkMagenta + Magenta
3886 #+begin_src conf-xdefaults :tangle no
3887 ! -----------------------------------------------------------------------------
3888 ! File: gruvbox-dark.xresources
3889 ! Description: Retro groove colorscheme generalized
3890 ! Author: morhetz <morhetz@gmail.com>
3891 ! Source: https://github.com/morhetz/gruvbox-generalized
3892 ! Last Modified: 6 Sep 2014
3893 ! -----------------------------------------------------------------------------
3895 ! hard contrast: *background: #1d2021
3896 *background: #282828
3897 ! soft contrast: *background: #32302f
3898 *foreground: #ebdbb2
3908 ! DarkYellow + Yellow
3914 ! DarkMagenta + Magenta
3925 #+begin_src conf-xdefaults :tangle no
3926 ! -----------------------------------------------------------------------------
3927 ! File: gruvbox-urxvt256.xresources
3928 ! Description: Retro groove colorscheme generalized
3929 ! Author: morhetz <morhetz@gmail.com>
3930 ! Source: https://github.com/morhetz/gruvbox-generalized
3931 ! Last Modified: 13 Dec 2013
3932 ! -----------------------------------------------------------------------------
3934 URxvt.color24: #076678
3935 URxvt.color66: #427b58
3936 URxvt.color88: #9d0006
3937 URxvt.color96: #8f3f71
3938 URxvt.color100: #79740e
3939 URxvt.color108: #8ec07c
3940 URxvt.color109: #83a598
3941 URxvt.color130: #af3a03
3942 URxvt.color136: #b57614
3943 URxvt.color142: #b8bb26
3944 URxvt.color167: #fb4934
3945 URxvt.color175: #d3869b
3946 URxvt.color208: #fe8019
3947 URxvt.color214: #fabd2f
3948 URxvt.color223: #ebdbb2
3949 URxvt.color228: #f2e5bc
3950 URxvt.color229: #fbf1c7
3951 URxvt.color230: #f9f5d7
3952 URxvt.color234: #1d2021
3953 URxvt.color235: #282828
3954 URxvt.color236: #32302f
3955 URxvt.color237: #3c3836
3956 URxvt.color239: #504945
3957 URxvt.color241: #665c54
3958 URxvt.color243: #7c6f64
3959 URxvt.color244: #928374
3960 URxvt.color245: #928374
3961 URxvt.color246: #a89984
3962 URxvt.color248: #bdae93
3963 URxvt.color250: #d5c4a1
3968 :header-args+: :tangle (when (eq system-type 'gnu/linux) "~/.Xresources.d/emacs")
3971 #+begin_src conf-xdefaults
3974 Emacs.verticalScrollBars: off
3975 Emacs.cursorBlink: off
3976 Emacs.FontBackend: xft,x
3977 ! Emacs.font: Ubuntu Mono-12
3978 ! Emacs.font: Triplicate T4C-11
3979 ! Emacs.font: Ubuntu Mono-10.5
3980 ! Emacs.font: Ubuntu Mono-12
3981 ! Emacs.font: Iosevka-11
3983 ! Emacs.font: Fira Mono:size=15
3984 ! Emacs.font: DejaVu Sans Mono:size=15
3985 ! Emacs.font: Inconsolata:size=17
3986 ! Emacs.font: Inconsolata:size=16
3987 ! Emacs.font: Inconsolata LGC:size=14
3988 ! Emacs.font: Source Code Pro Medium-10.5
3989 Emacs.font: Source Code Pro:size=14
3990 ! Emacs.font: Ubuntu Mono:size=16
3991 ! Emacs.font: Iosevka:size=16
3996 :header-args+: :tangle (when (eq system-type 'gnu/linux) "~/.Xresources.d/rxvt-unicode")
3999 #+begin_src conf-xdefaults
4001 URxvt.font: xft:source code pro:pixelsize=14:antialias=true:hinting=true, xft:dejavu sans mono:pixelsize=15:antialias=true:hinting=true
4002 URxvt.boldFont: xft:source code pro:semibold:pixelsize=14:antialias=true:hinting=true:bold, xft:dejavu sans mono:pixelsize=15:antialias=true:hinting=true:bold
4003 URxvt.italicFont: xft:source code pro:italic:pixelsize=14:antialias=true:hinting=true:italic, xft:dejavu sans mono:pixelsize=15:antialias=true:hinting=true:italic
4004 URxvt.bolditalicFont: xft:source code pro:semibold:italic:pixelsize=14:antialias=true:hinting=true:bold:italic, xft:dejavu sans mono:pixelsize=15:antialias=true:hinting=true:bolditalic
4006 URxvt.xftAntialias: true
4007 URxvt.letterSpace: 0
4010 URxvt.loginShell: true
4011 URxvt.saveLines: 100000
4012 URxvt.internalBorder: 3
4014 URxvt.scrollBar: false
4015 URxvt.scrollStyle: rxvt
4016 URxvt*scrollTtyOutput: false
4017 URxvt*scrollWithBuffer: true
4018 URxvt*scrollTtyKeypress: true
4019 URxvt.keysym.Shift-Up: command:\033]720;1\007
4020 URxvt.keysym.Shift-Down: command:\033]721;1\007
4022 URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select
4023 URxvt.url-select.launcher: firefox
4024 URxvt.url-select.underline: true
4025 URxvt.keysym.M-u: perl:url-select:select_next
4026 URxvt.keysym.M-Escape: perl:keyboard-select:activate
4027 URxvt.keysym.M-s: perl:keyboard-select:search
4028 URxvt.url-launcher: /usr/bin/firefox
4029 URxvt.matcher.button: 1
4030 URxvt.iso14755: false
4031 URxvt.iso14755_53: false
4032 URxvt.keysym.M-c: perl:clipboard:copy
4033 URxvt.keysym.M-v: perl:clipboard:paste
4034 URxvt.keysym.C-A-V: perl:clipboard:paste_escaped
4035 URxvt.keysym.C-Up: font-size:increase
4036 URxvt.keysym.C-Down: font-size:decrease
4037 URxvt.keysym.C-S-Up: font-size:incglobal
4038 URxvt.keysym.C-S-Down: font-size:decglobal
4039 URxvt.keysym.C-equal: font-size:reset
4040 !URxvt.keysym.C-question: font-size:show
4042 URxvt.iconFile: /usr/share/icons/Paper/48x48/apps/utilities-terminal.png
4044 !urxvt*foreground: white
4045 !urxvt*background: black
4064 !URxvt.foreground: #C8C8C8
4065 !URxvt.background: #FFFFFF
4085 !! orange (replaces cyan)
4092 ! Tango colour theme for rxvt-unicode
4093 URxvt.background: #FFFFFF
4094 URxvt.foreground: #000000
4097 URxvt.color0: #2E3436
4098 URxvt.color8: #757773
4101 URxvt.color1: #CC0000
4102 URxvt.color9: #EF2929
4105 URxvt.color2: #4E9A06
4106 URxvt.color10: #8AE234
4109 URxvt.color3: #C4A000
4110 URxvt.color11: #FCE94F
4113 URxvt.color4: #3465A4
4114 URxvt.color12: #729FCF
4117 URxvt.color5: #75507B
4118 URxvt.color13: #AD7FA8
4121 !URxvt.color6: #06989A
4122 !URxvt.color14: #34E2E2
4123 ! orange (replaces cyan)
4128 URxvt.color7: #D3D7CF
4129 URxvt.color15: #EEEEEC
4132 *** xkb us_ab keyboard layout
4134 #+begin_src conf :tangle "/sudo::/usr/share/X11/xkb/symbols/us_ab" :comments none
4135 default partial alphanumeric_keys
4136 xkb_symbols "us_ab" {
4138 name[Group1]= "English (US)(aminb)";
4140 key <MENU> { [ Alt_R ] };
4146 :header-args+: :tangle ~/.config/user-dirs.dirs
4150 XDG_DESKTOP_DIR="$HOME/Desktop"
4151 XDG_DOCUMENTS_DIR="$HOME/usr/docs"
4152 XDG_DOWNLOAD_DIR="$HOME/usr/dls"
4153 XDG_MUSIC_DIR="$HOME/usr/music"
4154 XDG_PICTURES_DIR="$HOME/usr/pics"
4155 XDG_PUBLICSHARE_DIR="$HOME/usr/Public"
4156 XDG_TEMPLATES_DIR="$HOME/usr/Templates"
4157 XDG_VIDEOS_DIR="$HOME/usr/vids"
4162 :header-args+: :tangle ~/.config/zathura/zathurarc
4166 set smooth-scroll true
4167 set selection-clipboard clipboard
4169 set default-bg "#272727"
4170 set statusbar-bg "#272727"
4171 set inputbar-bg "#373737"
4176 My zsh setup is built on [[https://github.com/zimfw/zimfw][Zim]]. Further, my zshrc references [[https://github.com/junegunn/fzf][fzf]],
4177 [[https://github.com/zsh-users/zsh-autosuggestions][zsh-autosuggestions]], and [[https://github.com/hlissner/zsh-autopair][zsh-autopair]]; so be sure to have them
4182 :header-args+: :tangle ~/.zimrc
4194 # Select what modules you would like enabled.
4195 # The second line of modules may depend on options set by modules in the first
4196 # line. These dependencies are noted on the respective module's README.md.
4197 zmodules=(directory environment git git-info history input ssh utility custom \
4198 syntax-highlighting history-substring-search prompt completion)
4209 # Set your desired prompt here
4210 zprompt_theme='pure'
4211 #PURE_PROMPT_SYMBOL=λ
4212 #PURE_PROMPT_SYMBOL=δ
4213 PURE_PROMPT_SYMBOL=➜
4219 # set an optional host-specific filename for the completion cache file
4220 # if none is provided, the default '.zcompdump' is used.
4221 #zcompdump_file=".zcompdump-${HOST}-${ZSH_VERSION}"
4227 # Uncomment to enable command correction prompts
4228 # See: http://zsh.sourceforge.net/Doc/Release/Options.html#Input_002fOutput
4235 # Set the string below to the desired terminal title format string.
4236 # The terminal title is redrawn upon directory change, however, variables like
4237 # ${PWD} are only evaluated once. Use prompt expansion strings for dynamic data:
4238 # http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Simple-Prompt-Escapes
4239 # The example below uses the following format: 'username@host:/current/directory'
4240 ztermtitle='%n@%m:%~'
4246 # Uncomment to enable double-dot expansion.
4247 # This appends '../' to your input for each '.' you type after an initial '..'
4248 #zdouble_dot_expand='true'
4251 # Syntax-Highlighting
4254 # This determines what highlighters will be used with the syntax-highlighting module.
4255 # Documentation of the highlighters can be found here:
4256 # https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md
4257 # For (u)rxvt, termite and gnome-terminal users,
4258 # removing the 'cursor' highlighter will fix the disappearing cursor problem
4259 #zhighlighters=(main brackets cursor)
4260 zhighlighters=(main brackets pattern)
4266 # Load these ssh identities with the ssh module
4267 zssh_ids=(id_ed25519_bandali)
4273 # Set (optional) pacman front-end.
4274 zpacman_frontend='yay'
4276 # Load any helper scripts as defined here
4277 #zpacman_helper=(aur)
4284 :header-args+: :tangle ~/.zlogin
4289 # User configuration sourced by login shells
4293 [[ -s ${ZIM_HOME}/login_init.zsh ]] && source ${ZIM_HOME}/login_init.zsh
4299 :header-args+: :tangle ~/.zprofile
4303 #PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
4304 #PATH=$HOME/.gem/ruby/2.4.0/bin:$PATH
4305 export PATH=$HOME/.local/bin:$HOME/.cabal/bin:$HOME/.cargo/bin:$HOME/.elan/bin:$PATH
4306 export XDG_CONFIG_HOME=$HOME/.config
4307 export XDG_DATA_HOME=$HOME/.local/share
4308 export XDG_DATA_DIRS=/usr/local/share:/usr/share
4309 export MAILDIR="$HOME/mail"
4311 #export MATHMODELS=$HOME/src/eiffel/mathmodels
4312 #export RUST_SRC_PATH=~/.multirust/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src
4313 #export PATH=$PATH:$HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/
4316 #export JAVA_HOME=/usr/lib/jvm/default
4317 #export CPATH=$CPATH:"$JAVA_HOME/include:$JAVA_HOME/include/linux"
4318 #export LIBRARY_PATH=$LIBRARY_PATH:"$JAVA_HOME/jre/lib/amd64/server"
4319 #export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$JAVA_HOME/jre/lib/amd64/server"
4321 #export PATH="$HOME/usr/build/pvs:$PATH"
4322 #export SBCLISP_HOME=/usr/share/sbcl-source
4323 #export PVS_LIBRARY_PATH="$HOME/usr/build/pvs/nasalib"
4325 export MOZ_USE_XINPUT2=1 # precise scrolling in firefox
4327 #export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
4328 #export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G"
4330 export NIXPKGS=$HOME/src/git/nixpkgs
4332 if [ -e /home/amin/.nix-profile/etc/profile.d/nix.sh ]; then . /home/amin/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
4334 export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
4335 export PATH="/$HOME/.config/guix/current/bin${PATH:+:}$PATH"
4336 export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
4337 export SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
4338 export GIT_SSL_CAINFO="$SSL_CERT_FILE"
4343 :header-args+: :tangle ~/.zshenv
4347 # Ensure that a non-login, non-interactive shell has a defined environment.
4348 if [[ "$SHLVL" -eq 1 && ! -o LOGIN && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
4349 source "${ZDOTDIR:-$HOME}/.zprofile"
4355 :header-args+: :tangle ~/.zshrc
4359 # Bash-like navigation
4360 #export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
4361 #export WORDCHARS='*?-[]~=&;!#$%^(){}<>'
4362 export WORDCHARS='*?[]~=&;!#$%^(){}<>'
4363 #ZLE_SPACE_SUFFIX_CHARS=$'|&'
4365 #disable -r time # disable shell reserved word
4366 #alias time='time -p' # -p for POSIX output
4368 # rehash if last command was pacaur or pacman
4369 # (so that zsh picks up changes in $PATH immediately)
4370 TRAPUSR1() { rehash}; precmd() { [[ $history[$[ HISTCMD -1 ]] == *(pacaur|pacman)* ]] && killall -USR1 zsh }
4373 # User configuration sourced by interactive shells
4376 # Define zim location
4377 export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
4380 [[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh
4382 ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red')
4383 #ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red,bold'
4387 source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
4388 # source ~/.zsh/zsh-autopair/autopair.zsh
4393 source /usr/share/fzf/key-bindings.zsh
4394 source /usr/share/fzf/completion.zsh
4396 # Accept history selection instead of putting it on
4398 fzf-history-widget-accept() {
4402 #zle -N fzf-history-widget-accept
4403 #bindkey '^R' fzf-history-widget-accept
4406 export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
4412 alias mpv="mpv --ytdl-format mp4"
4416 alias jcl=journalctl
4417 alias m="mbsync csclub; mbsync uwaterloo; mbsync amin"
4418 alias best="youtube-dl -f best"
4425 git clone https://aur.archlinux.org/${1}.git
4437 This section contains various useful scripts and the ones used by the
4438 programs above. For instance, =toggle-tablet= for switching to and
4439 from tablet mode on my X220T, =toggle-presentation-mode= for toggling
4440 Xfce's presentation mode which keeps the screen awake, and
4441 =rofi-light= a small utility that uses [[https://github.com/DaveDavenport/rofi][Rofi]] to ask and [[https://github.com/haikarainen/light][light]] to set an
4442 exact brightness value.
4444 ** battery-percentage-time
4446 :header-args+: :tangle ~/.local/bin/battery-percentage-time :shebang "#!/bin/sh"
4449 #+begin_src sh :tangle no
4452 dbus-send --print-reply=literal --system \
4453 --dest=org.freedesktop.UPower \
4454 /org/freedesktop/UPower/devices/battery_BAT0 \
4455 org.freedesktop.DBus.Properties.Get \
4456 string:org.freedesktop.UPower.Device \
4457 string:"${label}" | awk '{print $3}'
4460 perc=$(dbus_send 'Percentage')
4461 state=$(dbus_send 'State')
4463 if [ "$state" -eq 2 ]; then # Discharging
4464 secs=$(dbus_send 'TimeToEmpty')
4465 elif [ "$state" -eq 1 ]; then # Charging
4466 secs=$(dbus_send 'TimeToFull')
4469 printf '%s%%%%%2dh%02dm \n' "$perc" $((secs / 3600)) $((secs % 3600 / 60))
4474 :header-args+: :tangle ~/.local/bin/my-i3status.py :shebang "#!/usr/bin/env python2"
4477 #+begin_src python :comments none
4478 # -*- coding: utf-8 -*-
4480 # This script is a simple wrapper which prefixes each i3status line with custom
4481 # information. It is based on:
4482 # https://github.com/i3/i3status/blob/master/contrib/wrapper.py
4484 # In ~/.i3status.conf, add the following line:
4485 # output_format = "i3bar"
4486 # in the 'general' section.
4487 # Then, in ~/.config/i3/config or ~/.config/sway/config add:
4488 # status_command i3status | my-i3status.py
4489 # in the 'bar' section. Make sure my-i3status.py is in $PATH.
4491 # © 2012 Valentin Haenel <valentin.haenel@gmx.de>
4492 # © 2018 Amin Bandali <bandali@gnu.org>
4494 # This program is free software. It comes without any warranty, to the extent
4495 # permitted by applicable law. You can redistribute it and/or modify it under
4496 # the terms of the Do What The Fuck You Want To Public License (WTFPL), Version
4497 # 2, as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more
4505 """ Return true if ~/.nosleep exists. """
4506 return os.path.isfile(os.path.expanduser("~/.nosleep"))
4508 def print_line(message):
4509 """ Non-buffered printing to stdout. """
4510 sys.stdout.write(message + '\n')
4514 """ Interrupted respecting reader for stdin. """
4515 # try reading a line, removing any extra whitespace
4517 line = sys.stdin.readline().strip()
4518 # i3status sends EOF, or an empty line
4523 except KeyboardInterrupt:
4526 if __name__ == '__main__':
4527 # Skip the first line which contains the version header.
4528 print_line(read_line())
4530 # The second line contains the start of the infinite array.
4531 print_line(read_line())
4534 line, prefix = read_line(), ''
4535 # ignore comma at start of lines
4536 if line.startswith(','):
4537 line, prefix = line[1:], ','
4540 j = json.loads(line)
4541 # insert information into the start of the json, but could be anywhere
4542 j.insert(0, {'full_text' : '🖵 ', 'name' : 'nosleep'})
4543 # and echo back new encoded json
4544 print_line(prefix+json.dumps(j))
4546 print_line(prefix+line)
4551 :header-args+: :tangle ~/.local/bin/rofi-light :shebang "#!/bin/bash"
4556 val=$(rofi -dmenu -mesg "light $cur" -p "light -S " -l 0 -width 12)
4557 [ -n "$val" ] && light -S $val
4562 :header-args+: :tangle ~/.local/bin/rofi-remmina.py :shebang "#!/usr/bin/env python2"
4568 from subprocess import Popen, PIPE
4570 remmina_dir = os.path.expanduser("~/.local/share/remmina")
4574 for f in os.listdir(remmina_dir):
4575 fp = os.path.join(remmina_dir, f)
4576 c = ConfigParser.ConfigParser()
4578 n = c.get('remmina', 'name')
4581 lines = max(min(15, len(fdict)), 1);
4582 width = len(max(fdict.keys(), key=len))
4583 rofi = Popen(["rofi", "-i", "-dmenu", \
4584 "-l", str(lines), "-width", str(width), \
4585 "-p", "connection"], stdout=PIPE, stdin=PIPE)
4586 selected = rofi.communicate("\n" \
4587 .join(fdict.keys()) \
4588 .encode("utf-8"))[0] \
4593 r = Popen(["remmina", "-c", fdict[selected]])
4599 :header-args+: :tangle ~/.local/bin/s :shebang "#!/bin/bash"
4603 export _JAVA_AWT_WM_NONREPARENTING=1
4604 export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
4606 source $HOME/.zprofile
4612 :header-args+: :tangle ~/.local/bin/sway-ws-util :shebang "#!/bin/bash"
4616 curr_ws=$(swaymsg -t get_workspaces | jq -r '.[] | select(.focused==true).name')
4617 [[ $curr_ws -eq 1 ]] && prev_ws=10 || prev_ws=$((curr_ws-1))
4618 [[ $curr_ws -eq 10 ]] && next_ws=1 || next_ws=$((curr_ws+1))
4622 if [ "$1" = "switch" ] || [ "$1" = "move" ]; then
4624 if [ "$2" = "prev" ]; then
4626 elif [ "$2" = "next" ]; then
4629 echo "Usage: $0 $1 {prev|next} [follow]"
4633 echo "Usage: $0 {switch|move} {prev|next} [follow]"
4637 if [ "$op" = "switch" ]; then
4638 sway workspace "$dest_ws"
4639 elif [ "$op" = "move" ]; then
4640 sway move container to workspace "$dest_ws"
4641 if [ "$3" = "follow" ]; then
4642 sway workspace "$dest_ws"
4649 :header-args+: :tangle ~/.local/bin/toggle-layout :shebang "#!/bin/bash"
4652 #+begin_src bash :tangle no
4653 lang="$(setxkbmap -print | grep xkb_symbols | cut -d'+' -f 2)"
4655 if [ "$lang" = "us" ]; then
4659 # xmodmap $HOME/.Xmodmap
4663 ** toggle-presentation-mode
4665 :header-args+: :tangle ~/.local/bin/toggle-presentation-mode :shebang "#!/bin/bash"
4668 #+begin_src bash :tangle no
4669 xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -T
4674 :header-args+: :tangle ~/.local/bin/toggle-tablet :shebang "#!/bin/bash"
4677 This script toggles between a 'normal' mode and a 'tablet' mode, doing
4680 - rotates the screen using =xrandr=, so that rotating the physical
4681 display of my X220t would have the laptop's battery on the right
4683 - enables touch screen,
4684 - properly rotates the stylus pen and touch screen pointers, and
4685 - toggles between RGB and Vertical BGR sub-pixel order.
4687 #+begin_src bash :tangle no
4688 case $(xfconf-query -c pointers -p /Wacom_ISDv4_E6_Pen_stylus/Properties/Wacom_Rotation) in
4689 0) # Screen is not rotated, we should rotate it right (90°)
4691 xfconf-query -c pointers -p /Wacom_ISDv4_E6_Pen_stylus/Properties/Wacom_Rotation -s 1
4692 xfconf-query -c pointers -p /Wacom_ISDv4_E6_Finger_touch/Properties/Device_Enabled -s 1
4693 xfconf-query -c pointers -p /Wacom_ISDv4_E6_Finger_touch/Properties/Wacom_Rotation -s 1
4694 xfconf-query -c xsettings -p /Xft/RGBA -s vbgr
4696 1) # Currently top is rotated right, we should set it normal (0°)
4698 xfconf-query -c pointers -p /Wacom_ISDv4_E6_Pen_stylus/Properties/Wacom_Rotation -s 0
4699 xfconf-query -c pointers -p /Wacom_ISDv4_E6_Finger_touch/Properties/Wacom_Rotation -s 0
4700 xfconf-query -c pointers -p /Wacom_ISDv4_E6_Finger_touch/Properties/Device_Enabled -s 0
4701 xfconf-query -c xsettings -p /Xft/RGBA -s rgb
4704 echo "Unknown result from 'xfconf-query -c pointers -p /Wacom_ISDv4_E6_Pen_stylus/Properties/Wacom_Rotation'" >&2
4712 :header-args+: :tangle ~/.local/bin/unlock-def-gk.py :shebang "#!/usr/bin/env python2"
4715 #+begin_src python :tangle no
4716 import gnomekeyring as gk
4717 # list_item_ids_sync('login')[0] == 1L
4718 gk.unlock_sync('Default_keyring',gk.item_get_info_sync('login',1L).get_secret())
4723 :header-args+: :tangle ~/.local/bin/volume-info :shebang "#!/bin/sh"
4726 #+begin_src sh :tangle no
4727 cur_vol=$(pamixer --get-volume)
4729 if [ $(pamixer --get-mute) = true ]; then
4730 printf 'mt \n' "$cur_vol"
4732 printf '%02d \n' "$cur_vol"
4738 My little wallpaper changer script.
4742 :header-args+: :tangle ~/.local/bin/wp :shebang "#!/bin/bash"
4745 #+begin_src bash :tangle no
4750 feh --bg-scale $HOME/usr/pics/island_day_by_arsenixc-d6ctqon.jpg
4753 feh --bg-scale $HOME/usr/pics/island_night_by_arsenixc-d6cz757.jpg
4756 echo $"Usage: $0 {day|night}"
4763 :header-args+: :tangle ~/.local/bin/wp-auto :shebang "#!/bin/bash"
4766 #+begin_src bash :tangle no
4775 echo "Did not find 'sed', script cannot continue."
4780 echo "Did not find rofi, there is no point to continue."
4785 # Create if not exists, then removes #include of .theme file (if present) and add the selected theme to the end.
4786 # Repeated calls should leave the config clean-ish
4788 function set_theme()
4790 CDIR="${HOME}/.config/rofi/"
4791 if [ ! -d "${CDIR}" ]
4795 if [ -f "${CDIR}/config" ]
4797 ${SED} -i "/rofi\.theme: .*\.rasi$/d" "${CDIR}/config"
4799 echo "rofi.theme: ${1}" >> "${CDIR}/config"
4803 if [ "$HOUR" -gt "19" ] || [ "$HOUR" -lt "7" ]
4805 feh --bg-scale $HOME/usr/pics/island_night_by_arsenixc-d6cz757.jpg
4806 xrdb -merge $HOME/.Xresources.d/gruvbox-dark.xresources
4807 set_theme "/usr/share/rofi/themes//gruvbox-dark.rasi"
4809 feh --bg-scale $HOME/usr/pics/island_day_by_arsenixc-d6ctqon.jpg
4810 xrdb -merge $HOME/.Xresources.d/gruvbox-light.xresources
4811 set_theme "/usr/share/rofi/themes//gruvbox-light.rasi"
4817 :header-args+: :tangle ~/.config/systemd/user/wp.service
4820 #+begin_src conf :tangle no
4822 Description=wallpaper service
4826 ExecStart=/usr/bin/bash -c %h/.local/bin/wp-auto
4831 :header-args+: :tangle ~/.config/systemd/user/wp.timer
4834 #+begin_src conf :tangle no
4837 Description=wallpaper timer
4845 WantedBy=timers.target
4850 :header-args+: :tangle ~/.local/bin/zathura-sync.sh :shebang "#!/bin/sh"
4856 zathura --synctex-forward "$pos" "$pdffile" || \
4858 zathura -x "emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"%{input}\")) (goto-line %{line}))'" "$pdffile" &
4859 sleep 1; zathura --synctex-forward "$pos" "$pdffile" )
4865 :header-args+: :tangle ~/.local/bin/eat-em :shebang "#!/bin/sh"
4869 # Original Posted at http://crunchbang.org/forums/viewtopic.php?pid=126921%23p126921#p126921
4870 # [ESC] character in original post removed here.
4872 # ANSI Color -- use these variables to easily have different color
4873 # and format output. Make sure to output the reset sequence after
4874 # colors (f = foreground, b = background), and use the 'off'
4875 # feature for anything you turn on.
4879 esc="$(echo -en '\e')"
4881 blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
4882 yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
4883 cyanf="${esc}[36m"; whitef="${esc}[37m"
4885 blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
4886 yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
4887 cyanb="${esc}[46m"; whiteb="${esc}[47m"
4889 boldon="${esc}[1m"; boldoff="${esc}[22m"
4890 italicson="${esc}[3m"; italicsoff="${esc}[23m"
4891 ulon="${esc}[4m"; uloff="${esc}[24m"
4892 invon="${esc}[7m"; invoff="${esc}[27m"
4897 # note in this first use that switching colors doesn't require a reset
4898 # first - the new color overrides the old one.
4906 ${yellowf} ▄███████▄${reset} ${redf} ▄██████▄${reset} ${greenf} ▄██████▄${reset} ${bluef} ▄██████▄${reset} ${purplef} ▄██████▄${reset} ${cyanf} ▄██████▄${reset}
4907 ${yellowf}▄█████████▀▀${reset} ${redf}▄${whitef}█▀█${redf}██${whitef}█▀█${redf}██▄${reset} ${greenf}▄${whitef}█▀█${greenf}██${whitef}█▀█${greenf}██▄${reset} ${bluef}▄${whitef}█▀█${bluef}██${whitef}█▀█${bluef}██▄${reset} ${purplef}▄${whitef}█▀█${purplef}██${whitef}█▀█${purplef}██▄${reset} ${cyanf}▄${whitef}█▀█${cyanf}██${whitef}█▀█${cyanf}██▄${reset}
4908 ${yellowf}███████▀${reset} ${redf}█${whitef}▄▄█${redf}██${whitef}▄▄█${redf}███${reset} ${greenf}█${whitef}▄▄█${greenf}██${whitef}▄▄█${greenf}███${reset} ${bluef}█${whitef}▄▄█${bluef}██${whitef}▄▄█${bluef}███${reset} ${purplef}█${whitef}▄▄█${purplef}██${whitef}▄▄█${purplef}███${reset} ${cyanf}█${whitef}▄▄█${cyanf}██${whitef}▄▄█${cyanf}███${reset}
4909 ${yellowf}███████▄${reset} ${redf}████████████${reset} ${greenf}████████████${reset} ${bluef}████████████${reset} ${purplef}████████████${reset} ${cyanf}████████████${reset}
4910 ${yellowf}▀█████████▄▄${reset} ${redf}██▀██▀▀██▀██${reset} ${greenf}██▀██▀▀██▀██${reset} ${bluef}██▀██▀▀██▀██${reset} ${purplef}██▀██▀▀██▀██${reset} ${cyanf}██▀██▀▀██▀██${reset}
4911 ${yellowf} ▀███████▀${reset} ${redf}▀ ▀ ▀ ▀${reset} ${greenf}▀ ▀ ▀ ▀${reset} ${bluef}▀ ▀ ▀ ▀${reset} ${purplef}▀ ▀ ▀ ▀${reset} ${cyanf}▀ ▀ ▀ ▀${reset}
4913 ${boldon}${yellowf} ▄███████▄ ${redf} ▄██████▄ ${greenf} ▄██████▄ ${bluef} ▄██████▄ ${purplef} ▄██████▄ ${cyanf} ▄██████▄${reset}
4914 ${boldon}${yellowf}▄█████████▀▀ ${redf}▄${whitef}█▀█${redf}██${whitef}█▀█${redf}██▄ ${greenf}▄${whitef}█▀█${greenf}██${whitef}█▀█${greenf}██▄ ${bluef}▄${whitef}█▀█${bluef}██${whitef}█▀█${bluef}██▄ ${purplef}▄${whitef}█▀█${purplef}██${whitef}█▀█${purplef}██▄ ${cyanf}▄${whitef}█▀█${cyanf}██${whitef}█▀█${cyanf}██▄${reset}
4915 ${boldon}${yellowf}███████▀ ${redf}█${whitef}▄▄█${redf}██${whitef}▄▄█${redf}███ ${greenf}█${whitef}▄▄█${greenf}██${whitef}▄▄█${greenf}███ ${bluef}█${whitef}▄▄█${bluef}██${whitef}▄▄█${bluef}███ ${purplef}█${whitef}▄▄█${purplef}██${whitef}▄▄█${purplef}███ ${cyanf}█${whitef}▄▄█${cyanf}██${whitef}▄▄█${cyanf}███${reset}
4916 ${boldon}${yellowf}███████▄ ${redf}████████████ ${greenf}████████████ ${bluef}████████████ ${purplef}████████████ ${cyanf}████████████${reset}
4917 ${boldon}${yellowf}▀█████████▄▄ ${redf}██▀██▀▀██▀██ ${greenf}██▀██▀▀██▀██ ${bluef}██▀██▀▀██▀██ ${purplef}██▀██▀▀██▀██ ${cyanf}██▀██▀▀██▀██${reset}
4918 ${boldon}${yellowf} ▀███████▀ ${redf}▀ ▀ ▀ ▀ ${greenf}▀ ▀ ▀ ▀ ${bluef}▀ ▀ ▀ ▀ ${purplef}▀ ▀ ▀ ▀ ${cyanf}▀ ▀ ▀ ▀${reset}
4925 :header-args+: :tangle ~/.local/bin/invade-em :shebang "#!/bin/bash"
4930 # ANSI color scheme script featuring Space Invaders
4932 # Original: http://crunchbang.org/forums/viewtopic.php?pid=126921%23p126921#p126921
4933 # Modified by lolilolicon
4939 printf -v $j$i %b "\e[${!j}${i}m"
4947 $f1 ▀▄ ▄▀ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4 ▀▄ ▄▀ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst
4948 $f1 ▄█▀███▀█▄ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4 ▄█▀███▀█▄ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst
4949 $f1█▀███████▀█ $f2▀▀███▀▀███▀▀ $f3▀█▀██▀█▀ $f4█▀███████▀█ $f5▀▀███▀▀███▀▀ $f6▀█▀██▀█▀$rst
4950 $f1▀ ▀▄▄ ▄▄▀ ▀ $f2 ▀█▄ ▀▀ ▄█▀ $f3▀▄ ▄▀ $f4▀ ▀▄▄ ▄▄▀ ▀ $f5 ▀█▄ ▀▀ ▄█▀ $f6▀▄ ▄▀$rst
4952 $bld$f1▄ ▀▄ ▄▀ ▄ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4▄ ▀▄ ▄▀ ▄ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst
4953 $bld$f1█▄█▀███▀█▄█ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4█▄█▀███▀█▄█ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst
4954 $bld$f1▀█████████▀ $f2▀▀▀██▀▀██▀▀▀ $f3▀▀█▀▀█▀▀ $f4▀█████████▀ $f5▀▀▀██▀▀██▀▀▀ $f6▀▀█▀▀█▀▀$rst
4955 $bld$f1 ▄▀ ▀▄ $f2▄▄▀▀ ▀▀ ▀▀▄▄ $f3▄▀▄▀▀▄▀▄ $f4 ▄▀ ▀▄ $f5▄▄▀▀ ▀▀ ▀▀▄▄ $f6▄▀▄▀▀▄▀▄$rst