upstream merge

This commit is contained in:
Dr. Amr Osman 2019-04-26 21:48:07 +02:00
commit 8976676c62
9 changed files with 33 additions and 53 deletions

View File

@ -118,7 +118,8 @@ bindsym $mod+Shift+Return exec $term -T "stfloat"
# Custom Modes # Custom Modes
mode "Leave" { mode "Leave" {
bindsym l exec --no-startup-id mpc pause; exec --no-startup-id pauseallmpv ; exec --no-startup-id lockr bindsym l exec --no-startup-id mpc pause; exec --no-startup-id pauseallmpv ; exec --no-startup-id lockr; exec --no-startup-id xset dpms force off
bindsym s exec --no-startup-id prompt "Shutdown computer?" "$shutdown" bindsym s exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
bindsym z exec --no-startup-id prompt "Suspend computer?" "systemctl suspend";mode default bindsym z exec --no-startup-id prompt "Suspend computer?" "systemctl suspend";mode default
bindsym r exec --no-startup-id prompt "Reboot computer?" "$reboot" bindsym r exec --no-startup-id prompt "Reboot computer?" "$reboot"
@ -212,9 +213,7 @@ bindsym $mod+Shift+l move right 30
bindsym $mod+z gaps outer current plus 5 bindsym $mod+z gaps outer current plus 5
bindsym $mod+Shift+z gaps outer current minus 5 bindsym $mod+Shift+z gaps outer current minus 5
bindsym $mod+x exec --no-startup-id clipmenu -i -fn Ubuntu:size=10 -nb '#002b36' -nf '#839496' -sb '#073642' -sf '#93a1a1' bindsym $mod+x exec --no-startup-id clipmenu -i -fn Ubuntu:size=10 -nb '#002b36' -nf '#839496' -sb '#073642' -sf '#93a1a1'
bindsym $mod+c exec --no-startup-id cabl bindsym $mod+c exec --no-startup-id cabl
bindsym $mod+Shift+c exec --no-startup-id camtoggle bindsym $mod+Shift+c exec --no-startup-id camtoggle
@ -310,7 +309,7 @@ bindsym $mod+F4 exec --no-startup-id $term
bindsym $mod+F5 exec --no-startup-id $netrefresh bindsym $mod+F5 exec --no-startup-id $netrefresh
bindsym $mod+F6 exec --no-startup-id torwrap bindsym $mod+F6 exec --no-startup-id torwrap
bindsym $mod+F7 exec --no-startup-id td-toggle bindsym $mod+F7 exec --no-startup-id td-toggle
bindsym $mod+F8 exec --no-startup-id ~/.config/mutt/etc/mailsync.sh bindsym $mod+F8 exec --no-startup-id mailsync
bindsym $mod+F9 exec --no-startup-id dmenumount bindsym $mod+F9 exec --no-startup-id dmenumount
bindsym $mod+F10 exec --no-startup-id dmenuumount bindsym $mod+F10 exec --no-startup-id dmenuumount
bindsym $mod+F11 exec --no-startup-id ducksearch bindsym $mod+F11 exec --no-startup-id ducksearch

View File

@ -21,6 +21,9 @@ label=📰
interval=once interval=once
signal=6 signal=6
#[iplocate]
#interval=30
[pacpackages] [pacpackages]
label=📦 label=📦
interval=once interval=once

View File

@ -85,7 +85,6 @@ nmap q ZQ
fileview */ tree %c -L 1 --dirsfirst fileview */ tree %c -L 1 --dirsfirst
fileview ../ tree %c -L 1 --dirsfirst fileview ../ tree %c -L 1 --dirsfirst
fileviewer *.md,*.xml,*.css,*.py,*.c,*.h,*.sh,*.diff,*.tex,*.md,*.bib,*.sty,*.desktop highlight -O ansi %c
fileviewer *.html w3m -dump %c fileviewer *.html w3m -dump %c
filextype *.html,*.htm firefox %f 2>/dev/null & filextype *.html,*.htm firefox %f 2>/dev/null &

View File

@ -283,7 +283,7 @@ additions.
.LIST OFF .LIST OFF
.HEADING 2 "Recording" .HEADING 2 "Recording"
.PP .PP
I use scrot and ffmpeg to make different recordings of the desktop and audio. I use maim and ffmpeg to make different recordings of the desktop and audio.
All of these recording shortcuts will output into \f(CW~\fP, and will not overwrite All of these recording shortcuts will output into \f(CW~\fP, and will not overwrite
previous recordings as their names are based on their exact times. previous recordings as their names are based on their exact times.
.LI .LI
@ -363,37 +363,12 @@ LARBS no longer uses Xresource by default, but you can still add an \f(CW~/.Xdef
.PDF_WWW_LINK "https://wiki.archlinux.org/index.php/X_resources" "the Arch Wiki's article" .PDF_WWW_LINK "https://wiki.archlinux.org/index.php/X_resources" "the Arch Wiki's article"
for more information. for more information.
.HEADING 2 "How do I set up my email?" .HEADING 2 "How do I set up my email?"
.LI
.ITEM
Install \f(CWneomutt\fP, \f(CWofflineimap\fP and \f(CWmsmtp\fP if you haven't already.
.ITEM
Create a GPG private/public key pair if you haven't already. Type \f(CWmod+shift+e\fP and you can select a tutorial for how to do this.
.ITEM
Download the mutt-wizard repository to the mutt config directory:
\f(CWgit clone https://github.com/lukesmithxyz/mutt-wizard ~/.config/mutt\fP.
\fBREAD THE README.\fP
.PP .PP
.ITEM LARBS is automatically set up to be compatible with \f(CWmutt-wizard\fP, which is now in the AUR and can be installed by running \f(CWyay -S mutt-wizard-git\fP.
There run \f(CWmutt-wizard.sh\fP and follow the directions, specifically: You can then add email accounts by running \f(CWmw add\fP.
.LI
.ITEM
Add an account.
.ITEM
Run \f(CWofflineimap -o\fP in the terminal.
.ITEM
Then select the "Autodetect mailboxes" option.
.LIST OFF
.LIST OFF
.PP .PP
You should then be able to open your mail in mutt with Mod+e. Once you have successfully added your email address(es), you can open your mail with \f(CWneomutt\fP which is also bound to \f(CWMod+e\fP.
And this is somewhat of a miracle considering all of the moving pieces that have come together to make this happen. You can sync your mail by pressing \f(CWMod+F8\fP and you can set a cronjob to sync mail every several minutes by running \f(CWmw cron\fP.
Honestly, people give me all this credit for making LARBS, but the mutt-wizard is probably my favorite work.
.PP
You can, through the mutt-wizard, schedule automatic mail checks every several minutes.
You can also press \f(CWMod-F8\fP at any time to check for new mail in your accounts.
You might also want to run \f(CWnotmuch setup\fP to set \f(CWnotmuch\fP up as a mail indexer.
This will allow quick searches of your mail in mutt with \f(CWctrl+f\fP.
The mailsync script will update the notmuch database once you do this.
.HEADING 2 "How do I set up my music?" .HEADING 2 "How do I set up my music?"
.PP .PP
By default, mpd, the music daemon assumes that \f(CW~/Music\fP is your music directory. By default, mpd, the music daemon assumes that \f(CW~/Music\fP is your music directory.

View File

@ -7,7 +7,7 @@ export EDITOR="nvim"
export TERMINAL="st" export TERMINAL="st"
export BROWSER="chromium" export BROWSER="chromium"
export READER="zathura" export READER="zathura"
export FILE="vu" export FILE="vifm"
export BIB="$HOME/Documents/LaTeX/uni.bib" export BIB="$HOME/Documents/LaTeX/uni.bib"
export REFER="$HOME/Documents/referbib" export REFER="$HOME/Documents/referbib"
export SUDO_ASKPASS="$HOME/.scripts/tools/dmenupass" export SUDO_ASKPASS="$HOME/.scripts/tools/dmenupass"

View File

@ -3,13 +3,8 @@
# Display contents of selection via dunst if running. # Display contents of selection via dunst if running.
# Separate script for i3. # Separate script for i3.
! pgrep -x dunst >/dev/null && echo "dunst not running." && exit
clip=$(xclip -o -selection clipboard) clip=$(xclip -o -selection clipboard)
prim=$(xclip -o -selection primary) prim=$(xclip -o -selection primary)
[ "$clip" != "" ] && notify-send "<b>Clipboard:</b> [ -n "$clip" ] && notify-send "Clipboard:" "$clip"
$clip" [ -n "$prim" ] && notify-send "Primary:" "$prim"
[ "$prim" != "" ] && notify-send "<b>Primary:</b>
$prim"

9
.scripts/statusbar/iplocate Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# Gets your public ip address checks which country you are in and
# displays that information in the statusbar
#
# https://www.maketecheasier.com/ip-address-geolocation-lookups-linux/
ifinstalled "geoiplookup" || exit
addr="$(curl ifconfig.me 2>/dev/null)" || exit
grep "flag: " ~/.config/emoji | grep "$(geoiplookup $addr | sed 's/.*, //')" | sed "s/flag: //;s/;.*//"

View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
[ "$(pgrep -x "$(basename "$0")" | wc -l)" -gt 2 ] && exit # Whenever the mpd state changes, update the mpd i3 module.
kill -0 "$(cat /tmp/mpdupdate)" 2>/dev/null && exit || echo $$ > /tmp/mpdupdate
sleep 5 && while : ; do sleep 5 && while : ; do
pgrep -x mpd || exit pkill -RTMIN+11 i3blocks
mpc idle > /dev/null mpc idle >/dev/null || exit
pkill -RTMIN+11 i3blocks ;
done done

View File

@ -1,13 +1,13 @@
set -g prefix C-a set -g prefix C-a
setw -g mode-keys vi setw -g mode-keys vi
setw -g mode-bg black #setw -g mode-bg black
set-option -g default-terminal "xterm-256color" set-option -g default-terminal "xterm-256color"
set-option -g pane-active-border-fg green #set-option -g pane-active-border-fg green
set-window-option -g xterm-keys on # for vim set-window-option -g xterm-keys on # for vim
set-window-option -g mode-keys vi # vi key set-window-option -g mode-keys vi # vi key
set-window-option -g monitor-activity on set-window-option -g monitor-activity on
set-window-option -g window-status-current-fg white #set-window-option -g window-status-current-fg white
setw -g window-status-current-attr reverse #setw -g window-status-current-attr reverse
setw -g automatic-rename setw -g automatic-rename
set -g mouse on set -g mouse on
set -g history-limit 30000 set -g history-limit 30000
@ -36,10 +36,10 @@ bind-key -n C-up prev
bind-key -n C-left prev bind-key -n C-left prev
bind-key -n C-right next bind-key -n C-right next
bind-key -n C-down next bind-key -n C-down next
set-window-option -g window-status-current-bg red #set-window-option -g window-status-current-bg red
bind C-j previous-window bind C-j previous-window
bind C-k next-window bind C-k next-window
bind-key C-a last-window # C-a C-a for last active window #bind-key C-a last-window # C-a C-a for last active window
bind A command-prompt "rename-window %%" bind A command-prompt "rename-window %%"
setw -g aggressive-resize on setw -g aggressive-resize on
bind-key h select-pane -L bind-key h select-pane -L