X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/058cb2c7d3c91c41a76b4c20b71d4551db5b2653..27d877190de6bb1438d89c3bd4c5ec2237e18017:/rc.org?ds=sidebyside diff --git a/rc.org b/rc.org index c857af3..bdc4947 100644 --- a/rc.org +++ b/rc.org @@ -701,8 +701,8 @@ WantedBy=timers.target #+begin_src conf [user] name = Amin Bandali - email = amin@gnu.org - signingkey = CDDE75F903538E71813CDA27D1FBA36627D65876 + email = bandali@gnu.org + signingkey = BE6273738E616D6D1B3A08E8A21A020248816103 #+end_src **** signing @@ -927,7 +927,7 @@ general { order += "disk /" order += "disk /data" order += "wireless _first_" -# order += "ethernet _first_" +order += "ethernet _first_" order += "battery 0" order += "volume master" order += "load" @@ -938,11 +938,11 @@ wireless _first_ { format_down = "W: down" } -# ethernet _first_ { -# # if you use %speed, i3status requires root privileges -# format_up = "E: %ip (%speed)" -# format_down = "E: down" -# } +ethernet _first_ { + # if you use %speed, i3status requires root privileges + format_up = "E: %ip (%speed)" + format_down = "E: down" +} battery 0 { format = "%status %percentage %remaining (%consumption)" @@ -1546,19 +1546,15 @@ passwordeval gpg2 --no-tty -q -d ~/.passwd/amin.gpg account gnu host fencepost.gnu.org # use `msmtp -a gnu --serverinfo --tls --tls-certcheck=off --tls-fingerprint=` to get the current fingerprint -tls_fingerprint 28:70:42:76:1C:EC:91:5F:D1:B3:27:A1:CD:3B:32:A4:8B:0B:DC:3A:CD:CA:F6:6F:E4:61:BA:69:D7:4D:0D:0B +tls_fingerprint 34:60:91:B5:71:5B:76:87:50:F3:83:13:26:0F:EE:75:42:83:93:9A:E2:AF:1E:87:72:02:C9:61:CE:28:1B:8E tls_starttls on from aminb@gnu.org user aminb passwordeval gpg2 --no-tty -q -d ~/.passwd/gnu.gpg -# gnu (amin) -account gnu-amin : gnu -from amin@gnu.org - -# gnu (mab) -account gnu-mab : gnu -from mab@gnu.org +# gnu (bandali) +account gnu-bandali : gnu +from bandali@gnu.org # uwaterloo account uwaterloo @@ -2191,7 +2187,7 @@ path=/home/amin/mail [user] name=Amin Bandali primary_email=amin@aminb.org -other_email=amin@gnu.org;abandali@uwaterloo.ca;mab@gnu.org;aminb@gnu.org; +other_email=bandali@gnu.org;abandali@uwaterloo.ca; # Configuration for "notmuch new" # @@ -2277,7 +2273,7 @@ sieve-filter -eW -o postmaster_address=postmaster@aminb.org \ #+begin_src sh # apply sent tag to messages sent by me -notmuch tag -new +sent -- from:amin@aminb.org or from:amin@gnu.org or from:mab@gnu.org or from:aminb@gnu.org or from:abandali@uwaterloo.ca +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 # initial tagging notmuch tag -latest -- tag:latest @@ -3662,10 +3658,11 @@ adjustment-method=randr :END: #+begin_src conf -rofi.font: Ubuntu Mono 13 +! rofi.font: Ubuntu Mono 13 ! rofi.font: Inconsolata 16 ! rofi.font: Iosevka 13 ! rofi.font: Source Code Pro 11 +rofi.font: Source Code Pro 10.5 rofi.modi: run,window ! rofi.width: 640 rofi.width: 600 @@ -3771,6 +3768,10 @@ insert_pass="Alt+n" #+begin_src conf exec xrdb .Xresources exec dunst +exec pgrep -x "systemd-inhibit" || \ + systemd-inhibit --what=handle-power-key --who=aminb \ + --why="Handle power button in sway" sleep infinity + ### Variables # super set $mod Mod4 @@ -3823,8 +3824,8 @@ input "2:7:SynPS/2_Synaptics_TouchPad" { input "1:1:AT_Translated_Set_2_keyboard" { repeat_delay 200 repeat_rate 45 - xkb_layout us,ir - xkb_options ctrl:nocaps,altwin:swap_alt_win,ctrl:rctrl_ralt,grp:shifts_toggle + xkb_layout us_ab,ir + xkb_options ctrl:nocaps,altwin:swap_alt_win,grp:shifts_toggle } @@ -3990,6 +3991,27 @@ mode "resize" { } bindsym $mod+Shift+r mode "resize" +# +# Power button +# +set $locker swaylock && sleep 1 + +set $mode_system System (l)ock, (e)xit sway, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown +mode "$mode_system" { + bindsym l exec $locker, mode "default" + bindsym e exec swaymsg exit, mode "default" + bindsym s exec $locker && systemctl suspend, mode "default" + bindsym h exec $locker && systemctl hibernate, mode "default" + bindsym r exec systemctl reboot, mode "default" + bindsym Shift+s exec systemctl poweroff -i, mode "default" + + # back to normal: Enter, Escape, or q + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym q mode "default" +} +bindsym XF86PowerOff mode "$mode_system" + # # Status Bar: # @@ -4005,7 +4027,10 @@ bar { } # font pango: benis uushi 9 -font pango: Ubuntu Mono 11 +# font pango: Ubuntu Mono 11 +# font pango: Inconsolata 11 +font pango: DejaVu Sans Mono 9 +# font pango: Liberation Mono 9 include /etc/sway/config.d/* #+end_src @@ -4878,7 +4903,8 @@ Emacs.FontBackend: xft,x ! Emacs.font: Inconsolata:size=16 ! Emacs.font: Inconsolata LGC:size=14 ! Emacs.font: Source Code Pro Medium-10.5 -Emacs.font: Ubuntu Mono:size=16 +Emacs.font: Source Code Pro:size=14 +! Emacs.font: Ubuntu Mono:size=16 ! Emacs.font: Iosevka:size=16 #+end_src @@ -4889,10 +4915,10 @@ Emacs.font: Ubuntu Mono:size=16 #+begin_src conf-xdefaults ! Font -URxvt.font: xft:ubuntu mono:pixelsize=16:antialias=true:hinting=true, xft:dejavu sans mono:pixelsize=15:antialias=true:hinting=true -URxvt.boldFont: xft:ubuntu mono:pixelsize=16:antialias=true:hinting=true:bold, xft:dejavu sans mono:pixelsize=15:antialias=true:hinting=true:bold -URxvt.italicFont: xft:ubuntu mono:pixelsize=16:antialias=true:hinting=true:italic, xft:dejavu sans mono:pixelsize=15:antialias=true:hinting=true:italic -URxvt.bolditalicFont: xft:ubuntu mono:pixelsize=16:antialias=true:hinting=true:bold:italic, xft:dejavu sans mono:pixelsize=15:antialias=true:hinting=true:bolditalic +URxvt.font: xft:source code pro:pixelsize=14:antialias=true:hinting=true, xft:dejavu sans mono:pixelsize=15:antialias=true:hinting=true +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 +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 +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 URxvt.xftAntialias: true URxvt.letterSpace: 0 @@ -4911,8 +4937,6 @@ URxvt.keysym.Shift-Up: command:\033]720;1\007 URxvt.keysym.Shift-Down: command:\033]721;1\007 URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select -URxvt.perl-ext: bidi -URxvt.bidi.enabled: 1 URxvt.url-select.launcher: firefox URxvt.url-select.underline: true URxvt.keysym.M-u: perl:url-select:select_next @@ -5014,14 +5038,26 @@ URxvt.color13: #AD7FA8 !URxvt.color6: #06989A !URxvt.color14: #34E2E2 ! orange (replaces cyan) -*color6: #ce5c00 -*color14: #fcaf3e +,*color6: #ce5c00 +,*color14: #fcaf3e ! White URxvt.color7: #D3D7CF URxvt.color15: #EEEEEC #+end_src +*** xkb us_ab keyboard layout + +#+begin_src conf :tangle "/sudo::/usr/share/X11/xkb/symbols/us_ab" :comments none +default partial alphanumeric_keys +xkb_symbols "us_ab" { + include "us(basic)" + name[Group1]= "English (US)(aminb)"; + + key