From 251daef5bfc131495e2a4903e4fbac11ebb5ef04 Mon Sep 17 00:00:00 2001 From: Evan Harvey <41582020+blinklad@users.noreply.github.com> Date: Mon, 27 Jan 2020 22:49:12 +1000 Subject: [PATCH 01/65] Fix spelling (#432) --- .local/bin/cron/IMPORTANT_NOTE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/cron/IMPORTANT_NOTE.md b/.local/bin/cron/IMPORTANT_NOTE.md index 9eece420..f5a130b9 100644 --- a/.local/bin/cron/IMPORTANT_NOTE.md +++ b/.local/bin/cron/IMPORTANT_NOTE.md @@ -8,4 +8,4 @@ When you add them as cronjobs, I recommend you precede the command with commands export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus; export DISPLAY=:0; . $HOME/.zprofile; then_command_goes_here ``` -This ensures that notifications will display, xdotool commands will function and environmental varialbes will work as well. +This ensures that notifications will display, xdotool commands will function and environmental variables will work as well. From 3e18f8905b67cbb7214d424ceb898e8f98c0f500 Mon Sep 17 00:00:00 2001 From: JameyBear Date: Tue, 28 Jan 2020 15:10:05 -0500 Subject: [PATCH 02/65] Update gtkrc-2.0 (#469) Portability --- .config/gtk-2.0/gtkrc-2.0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/gtk-2.0/gtkrc-2.0 b/.config/gtk-2.0/gtkrc-2.0 index 9aa6a6e4..da4d02e6 100644 --- a/.config/gtk-2.0/gtkrc-2.0 +++ b/.config/gtk-2.0/gtkrc-2.0 @@ -1,7 +1,7 @@ # DO NOT EDIT! This file will be overwritten by LXAppearance. # Any customization should be done in ~/.gtkrc-2.0.mine instead. -include "/home/luke/.gtkrc-2.0.mine" +include "~/.gtkrc-2.0.mine" gtk-theme-name="Arc-Gruvbox" gtk-icon-theme-name="Adwaita" gtk-font-name="Sans 10" From 63402cdff093e88d8429a84c5e219da195bee434 Mon Sep 17 00:00:00 2001 From: Daja177 <59206235+Daja177@users.noreply.github.com> Date: Fri, 31 Jan 2020 12:22:15 +0100 Subject: [PATCH 03/65] fix pkill issue (#471) --- .config/i3/config | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 44019281..5c60a601 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -55,7 +55,7 @@ bindsym $mod+grave exec --no-startup-id dmenuunicode ##bindsym $mod+asciitilde #STOP/HIDE EVERYTHING: -bindsym $mod+Shift+Delete exec --no-startup-id amixer sset Master mute ; exec --no-startup-id mpc pause ; pkill -RTMIN+10 i3blocks ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e $FILE +bindsym $mod+Shift+Delete exec --no-startup-id amixer sset Master mute ; exec --no-startup-id mpc pause && pkill -RTMIN+10 i3blocks ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e $FILE # Show selection: bindsym $mod+Insert exec --no-startup-id showclip @@ -146,7 +146,7 @@ bindsym $mod+n exec $term -e newsboat && pkill -RTMIN+6 i3blocks bindsym $mod+Shift+n floating toggle; sticky toggle; exec --no-startup-id hover right bindsym $mod+m exec --no-startup-id $term -e ncmpcpp -bindsym $mod+Shift+m exec --no-startup-id amixer sset Master toggle; pkill -RTMIN+10 i3blocks +bindsym $mod+Shift+m exec --no-startup-id amixer sset Master toggle && pkill -RTMIN+10 i3blocks # #---Workspace Bindings---# # bindsym $mod+Home workspace $ws1 @@ -247,10 +247,10 @@ bindsym $mod+Ctrl+Right move workspace to output right # #---Media Keys---# # # Volume keys -bindsym $mod+plus exec --no-startup-id amixer sset Master 5%+; pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+plus exec --no-startup-id amixer sset Master 15%+; pkill -RTMIN+10 i3blocks -bindsym $mod+minus exec --no-startup-id amixer sset Master 5%-; pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+minus exec --no-startup-id amixer sset Master 15%-; pkill -RTMIN+10 i3blocks +bindsym $mod+plus exec --no-startup-id amixer sset Master 5%+ && pkill -RTMIN+10 i3blocks +bindsym $mod+Shift+plus exec --no-startup-id amixer sset Master 15%+ && pkill -RTMIN+10 i3blocks +bindsym $mod+minus exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks +bindsym $mod+Shift+minus exec --no-startup-id amixer sset Master 15%- && pkill -RTMIN+10 i3blocks bindsym $mod+less exec --no-startup-id mpc prev bindsym $mod+Shift+less exec --no-startup-id mpc seek 0% bindsym $mod+greater exec --no-startup-id mpc next @@ -271,13 +271,13 @@ bindsym $mod+Delete exec $stoprec bindsym XF86Launch1 exec --no-startup-id xset dpms force off # #---Extra XF86 Keys---# # -bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle; pkill -RTMIN+10 i3blocks -bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%-; pkill -RTMIN+10 i3blocks -bindsym Shift+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 10%-; pkill -RTMIN+10 i3blocks -bindsym Control+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 1%-; pkill -RTMIN+10 i3blocks -bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+; pkill -RTMIN+10 i3blocks -bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 10%+; pkill -RTMIN+10 i3blocks -bindsym Control+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 1%+; pkill -RTMIN+10 i3blocks +bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle && pkill -RTMIN+10 i3blocks +bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks +bindsym Shift+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 10%- && pkill -RTMIN+10 i3blocks +bindsym Control+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 1%- && pkill -RTMIN+10 i3blocks +bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+ && pkill -RTMIN+10 i3blocks +bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 10%+ && pkill -RTMIN+10 i3blocks +bindsym Control+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 1%+ && pkill -RTMIN+10 i3blocks bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "$shutdown" ##bindsym XF86Copy exec ##bindsym XF86Open exec From 7f00b123fd82593bf2f00ec27b1314b5eb66901d Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 1 Feb 2020 16:06:52 -0500 Subject: [PATCH 04/65] font simplification for libxft fix --- .config/fontconfig/fonts.conf | 40 ++++++++++++++--------------------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 6a78c257..cb5634c3 100755 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -2,29 +2,21 @@ - - serif - Linux Libertine - - - sans-serif - Linux Biolinum - - - sans - Linux Biolinum - - - monospace - Inconsolata - - - - - monospace - Symbola - + + serif + Linux Libertine + + + sans-serif + Linux Biolinum + + + sans + Linux Biolinum + + + monospace + Inconsolata + - - From 2da95a09ee649e4b601587f6df9ab8af5e3da001 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 1 Feb 2020 16:07:09 -0500 Subject: [PATCH 05/65] wording --- .local/bin/remaps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/remaps b/.local/bin/remaps index 89250447..c358d747 100755 --- a/.local/bin/remaps +++ b/.local/bin/remaps @@ -1,5 +1,5 @@ #!/usr/bin/env sh -# This script is called by i3 on startup to remap keys. +# This script is called on startup to remap keys. # Increase key speed via a rate change xset r rate 300 50 # Map the caps lock key to super... From 140836aae1a31cb87e68ce5ba1a079b7e61b0804 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 7 Feb 2020 23:07:05 -0500 Subject: [PATCH 06/65] wal dir and postrun added --- .config/wal/postrun | 28 ++++++ .config/wal/templates/dunstrc | 152 ++++++++++++++++++++++++++++++++ .config/wal/templates/zathurarc | 33 +++++++ 3 files changed, 213 insertions(+) create mode 100755 .config/wal/postrun create mode 100644 .config/wal/templates/dunstrc create mode 100644 .config/wal/templates/zathurarc diff --git a/.config/wal/postrun b/.config/wal/postrun new file mode 100755 index 00000000..e2ee73cb --- /dev/null +++ b/.config/wal/postrun @@ -0,0 +1,28 @@ +#!/bin/bash + +source "${HOME}/.cache/wal/colors.sh" + +mkdir -p "${HOME}/.config/dunst" +mkdir -p "${HOME}/.config/zathura" +ln -sf "${HOME}/.cache/wal/dunstrc" "${HOME}/.config/dunst/dunstrc" +ln -sf "${HOME}/.cache/wal/zathurarc" "${HOME}/.config/zathura/zathurarc" + +fix_sequences() { + e=$'\e' + sequences=$(cat) + foreground_color="$(echo -e "${sequences}\c" | grep --color=never -Eo "${e}]10[^${e}\\\\]*?${e}\\\\" | grep --color=never -Eo "#[0-9A-Fa-f]{6}")" + background_color="$(echo -e "${sequences}\c" | grep --color=never -Eo "${e}]11[^${e}\\\\]*?${e}\\\\" | grep --color=never -Eo "#[0-9A-Fa-f]{6}")" + cursor_color="$(echo -e "${sequences}\c" | grep --color=never -Eo "${e}]12[^${e}\\\\]*?${e}\\\\" | grep --color=never -Eo "#[0-9A-Fa-f]{6}")" + +for term in /dev/pts/{0..9}* +do +echo -e "\e]4;256;${cursor_color}\a\c" > "${term}" 2>/dev/null +echo -e "\e]4;258;${background_color}\a\c" > "${term}" 2>/dev/null +echo -e "\e]4;259;${foreground_color}\a\c" > "${term}" 2>/dev/null +done +} + +fix_sequences <"${HOME}/.cache/wal/sequences" + +pkill dunst +dunst & diff --git a/.config/wal/templates/dunstrc b/.config/wal/templates/dunstrc new file mode 100644 index 00000000..9a625006 --- /dev/null +++ b/.config/wal/templates/dunstrc @@ -0,0 +1,152 @@ +[global] + monitor = 0 + follow = keyboard + geometry = "350x5-0+24" + indicate_hidden = yes + shrink = yes + transparency = 20 + notification_height = 0 + separator_height = 2 + padding = 0 + horizontal_padding = 8 + frame_width = 3 + frame_color = "{color4}" + + # Define a color for the separator. + # possible values are: + # * auto: dunst tries to find a color fitting to the background; + # * foreground: use the same color as the foreground; + # * frame: use the same color as the frame; + # * anything else will be interpreted as a X color. + separator_color = frame + + # Sort messages by urgency. + sort = yes + + idle_threshold = 120 + font = Monospace 14 + line_height = 0 + markup = full + + # The format of the message. Possible variables are: + # %a appname + # %s summary + # %b body + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + # %n progress value if set without any extra characters + # %% Literal % + # Markup is allowed + format = "%s\n%b" + + alignment = left + show_age_threshold = 60 + word_wrap = yes + ellipsize = middle + ignore_newline = no + stack_duplicates = true + hide_duplicate_count = true + show_indicators = yes + icon_position = left + max_icon_size = 40 + #icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/:/usr/share/icons/Adwaita/256x256/status/ + sticky_history = yes + history_length = 20 + dmenu = /usr/bin/dmenu -p dunst: + browser = /usr/bin/firefox -new-tab + + # Always run rule-defined scripts, even if the notification is suppressed + always_run_script = true + + title = Dunst + class = Dunst + startup_notification = false + force_xinerama = false +[experimental] + per_monitor_dpi = false + +[shortcuts] + close = ctrl+space + close_all = ctrl+shift+space + history = ctrl+grave + context = ctrl+shift+period + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "{background}" + foreground = "{foreground}" + timeout = 5 + # Icon for notifications with low urgency, uncomment to enable + #icon = /path/to/icon + +[urgency_normal] + background = "{background}" + foreground = "{foreground}" + timeout = 5 + +[urgency_critical] + background = "{background}" + foreground = "{foreground}" + frame_color = "#fabd2f" + timeout = 0 + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# Messages can be matched by "appname", "summary", "body", "icon", "category", +# "msg_urgency" and you can override the "timeout", "urgency", "foreground", +# "background", "new_icon" and "format". +# Shell-like globbing will get expanded. +# +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: if you don't want a notification to be displayed, set the format +# to "". +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# format = "" + +#[history-ignore] +# # This notification will not be saved in history +# summary = "foobar" +# history_ignore = yes + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +# vim: ft=cfg diff --git a/.config/wal/templates/zathurarc b/.config/wal/templates/zathurarc new file mode 100644 index 00000000..53737238 --- /dev/null +++ b/.config/wal/templates/zathurarc @@ -0,0 +1,33 @@ +set statusbar-h-padding 0 +set statusbar-v-padding 0 +set page-padding 1 +map u scroll half-up +map d scroll half-down +map D toggle_page_mode +map r reload +map R rotate +map K zoom in +map J zoom out +map i recolor +map p print + +set default-bg "{background}" +set default-fg "{foreground}" +set statusbar-bg "{background}" +set statusbar-fg "{foreground}" +set inputbar-bg "{background}" +set inputbar-fg "{foreground}" +set notification-bg "{background}" +set notification-fg "{foreground}" +set notification-error-bg "{background}" +set notification-error-fg "{foreground}" +set notification-warning-bg "{background}" +set notification-warning-fg "{foreground}" +set highlight-color "{color3}" +set highlight-active-color "{color4}" +set completion-bg "{color3}" +set completion-fg "{color4}" +set completion-highlight-bg "{color3}" +set completion-highlight-fg "{color4}" +set recolor-lightcolor "{background}" +set recolor-darkcolor "{foreground}" From 3ea6acfe0397028ce08ddb181bd1f8a3f4e340fc Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 8 Feb 2020 09:45:01 -0500 Subject: [PATCH 07/65] torrent statusbar automatically one line for dwm --- .local/bin/statusbar/torrent | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.local/bin/statusbar/torrent b/.local/bin/statusbar/torrent index c1387d12..c88e354b 100755 --- a/.local/bin/statusbar/torrent +++ b/.local/bin/statusbar/torrent @@ -14,7 +14,7 @@ transmission-remote -l | grep % | s/L/๐Ÿ”ผ/g; s/M/๐Ÿ”ฝ/g; s/N/โœ…/g; - s/Z/๐ŸŒฑ/g" | awk '{print $2, $1}' | sed -e "s/ $//g" + s/Z/๐ŸŒฑ/g" | awk '{print $2, $1}' | sed -e "s/ $//g" | tr '\n' ' ' case $BLOCK_BUTTON in 1) $TERMINAL -e transmission-remote-cli ;; @@ -25,4 +25,3 @@ case $BLOCK_BUTTON in โœ…: done ๐ŸŒฑ: done and seeding" ;; esac - From 1990a66cbc4454018e4c2a198ba4f7e071be3165 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 8 Feb 2020 09:46:27 -0500 Subject: [PATCH 08/65] use color emoji for non-mono fonts --- .config/fontconfig/fonts.conf | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index cb5634c3..947d7020 100755 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -1,22 +1,32 @@ - serif - Linux Libertine + + Linux Libertine + Noto Color Emoji + Joy Pixels + sans-serif - Linux Biolinum + + Linux Biolinum + Noto Color Emoji + Joy Pixels + sans - Linux Biolinum + + Linux Biolinum + Noto Color Emoji + Joy Pixels + monospace Inconsolata - From d63bedecec45b3f5c531b512ff338f0034c1f876 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 8 Feb 2020 10:34:41 -0500 Subject: [PATCH 09/65] lightdm fix --- .profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.profile b/.profile index c4bfd339..bb226b08 100644 --- a/.profile +++ b/.profile @@ -16,7 +16,7 @@ export FILE="ranger" export STATUSBAR="${LARBSWM}blocks" # ~/ Clean-up: -export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" +#export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs. export NOTMUCH_CONFIG="$HOME/.config/notmuch-config" export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0" export LESSHISTFILE="-" From f83cc1f121b804468e77c5fd315568a7932cf508 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 8 Feb 2020 10:39:09 -0500 Subject: [PATCH 10/65] lf desktop entry added --- .config/mimeapps.list | 9 ++++++++- .local/share/applications/file.desktop | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .local/share/applications/file.desktop diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 63ff1eec..30988ccf 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -1,12 +1,19 @@ [Default Applications] + +# xdg-open will use these settings to determine how to open filetypes. +# These .desktop entries can also be seen and changed in ~/.local/share/applications/ + +text/x-shellscript=text.desktop; x-scheme-handler/magnet=torrent.desktop; application/x-bittorrent=torrent.desktop; x-scheme-handler/mailto=mail.desktop; text/plain=text.desktop; -text/x-shellscript=text.desktop; application/postscript=pdf.desktop; application/pdf=pdf.desktop; image/png=img.desktop; image/jpeg=img.desktop; image/gif=img.desktop; application/rss+xml=rss.desktop +video/x-matroska=video.desktop +x-scheme-handler/lbry=lbry.desktop +inode/directory=file.desktop diff --git a/.local/share/applications/file.desktop b/.local/share/applications/file.desktop new file mode 100644 index 00000000..369bdc0f --- /dev/null +++ b/.local/share/applications/file.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=File Manager +Exec=/usr/local/bin/st -e lf %u From a25e8b640ac83b6eb345977e59803e999bc42202 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 8 Feb 2020 10:40:31 -0500 Subject: [PATCH 11/65] Unfinished bspwm stuff added. I probably won't do anything with this. --- .config/sxhkd/sxhkdrc | 113 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 108 insertions(+), 5 deletions(-) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index bb652591..6d8bda11 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -10,10 +10,6 @@ # Basic binds super + Return $TERMINAL -super + shift + Return - samedir -super + shift + q - kill -9 `xdotool getwindowfocus getwindowpid` super + d dmenu_run super + r @@ -96,7 +92,7 @@ super + {_,shift +} bracketright super + {_,shift +} bracketleft mpc seek -{10,120} # Increase volume -super {_,shift +} + plus +super + {equal,plus} amixer sset Master {5,15}%+; pkill -RTMIN+10 $STATUSBAR # Decrease volume super {_,shift +} + minus @@ -165,3 +161,110 @@ super + F8 # Mount a USB drive or Android device super + {F9,F10} {dmenumount,dmenuumount} + + + +# close and kill +super + {_,shift + }q + bspc node -{c,k} + +# alternate between the tiled and monocle layout +super + {_,shift + }f + bspc {desktop -l next,node -t ~fullscreen} + +# rotate current node 90 degrees +super + y + bspc node @focused:/ -R 90 + +# swap the current node and the biggest local node +super + space + bspc node -s biggest.local || bspc node -s next.local + +# +# state/flags +# + +# set the window state +#super + {t,shift + t,s} +#bspc node -t {tiled,pseudo_tiled,floating} + +super + shift + space + bspc node focused -t \~floating + +# focus/swap + +# focus the node in the given direction +super + {_,shift + }{h,j,k,l} + bspc node -{f,s} {west,south,north,east} + +# focus the node for the given path jump +super + {p,b,comma,period} + bspc node -f @{parent,brother,first,second} + +super + {g,semicolon} + bspc desktop {prev,next}.occupied --focus +super + {Prior,Next} + bspc desktop {prev,next}.occupied --focus +super + {Tab,backslash} + bspc desktop last --focus + +# focus or swap the next node +super + {_,shift + }c + bspc node -{f,s} next.local + +# focus the older or newer node in the focus history + +# focus or send to the given desktop +super + {_,shift + }{1-9,0} + bspc {desktop -f,node -d} ^{1-9,10} + +# preselect the direction +#super + {u,o} +#bspc node -p {south,east} + +# preselect the ratio +super + ctrl + {1-9} + bspc node -o 0.{1-9} + +# cancel the preselection for the focused node +super + ctrl + space + bspc node -p cancel + +# cancel the preselection for the focused desktop +#super + space +#bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel + +# expand a window by moving one of its side outward +super + shift + {y,u,i,o} + bspc node -z {right -20 0,bottom 0 20,bottom 0 -20,right 20 0} + +# contract a window by moving one of its side inward + +# move a floating window +super + {Left,Down,Up,Right} + bspc node -v {-20 0,0 20,0 -20,20 0} + +# Toggle gaps +super + shift + d + bspc config window_gap {0,15} +# Increase/descrease gap size +super { ,+ shift }+ z + bspc config window_gap $(($(bspc config window_gap) {+,-} 3)) + +super + u + cat /tmp/dropdown | xargs -I win bspc node win --flag hidden;bspc node -f win + +# Make a windoww sticky/non-sticky +super + o + bspc node -g sticky={on,off} + +# remove and restore polybar +#super + b +#\{ pgrep polybar && \{ killall polybar ; bspc config top_padding 0 \} \} || \{ launch_polybar ; bspc config top_padding 24 \} + +super + {i,o} + bspc node -f {prev,next}.local +super + shift + n + bspc node focused -t \~floating ; hover right +super + shift + b + bspc node focused -t \~floating ; hover left From 2b5df860ded1412a0c0be0d140d138616e926dfc Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 8 Feb 2020 18:43:37 -0500 Subject: [PATCH 12/65] #!/bin/sh shebang. newline after universalized. --- .local/bin/compiler | 2 +- .local/bin/cron/checkup | 3 ++- .local/bin/cron/cronbat | 3 ++- .local/bin/cron/crontog | 3 ++- .local/bin/cron/newsup | 3 ++- .local/bin/displayselect | 2 +- .local/bin/dmenuhandler | 3 ++- .local/bin/dmenumount | 2 +- .local/bin/dmenupass | 2 +- .local/bin/dmenurecord | 2 +- .local/bin/dmenuumount | 3 ++- .local/bin/dmenuunicode | 2 +- .local/bin/ext | 2 +- .local/bin/getkeys | 3 ++- .local/bin/i3cmds/ddspawn | 2 +- .local/bin/i3cmds/dropdowncalc | 3 ++- .local/bin/i3cmds/hover | 3 ++- .local/bin/i3cmds/i3resize | 3 ++- .local/bin/i3cmds/tmuxdd | 3 ++- .local/bin/ifinstalled | 3 ++- .local/bin/launch_polybar | 2 +- .local/bin/linkhandler | 2 +- .local/bin/maimpick | 2 +- .local/bin/mpd-module-update | 2 +- .local/bin/opout | 2 +- .local/bin/pauseallmpv | 2 +- .local/bin/podentr | 3 ++- .local/bin/prompt | 3 ++- .local/bin/qndl | 3 ++- .local/bin/queueandnotify | 3 ++- .local/bin/refbar | 2 +- .local/bin/remaps | 3 ++- .local/bin/rotdir | 2 +- .local/bin/rssadd | 3 ++- .local/bin/samedir | 3 ++- .local/bin/setbg | 2 +- .local/bin/shortcuts | 1 + .local/bin/showclip | 2 +- .local/bin/statusbar/battery | 2 +- .local/bin/statusbar/clock | 2 +- .local/bin/statusbar/cpu | 2 +- .local/bin/statusbar/disk | 2 +- .local/bin/statusbar/help | 3 ++- .local/bin/statusbar/internet | 2 +- .local/bin/statusbar/iplocate | 2 +- .local/bin/statusbar/mailbox | 2 +- .local/bin/statusbar/memory | 2 +- .local/bin/statusbar/music | 2 +- .local/bin/statusbar/news | 2 +- .local/bin/statusbar/pacpackages | 2 +- .local/bin/statusbar/popupgrade | 2 +- .local/bin/statusbar/torrent | 2 +- .local/bin/statusbar/volume | 2 +- .local/bin/statusbar/weather | 3 ++- .local/bin/td-toggle | 3 ++- .local/bin/texclear | 2 +- .local/bin/torwrap | 3 ++- .local/bin/transadd | 2 +- .local/bin/tutorialvids | 3 ++- .local/bin/unix | 5 +++-- .local/bin/vifmimg | 1 + .local/bin/vu | 2 +- 62 files changed, 88 insertions(+), 61 deletions(-) diff --git a/.local/bin/compiler b/.local/bin/compiler index a124d5f0..2fefdf5a 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # This script will compile or run another finishing operation on a document. I # have this script run via vim. diff --git a/.local/bin/cron/checkup b/.local/bin/cron/checkup index ebcdd2ac..57bb6d45 100755 --- a/.local/bin/cron/checkup +++ b/.local/bin/cron/checkup @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # Syncs repositories and downloads updates, meant to be run as a cronjob. ping -q -c 1 1.1.1.1 > /dev/null || exit diff --git a/.local/bin/cron/cronbat b/.local/bin/cron/cronbat index ee21a17b..2dc0950f 100755 --- a/.local/bin/cron/cronbat +++ b/.local/bin/cron/cronbat @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # Notify me with notify-send if my battery is below 25%. # You can set this to run via cron. diff --git a/.local/bin/cron/crontog b/.local/bin/cron/crontog index 237eb9cc..67f620b9 100755 --- a/.local/bin/cron/crontog +++ b/.local/bin/cron/crontog @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # Toggles all cronjobs off/on. # Stores disabled crontabs in ~/.consaved until restored. diff --git a/.local/bin/cron/newsup b/.local/bin/cron/newsup index 1238754b..dd270921 100755 --- a/.local/bin/cron/newsup +++ b/.local/bin/cron/newsup @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # Set as a cron job to check for new RSS entries for newsboat. # If newsboat is open, sends it an "R" key to refresh. diff --git a/.local/bin/displayselect b/.local/bin/displayselect index 57005716..c0e34795 100755 --- a/.local/bin/displayselect +++ b/.local/bin/displayselect @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # A UI for detecting and selecting all displays. Probes xrandr for connected # displays and lets user select one to use. User may also select "manual diff --git a/.local/bin/dmenuhandler b/.local/bin/dmenuhandler index c4eecc3c..c7e27400 100755 --- a/.local/bin/dmenuhandler +++ b/.local/bin/dmenuhandler @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # Feed this script a link and it will give dmenu # some choice programs to use to open it. diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount index e01c7eb3..c192873a 100755 --- a/.local/bin/dmenumount +++ b/.local/bin/dmenumount @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Gives a dmenu prompt to mount unmounted drives and Android phones. If # they're in /etc/fstab, they'll be mounted automatically. Otherwise, you'll diff --git a/.local/bin/dmenupass b/.local/bin/dmenupass index 461a5511..8631a134 100755 --- a/.local/bin/dmenupass +++ b/.local/bin/dmenupass @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # This script is the SUDO_ASKPASS variable, meaning that it will be used as a # password prompt if needed. diff --git a/.local/bin/dmenurecord b/.local/bin/dmenurecord index 7e80f3c8..a0339e45 100755 --- a/.local/bin/dmenurecord +++ b/.local/bin/dmenurecord @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Usage: # `$0`: Ask for recording type via dmenu diff --git a/.local/bin/dmenuumount b/.local/bin/dmenuumount index 25717a9e..da0f4016 100755 --- a/.local/bin/dmenuumount +++ b/.local/bin/dmenuumount @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # A dmenu prompt to unmount drives. # Provides you with mounted partitions, select one to unmount. # Drives mounted at /, /boot and /home will not be options to unmount. diff --git a/.local/bin/dmenuunicode b/.local/bin/dmenuunicode index bb576297..7a9fc428 100755 --- a/.local/bin/dmenuunicode +++ b/.local/bin/dmenuunicode @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # The famous "get a menu of emojis to copy" script. diff --git a/.local/bin/ext b/.local/bin/ext index 6fa15ca2..c2e0f5c3 100755 --- a/.local/bin/ext +++ b/.local/bin/ext @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # A general, all-purpose extraction script. Not all extraction programs here # are installed by LARBS automatically. diff --git a/.local/bin/getkeys b/.local/bin/getkeys index f4c9eb54..8871d414 100755 --- a/.local/bin/getkeys +++ b/.local/bin/getkeys @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + cat ~/.local/share/larbs/getkeys/"$1" 2>/dev/null && exit echo "Run command with one of the following arguments for info about that program:" ls ~/.local/share/larbs/getkeys diff --git a/.local/bin/i3cmds/ddspawn b/.local/bin/i3cmds/ddspawn index 1c4af36b..d4a40342 100755 --- a/.local/bin/i3cmds/ddspawn +++ b/.local/bin/i3cmds/ddspawn @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Toggle floating dropdown terminal in i3, or start if non-existing. # $1 is the script run in the terminal. diff --git a/.local/bin/i3cmds/dropdowncalc b/.local/bin/i3cmds/dropdowncalc index 132d8e19..f0615fd1 100755 --- a/.local/bin/i3cmds/dropdowncalc +++ b/.local/bin/i3cmds/dropdowncalc @@ -1,2 +1,3 @@ -#!/usr/bin/env sh +#!/bin/sh + ifinstalled bc && echo "Welcome to the Calculator." && bc -lq diff --git a/.local/bin/i3cmds/hover b/.local/bin/i3cmds/hover index d02bbbcf..a8a3e19e 100755 --- a/.local/bin/i3cmds/hover +++ b/.local/bin/i3cmds/hover @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + [ -z "$1" ] && exit # If $1 is left, hovers in the bottom left, if right, the bottom right current=$(xdotool getwindowfocus) newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3)) diff --git a/.local/bin/i3cmds/i3resize b/.local/bin/i3cmds/i3resize index f89bdb5c..0bfb5eab 100755 --- a/.local/bin/i3cmds/i3resize +++ b/.local/bin/i3cmds/i3resize @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # This script was made by `goferito` on Github. # Some cleanup by Luke. diff --git a/.local/bin/i3cmds/tmuxdd b/.local/bin/i3cmds/tmuxdd index c8eccbb0..39972401 100755 --- a/.local/bin/i3cmds/tmuxdd +++ b/.local/bin/i3cmds/tmuxdd @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # This is the script that i3 runs to either start tmux in # the dropdown terminal or log into a previous session. tmux a || tmux diff --git a/.local/bin/ifinstalled b/.local/bin/ifinstalled index baa7cda4..c8e1c2ec 100755 --- a/.local/bin/ifinstalled +++ b/.local/bin/ifinstalled @@ -1,3 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh + # If $1 command is not available, error code and notify. command -v "$1" >/dev/null || { notify-send "๐Ÿ“ฆ $1" "must be installed for this function." && exit 1 ;} diff --git a/.local/bin/launch_polybar b/.local/bin/launch_polybar index 51c8e913..291d1834 100755 --- a/.local/bin/launch_polybar +++ b/.local/bin/launch_polybar @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Terminate already running bar instances killall -q polybar diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler index 8a18280e..2c64dcbc 100755 --- a/.local/bin/linkhandler +++ b/.local/bin/linkhandler @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Feed script a url or file location. # If an image, it will view in sxiv, diff --git a/.local/bin/maimpick b/.local/bin/maimpick index 0b621072..7125e615 100755 --- a/.local/bin/maimpick +++ b/.local/bin/maimpick @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # This is bound to Shift+PrintScreen by default, requires maim. It lets you # choose the kind of screenshot to take, including copying the image or even diff --git a/.local/bin/mpd-module-update b/.local/bin/mpd-module-update index 85eb0023..da8d9fc8 100755 --- a/.local/bin/mpd-module-update +++ b/.local/bin/mpd-module-update @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # This loop will update the mpd statusbar module whenever a command changes the # music player's status. mpd must be running on X's start for this to work. diff --git a/.local/bin/opout b/.local/bin/opout index 258f7214..f81daa21 100755 --- a/.local/bin/opout +++ b/.local/bin/opout @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # opout: "open output": A general handler for opening a file's intended output, # usually the pdf of a compiled document. I find this useful especially diff --git a/.local/bin/pauseallmpv b/.local/bin/pauseallmpv index d1d35756..85a7032c 100755 --- a/.local/bin/pauseallmpv +++ b/.local/bin/pauseallmpv @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # You might notice all mpv commands are aliased to have this input-ipc-server # thing. That's just for this particular command, which allows us to pause diff --git a/.local/bin/podentr b/.local/bin/podentr index bf1eeb8a..e765c584 100755 --- a/.local/bin/podentr +++ b/.local/bin/podentr @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # entr command to run `queueandnotify` when newsboat queue is changed [ "$(pgrep -x $(basename $0) | wc -l)" -gt 2 ] && exit diff --git a/.local/bin/prompt b/.local/bin/prompt index c12a47b5..666434fb 100755 --- a/.local/bin/prompt +++ b/.local/bin/prompt @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # A dmenu binary prompt script. # Gives a dmenu prompt labeled with $1 to perform command $2. # For example: diff --git a/.local/bin/qndl b/.local/bin/qndl index 32ad03db..f5bd14f2 100755 --- a/.local/bin/qndl +++ b/.local/bin/qndl @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # $1 is a url; $2 is a command [ -z "$1" ] && exit base="$(basename "$1")" diff --git a/.local/bin/queueandnotify b/.local/bin/queueandnotify index 38c4a539..867b15e6 100755 --- a/.local/bin/queueandnotify +++ b/.local/bin/queueandnotify @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # Podboat sucks. This script replaces it. # It reads the newsboat queue, queuing downloads with taskspooler. # It also removes the junk from extentions. diff --git a/.local/bin/refbar b/.local/bin/refbar index b346cf04..78b50188 100755 --- a/.local/bin/refbar +++ b/.local/bin/refbar @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Refresh the dwmbar. # Send SIGTRAP signal to dwmbar script, which will handle it with a trap. diff --git a/.local/bin/remaps b/.local/bin/remaps index c358d747..ed6ae435 100755 --- a/.local/bin/remaps +++ b/.local/bin/remaps @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # This script is called on startup to remap keys. # Increase key speed via a rate change xset r rate 300 50 diff --git a/.local/bin/rotdir b/.local/bin/rotdir index 7c81b94e..7313a424 100755 --- a/.local/bin/rotdir +++ b/.local/bin/rotdir @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # When I open an image from the file manager in sxiv (the image viewer), I want # to be able to press the next/previous keys to key through the rest of the diff --git a/.local/bin/rssadd b/.local/bin/rssadd index 4bf87a32..4ef31a4c 100755 --- a/.local/bin/rssadd +++ b/.local/bin/rssadd @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + ! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null && notify-send "That doesn't look like a full URL." && exit RSSFILE="$HOME/.config/newsboat/urls" diff --git a/.local/bin/samedir b/.local/bin/samedir index f2ac87fe..740dcfc2 100755 --- a/.local/bin/samedir +++ b/.local/bin/samedir @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + PID=$(xprop -id "$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')" | grep -m 1 PID | cut -d " " -f 3) PID=$(echo "$(pstree -lpA "$PID" | tail -n 1)" | awk -F'---' '{print $NF}' | sed -re 's/[^0-9]//g') cd "$(readlink /proc/"$PID"/cwd)" diff --git a/.local/bin/setbg b/.local/bin/setbg index 5fdf5662..6125654a 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # In LARBS, ~/.config/wall.png is the location of the system wallpaper. This # script, if given an argument, moves it there. This script without an diff --git a/.local/bin/shortcuts b/.local/bin/shortcuts index 5d39b47d..55ce30ae 100755 --- a/.local/bin/shortcuts +++ b/.local/bin/shortcuts @@ -1,4 +1,5 @@ #!/usr/bin/env bash + # Output locations. Unactivated progs should go to /dev/null. shell_shortcuts="$HOME/.config/shortcutrc" ranger_shortcuts="$HOME/.config/ranger/shortcuts.conf" diff --git a/.local/bin/showclip b/.local/bin/showclip index 5896de63..d2faff8b 100755 --- a/.local/bin/showclip +++ b/.local/bin/showclip @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Display contents of selection via dunst if running. # Separate script for i3. diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery index 677ecb49..d1631dbd 100755 --- a/.local/bin/statusbar/battery +++ b/.local/bin/statusbar/battery @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Give a battery name (e.g. BAT0) as an argument. case $BLOCK_BUTTON in diff --git a/.local/bin/statusbar/clock b/.local/bin/statusbar/clock index 8b418ebc..5d463594 100755 --- a/.local/bin/statusbar/clock +++ b/.local/bin/statusbar/clock @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh date '+%Y %b %d (%a) %I:%M%p' diff --git a/.local/bin/statusbar/cpu b/.local/bin/statusbar/cpu index 08078ba9..3b1394af 100755 --- a/.local/bin/statusbar/cpu +++ b/.local/bin/statusbar/cpu @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh case $BLOCK_BUTTON in 1) notify-send "๐Ÿ–ฅ CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ;; diff --git a/.local/bin/statusbar/disk b/.local/bin/statusbar/disk index d9dedf3f..2ca88059 100755 --- a/.local/bin/statusbar/disk +++ b/.local/bin/statusbar/disk @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Status bar module for disk space # $1 should be drive mountpoint diff --git a/.local/bin/statusbar/help b/.local/bin/statusbar/help index 9b88e656..d7345dc9 100755 --- a/.local/bin/statusbar/help +++ b/.local/bin/statusbar/help @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + case $BLOCK_BUTTON in 1) groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura - ;; 2) i3 restart ;; diff --git a/.local/bin/statusbar/internet b/.local/bin/statusbar/internet index 86746589..49352940 100755 --- a/.local/bin/statusbar/internet +++ b/.local/bin/statusbar/internet @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh case $BLOCK_BUTTON in 1) $TERMINAL -e nmtui ;; diff --git a/.local/bin/statusbar/iplocate b/.local/bin/statusbar/iplocate index 5362330e..4ca4f107 100755 --- a/.local/bin/statusbar/iplocate +++ b/.local/bin/statusbar/iplocate @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Gets your public ip address checks which country you are in and # displays that information in the statusbar diff --git a/.local/bin/statusbar/mailbox b/.local/bin/statusbar/mailbox index f9d3bd80..21c85aba 100755 --- a/.local/bin/statusbar/mailbox +++ b/.local/bin/statusbar/mailbox @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # i3blocks mail module. # Displays number of unread mail and an loading icon if updating. diff --git a/.local/bin/statusbar/memory b/.local/bin/statusbar/memory index c1282613..dfd3d7b0 100755 --- a/.local/bin/statusbar/memory +++ b/.local/bin/statusbar/memory @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh case $BLOCK_BUTTON in 1) notify-send "๐Ÿง  Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;; diff --git a/.local/bin/statusbar/music b/.local/bin/statusbar/music index 663fe0f7..fadc15e5 100755 --- a/.local/bin/statusbar/music +++ b/.local/bin/statusbar/music @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh filter() { sed "/^volume:/d" | tac | sed -e "s/\\&/&/g;s/\\[paused\\].*//g;s/\\[playing\\].*//g" | tr -d '\n' | sed -e "s/$/<\\/span>\n/g" diff --git a/.local/bin/statusbar/news b/.local/bin/statusbar/news index 9a0c1da3..b7ca1a7a 100755 --- a/.local/bin/statusbar/news +++ b/.local/bin/statusbar/news @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # i3blocks newsboat module. # Displays number of unread news items and an loading icon if updating. diff --git a/.local/bin/statusbar/pacpackages b/.local/bin/statusbar/pacpackages index e4cd4791..418bc2db 100755 --- a/.local/bin/statusbar/pacpackages +++ b/.local/bin/statusbar/pacpackages @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # i3blocks module for pacman upgrades. # Displays number of upgradeable packages. diff --git a/.local/bin/statusbar/popupgrade b/.local/bin/statusbar/popupgrade index 099b259b..ba6678c3 100755 --- a/.local/bin/statusbar/popupgrade +++ b/.local/bin/statusbar/popupgrade @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh printf "Beginning upgrade.\\n" diff --git a/.local/bin/statusbar/torrent b/.local/bin/statusbar/torrent index c88e354b..4b559b89 100755 --- a/.local/bin/statusbar/torrent +++ b/.local/bin/statusbar/torrent @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh transmission-remote -l | grep % | sed " # This first sed command is to ensure a desirable order with sort diff --git a/.local/bin/statusbar/volume b/.local/bin/statusbar/volume index c3bf6d11..c16eded6 100755 --- a/.local/bin/statusbar/volume +++ b/.local/bin/statusbar/volume @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh case $BLOCK_BUTTON in 1) setsid "$TERMINAL" -e alsamixer & ;; diff --git a/.local/bin/statusbar/weather b/.local/bin/statusbar/weather index 4241a510..4a116733 100755 --- a/.local/bin/statusbar/weather +++ b/.local/bin/statusbar/weather @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + location="$1"; [ -z "$location" ] || { location="$location+" && rm -f "$HOME/.local/share/weatherreport" ;} getforecast() { ping -q -c 1 1.1.1.1 >/dev/null || exit 1 diff --git a/.local/bin/td-toggle b/.local/bin/td-toggle index 4178eed9..dfac906f 100755 --- a/.local/bin/td-toggle +++ b/.local/bin/td-toggle @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + # If transmission-daemon is running, will ask to kill, else will ask to start. if pgrep -x transmission-da >/dev/null ; then diff --git a/.local/bin/texclear b/.local/bin/texclear index 83fd586a..f6a5062c 100755 --- a/.local/bin/texclear +++ b/.local/bin/texclear @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Clears the build files of a LaTeX/XeLaTeX build. # I have vim run this file whenever I exit a .tex file. diff --git a/.local/bin/torwrap b/.local/bin/torwrap index becd2176..881d8cc5 100755 --- a/.local/bin/torwrap +++ b/.local/bin/torwrap @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + ifinstalled transmission-remote-cli transmission-cli || exit ! pgrep -x transmission-da >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:?}" diff --git a/.local/bin/transadd b/.local/bin/transadd index cd9f8aa4..5d8f510d 100755 --- a/.local/bin/transadd +++ b/.local/bin/transadd @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Mimeapp script for adding torrent to transmission-daemon, but will also start the daemon first if not running. diff --git a/.local/bin/tutorialvids b/.local/bin/tutorialvids index 41d3c750..5ca5c50f 100755 --- a/.local/bin/tutorialvids +++ b/.local/bin/tutorialvids @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + vidlist=" status bar https://www.youtube.com/watch?v=gKumet6b-WY sxiv (image viewer) https://www.youtube.com/watch?v=GYW9i_u5PYs diff --git a/.local/bin/unix b/.local/bin/unix index 74aa5809..a9fb96eb 100755 --- a/.local/bin/unix +++ b/.local/bin/unix @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + #original artwork by http://www.sanderfocus.nl/#/portfolio/tech-heroes #converted to shell by #nixers @ irc.unix.chat @@ -22,4 +23,4 @@ cat << 'eof' / / %%%%%%;, \%%l%%;// _/%;, dmr / %%%;, <;\-=-/ / ;, l -eof \ No newline at end of file +eof diff --git a/.local/bin/vifmimg b/.local/bin/vifmimg index 15699621..8fb8eed8 100755 --- a/.local/bin/vifmimg +++ b/.local/bin/vifmimg @@ -1,4 +1,5 @@ #!/usr/bin/env bash + [ -z "$FIFO_UEBERZUG" ] && exit readonly ID_PREVIEW="preview" diff --git a/.local/bin/vu b/.local/bin/vu index 1e8d59e1..2340cdc2 100755 --- a/.local/bin/vu +++ b/.local/bin/vu @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # This is a wrapper for vifm to allow ueberzug images. From 6c200b8850faf51a4d594b3148d3f3913149822b Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 8 Feb 2020 19:28:25 -0500 Subject: [PATCH 13/65] mailbox icon moved to script --- .config/i3blocks/config | 1 - .local/bin/statusbar/mailbox | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/i3blocks/config b/.config/i3blocks/config index 393ea862..36946642 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -34,7 +34,6 @@ interval=18000 signal=5 [mailbox] -label=๐Ÿ“ฌ interval=180 signal=12 diff --git a/.local/bin/statusbar/mailbox b/.local/bin/statusbar/mailbox index 21c85aba..3ace5f5b 100755 --- a/.local/bin/statusbar/mailbox +++ b/.local/bin/statusbar/mailbox @@ -13,4 +13,8 @@ case $BLOCK_BUTTON in - Middle click syncs mail" ;; esac -echo "$(du -a ~/.local/share/mail/*/INBOX/new/* 2>/dev/null | sed -n '$=')$(cat /tmp/imapsyncicon_$USER 2>/dev/null)" +unread="$(find ~/.local/share/mail/*/INBOX/new/* -type f | wc -l 2>/dev/null)" + +icon="$(cat "/tmp/imapsyncicon_$USER")" + +[ "$unread" = "0" ] && [ "$icon" = "" ] || echo "๐Ÿ“ฌ $unread$(cat "/tmp/imapsyncicon_$USER" 2>/dev/null)" From 8bc63d87973334e4a86f8000063a54c257c30d59 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 8 Feb 2020 20:04:11 -0500 Subject: [PATCH 14/65] news icon moved to script --- .config/i3blocks/config | 1 - .local/bin/statusbar/news | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.config/i3blocks/config b/.config/i3blocks/config index 36946642..407e23e8 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -13,7 +13,6 @@ interval=once signal=11 [news] -label=๐Ÿ“ฐ interval=once signal=6 diff --git a/.local/bin/statusbar/news b/.local/bin/statusbar/news index b7ca1a7a..a8842ad8 100755 --- a/.local/bin/statusbar/news +++ b/.local/bin/statusbar/news @@ -14,4 +14,4 @@ case $BLOCK_BUTTON in Note: Only one instance of newsboat (including updates) may be running at a time." ;; esac - cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)" + cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print "๐Ÿ“ฐ " $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)" From 9ed3e303fb6bf2e9a0cc6c748c606fc4e934811a Mon Sep 17 00:00:00 2001 From: Prithu Goswami Date: Sun, 9 Feb 2020 17:48:13 +0530 Subject: [PATCH 15/65] tmux bind for new window (#429) --- .tmux.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/.tmux.conf b/.tmux.conf index 2a6cda1e..6d85cc70 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -37,6 +37,7 @@ bind-key -n C-left prev bind-key -n C-right next bind-key -n C-down next set-window-option -g window-status-current-style bg=red +bind C-c new-window bind C-j previous-window bind C-k next-window #bind-key C-a last-window # C-a C-a for last active window From ddce1acca44015781244f2b0e200dbea0472b91e Mon Sep 17 00:00:00 2001 From: goldcoders <55337687+goldcoders@users.noreply.github.com> Date: Sun, 9 Feb 2020 20:24:30 +0800 Subject: [PATCH 16/65] Fix Gnome Apps Slow Start Up Issue (#446) --- .xinitrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.xinitrc b/.xinitrc index 3a5a2203..577cd5be 100644 --- a/.xinitrc +++ b/.xinitrc @@ -1,4 +1,7 @@ #!/usr/bin/env sh +# Fix Gnome Apps Slow Start due to failing services +# Add this when you include flatpak in your system +dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY # xinitrc runs automatically when you run startx. From 06d379cede80ef89a18e826dc5ef57b8a56d0a33 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 9 Feb 2020 07:26:32 -0500 Subject: [PATCH 17/65] dbus activ moved to xprofile --- .xinitrc | 5 +---- .xprofile | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.xinitrc b/.xinitrc index 577cd5be..c669ad2b 100644 --- a/.xinitrc +++ b/.xinitrc @@ -1,7 +1,4 @@ -#!/usr/bin/env sh -# Fix Gnome Apps Slow Start due to failing services -# Add this when you include flatpak in your system -dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY +#!/bin/sh # xinitrc runs automatically when you run startx. diff --git a/.xprofile b/.xprofile index af3e478c..321a5de4 100644 --- a/.xprofile +++ b/.xprofile @@ -3,6 +3,10 @@ # This file runs when a DM logs you into a graphical session. # If you use startx/xinit like a Chad, this file will also be sourced. +# Fix Gnome Apps Slow Start due to failing services +# Add this when you include flatpak in your system +dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY + remaps & # run the remaps script, switching caps/esc and more; check it for more info setbg & # set the background with the `setbg` script xcompmgr & # xcompmgr for transparency From 971e769f0ba2ab4c8123b73af187d498565ac55b Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 9 Feb 2020 09:15:33 -0500 Subject: [PATCH 18/65] bspwm directory added --- .config/bspwm/bspwm/bspwmrc | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 .config/bspwm/bspwm/bspwmrc diff --git a/.config/bspwm/bspwm/bspwmrc b/.config/bspwm/bspwm/bspwmrc new file mode 100755 index 00000000..c0f45d15 --- /dev/null +++ b/.config/bspwm/bspwm/bspwmrc @@ -0,0 +1,40 @@ +#!/bin/sh + +# If refreshing bspwm, remove all previous rules to prevent doubling up. +bspc rule -r "*" + +xsetroot -cursor_name left_ptr + +# We look for a non-laptop monitor to use for default, but use the laptop +# screen (LVDS) if there's nothing else. This is because I assume that if you +# have an extra screen attached to a laptop, you want to use that. +mainmonitor="$(bspc query --monitors --names | grep -v LVDS | head -n 1)" + +# if ! echo "$mainmonitor" | grep LVDS >/dev/null 2>&1; then +# xrandr --output "$mainmonitor" --auto --output LVDS1 --off +# else +# mainmonitor="LVDS1" +# xrandr --output LVDS1 --auto +# fi + +# Start workspaces on the main monitor. +bspc monitor $mainmonitor -d 1 2 3 4 5 6 7 8 9 10 +bspc desktop -f 1 + +# If you want a multi-monitor display or something else, I leave that to you to +# arrange. I have this sensible default for most people's use cases. + +bspc config border_width 3 +bspc config window_gap 15 +bspc config top_padding 24 # top_padding I set equal to polybar's height +bspc config focus_follows_pointer true + +bspc rule -a Zathura state=tiled + +dropdownname="dropdown" +bspc query -N -n .hidden >/dev/null || setsid $TERMINAL -n "$dropdownname" -e dropdown >/dev/null 2>&1 & +bspc rule -a St:$dropdownname hidden=on +bspc rule -a St:$dropdownname sticky=on +bspc rule -a St:$dropdownname state=floating + +bspc config external_rules_command "$(which floaters)" From dc92b9db4c57679c1bb7e7bc914ee7bf83dd894e Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 9 Feb 2020 09:15:58 -0500 Subject: [PATCH 19/65] dunicode no primary and insert emoji if arg --- .local/bin/dmenuunicode | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.local/bin/dmenuunicode b/.local/bin/dmenuunicode index 7a9fc428..1a14bf42 100755 --- a/.local/bin/dmenuunicode +++ b/.local/bin/dmenuunicode @@ -3,16 +3,15 @@ # The famous "get a menu of emojis to copy" script. # Must have xclip installed to even show menu. -xclip -h >/dev/null || exit +xclip -h 2>/dev/null || exit 1 -chosen=$(grep -v "#" ~/.local/share/larbs/emoji | dmenu -i -l 20 -fn Monospace-18) +chosen=$(cut -d ';' -f1 ~/.local/share/larbs/emoji | dmenu -i -l 20 | sed "s/ .*//") [ "$chosen" != "" ] || exit -c=$(echo "$chosen" | sed "s/ .*//") -echo "$c" | tr -d '\n' | xclip -selection clipboard -notify-send "'$c' copied to clipboard." & - -s=$(echo "$chosen" | sed "s/.*; //" | awk '{print $1}') -echo "$s" | tr -d '\n' | xclip -notify-send "'$s' copied to primary." & +if [ -n "$1" ]; then + xdotool key Shift+Insert +else + echo "$chosen" | tr -d '\n' | xclip -selection clipboard + notify-send "'$chosen' copied to clipboard." & +fi From d8c4fbd0e9ff58f434dc6bc0d96d2daabe3de569 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 9 Feb 2020 09:17:43 -0500 Subject: [PATCH 20/65] doc note on emoji --- .local/bin/dmenuunicode | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/dmenuunicode b/.local/bin/dmenuunicode index 1a14bf42..12240e74 100755 --- a/.local/bin/dmenuunicode +++ b/.local/bin/dmenuunicode @@ -9,6 +9,7 @@ chosen=$(cut -d ';' -f1 ~/.local/share/larbs/emoji | dmenu -i -l 20 | sed "s/ .* [ "$chosen" != "" ] || exit +# If you run this command with an argument, it will automatically insert the character. if [ -n "$1" ]; then xdotool key Shift+Insert else From 4acbbc07d35a16e2dd680fb44a0f4eaeb1756802 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 9 Feb 2020 09:24:13 -0500 Subject: [PATCH 21/65] use pywal if installed --- .local/bin/setbg | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.local/bin/setbg b/.local/bin/setbg index 6125654a..0927988e 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -3,7 +3,15 @@ # In LARBS, ~/.config/wall.png is the location of the system wallpaper. This # script, if given an argument, moves it there. This script without an # argument sets ~/.config/wall.png as the wallpaper, which is required on login -# if you don't want a blakc screen. +# if you don't want a black screen. [ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." + +# If pywal is installed, use it. +type wal >/dev/null && { wal -c ; + wal -s -i ~/.config/wall.png -o ~/.config/wal/postrun; + xsetroot -name "fsignal:xrdb"; + killall dwmblocks; + setsid dwmblocks >/dev/null 2>&1 & } + xwallpaper --zoom ~/.config/wall.png From 8d4a021f3741a728f5b1aa7e0b406e43ff79b039 Mon Sep 17 00:00:00 2001 From: nerrufam <58603397+nerrufam@users.noreply.github.com> Date: Thu, 13 Feb 2020 13:38:29 +0100 Subject: [PATCH 22/65] know the phase of the moon with emoji and % (#482) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 8 emoji for 8 main phases plus the % 'of full' ๐Ÿ˜‰ dont forget to load it to your status bar --- .local/bin/statusbar/moonphase | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .local/bin/statusbar/moonphase diff --git a/.local/bin/statusbar/moonphase b/.local/bin/statusbar/moonphase new file mode 100644 index 00000000..6ccc81b4 --- /dev/null +++ b/.local/bin/statusbar/moonphase @@ -0,0 +1,18 @@ +#!/bin/sh + +mnphs=$(pom | grep -io 'new\|waxing cresent\|first quarter\|waxing gibbous\|full\|waning gibbous\|last quarter\|waning cresent' | grep -m1 '.') +prcnt=$(pom | grep -o '..%') + +case $mnphs in + "New") icon="๐ŸŒ‘" ;; + "Waxing Cresent") icon="๐ŸŒ’" ;; + "First Quarter") icon="๐ŸŒ“" ;; + "Waxing Gibbous") icon="๐ŸŒ”" ;; + "Full") icon="๐ŸŒ•" ;; + "Waning Gibbous") icon="๐ŸŒ–" ;; + "Last Quarter") icon="๐ŸŒ—" ;; + "Waning Cresent") icon="๐ŸŒ˜" ;; + *) echo errorrrr ;; +esac + +printf "%s %s\\n" "$icon" "$prcnt" From 2eb4f10b84c3918c178675a5d32cc457209a38f9 Mon Sep 17 00:00:00 2001 From: nerrufam <58603397+nerrufam@users.noreply.github.com> Date: Sun, 16 Feb 2020 02:11:20 +0100 Subject: [PATCH 23/65] Updated moonphase (#484) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now accepts a date as argument, to know pom of a diff date. Corrected some typos, and a logic error of mine ๐Ÿ˜„ --- .local/bin/statusbar/moonphase | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.local/bin/statusbar/moonphase b/.local/bin/statusbar/moonphase index 6ccc81b4..d2bbad61 100644 --- a/.local/bin/statusbar/moonphase +++ b/.local/bin/statusbar/moonphase @@ -1,18 +1,17 @@ #!/bin/sh -mnphs=$(pom | grep -io 'new\|waxing cresent\|first quarter\|waxing gibbous\|full\|waning gibbous\|last quarter\|waning cresent' | grep -m1 '.') -prcnt=$(pom | grep -o '..%') - -case $mnphs in - "New") icon="๐ŸŒ‘" ;; - "Waxing Cresent") icon="๐ŸŒ’" ;; - "First Quarter") icon="๐ŸŒ“" ;; - "Waxing Gibbous") icon="๐ŸŒ”" ;; - "Full") icon="๐ŸŒ•" ;; - "Waning Gibbous") icon="๐ŸŒ–" ;; - "Last Quarter") icon="๐ŸŒ—" ;; - "Waning Cresent") icon="๐ŸŒ˜" ;; - *) echo errorrrr ;; +mnphs=$(pom $1 | grep -o 'New\|Waxing Crescent\|First Quarter\|Waxing Gibbous\|Full\|Waning Gibbous\|Last Quarter\|Waning Crescent' | grep -m1 '.') +prcnt=$(pom $1 | grep -o '[[:digit:]]*%') +case "$mnphs" in + "New") icon="๐ŸŒ‘" prcnt="0%" ;; + "Waxing Crescent") icon="๐ŸŒ’" ;; + "First Quarter") icon="๐ŸŒ“" prcnt="50%" ;; + "Waxing Gibbous") icon="๐ŸŒ”" ;; + "Full") icon="๐ŸŒ•" prcnt="100%" ;; + "Waning Gibbous") icon="๐ŸŒ–" ;; + "Last Quarter") icon="๐ŸŒ—" prcnt="50%" ;; + "Waning Crescent") icon="๐ŸŒ˜" ;; + *) echo errorrrr ;; esac printf "%s %s\\n" "$icon" "$prcnt" From e826c95284dbbdbd1e4345e53adb3c701296aafd Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 26 Feb 2020 14:24:40 -0500 Subject: [PATCH 24/65] xresources file added --- .config/Xresources | 156 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 .config/Xresources diff --git a/.config/Xresources b/.config/Xresources new file mode 100644 index 00000000..611f39ab --- /dev/null +++ b/.config/Xresources @@ -0,0 +1,156 @@ +!! Transparency (0-1): +*.alpha: 0.8 + +!! Set a default font and font size as below: +*.font: monospace:size=10 + +/* name dark light */ +/* black 0 8 */ +/* red 1 9 */ +/* green 2 10 */ +/* yellow 3 11 */ +/* blue 4 12 */ +/* purple 5 13 */ +/* cyan 6 14 */ +/* white 7 15 */ + +/* !! gruvbox: */ +/* *.color0: #1d2021 */ +/* *.color1: #cc241d */ +/* *.color2: #98971a */ +/* *.color3: #d79921 */ +/* *.color4: #458588 */ +/* *.color5: #b16286 */ +/* *.color6: #689d6a */ +/* *.color7: #a89984 */ +/* *.color8: #928374 */ +/* *.color9: #fb4934 */ +/* *.color10: #b8bb26 */ +/* *.color11: #fabd2f */ +/* *.color12: #83a598 */ +/* *.color13: #d3869b */ +/* *.color14: #8ec07c */ +/* *.color15: #ebdbb2 */ +/* *.color256: #1d2021 */ +/* *.color257: #ebdbb2 */ + +/* !! gruvbox light: */ +/* *.color0: #fbf1c7 */ +/* *.color1: #cc241d */ +/* *.color2: #98971a */ +/* *.color3: #d79921 */ +/* *.color4: #458588 */ +/* *.color5: #b16286 */ +/* *.color6: #689d6a */ +/* *.color7: #7c6f64 */ +/* *.color8: #928374 */ +/* *.color9: #9d0006 */ +/* *.color10: #79740e */ +/* *.color11: #b57614 */ +/* *.color12: #076678 */ +/* *.color13: #8f3f71 */ +/* *.color14: #427b58 */ +/* *.color15: #3c3836 */ +/* *.background: #fbf1c7 */ +/* *.foreground: #282828 */ +/* st.alpha: 0.9 */ + +/* !! brogrammer: */ +/* *.foreground: #d6dbe5 */ +/* *.background: #131313 */ +/* *.color0: #1f1f1f */ +/* *.color8: #d6dbe5 */ +/* *.color1: #f81118 */ +/* *.color9: #de352e */ +/* *.color2: #2dc55e */ +/* *.color10: #1dd361 */ +/* *.color3: #ecba0f */ +/* *.color11: #f3bd09 */ +/* *.color4: #2a84d2 */ +/* *.color12: #1081d6 */ +/* *.color5: #4e5ab7 */ +/* *.color13: #5350b9 */ +/* *.color6: #1081d6 */ +/* *.color14: #0f7ddb */ +/* *.color7: #d6dbe5 */ +/* *.color15: #ffffff */ +/* *.colorBD: #d6dbe5 */ + +/* ! base16 */ +/* *.color0: #181818 */ +/* *.color1: #ab4642 */ +/* *.color2: #a1b56c */ +/* *.color3: #f7ca88 */ +/* *.color4: #7cafc2 */ +/* *.color5: #ba8baf */ +/* *.color6: #86c1b9 */ +/* *.color7: #d8d8d8 */ +/* *.color8: #585858 */ +/* *.color9: #ab4642 */ +/* *.color10: #a1b56c */ +/* *.color11: #f7ca88 */ +/* *.color12: #7cafc2 */ +/* *.color13: #ba8baf */ +/* *.color14: #86c1b9 */ +/* *.color15: #f8f8f8 */ + +/* !! solarized */ +/* *.color0: #073642 */ +/* *.color1: #dc322f */ +/* *.color2: #859900 */ +/* *.color3: #b58900 */ +/* *.color4: #268bd2 */ +/* *.color5: #d33682 */ +/* *.color6: #2aa198 */ +/* *.color7: #eee8d5 */ +/* *.color9: #cb4b16 */ +/* *.color8: #fdf6e3 */ +/* *.color10: #586e75 */ +/* *.color11: #657b83 */ +/* *.color12: #839496 */ +/* *.color13: #6c71c4 */ +/* *.color14: #93a1a1 */ +/* *.color15: #fdf6e3 */ + +/* !! xterm */ +/* *.color0: #000000 */ +/* *.color1: #cd0000 */ +/* *.color2: #00cd00 */ +/* *.color3: #cdcd00 */ +/* *.color4: #0000cd */ +/* *.color5: #cd00cd */ +/* *.color6: #00cdcd */ +/* *.color7: #e5e5e5 */ +/* *.color8: #4d4d4d */ +/* *.color9: #ff0000 */ +/* *.color10: #00ff00 */ +/* *.color11: #ffff00 */ +/* *.color12: #0000ff */ +/* *.color13: #ff00ff */ +/* *.color14: #00ffff */ +/* *.color15: #aabac8 */ +/* *.background: #000000 */ + +/* ! Dracula Xresources palette */ +/* *.foreground: #F8F8F2 */ +/* *.background: #282A36 */ +/* *.color0: #000000 */ +/* *.color8: #4D4D4D */ +/* *.color1: #FF5555 */ +/* *.color9: #FF6E67 */ +/* *.color2: #50FA7B */ +/* *.color10: #5AF78E */ +/* *.color3: #F1FA8C */ +/* *.color11: #F4F99D */ +/* *.color4: #BD93F9 */ +/* *.color12: #CAA9FA */ +/* *.color5: #FF79C6 */ +/* *.color13: #FF92D0 */ +/* *.color6: #8BE9FD */ +/* *.color14: #9AEDFE */ +/* *.color7: #BFBFBF */ +/* *.color15: #E6E6E6 */ + +/* *.background: .color0 */ +/* *.color256: 0#1d2021 */ +/* *.color257: 15#ebdbb2 */ From 63453947814838680f76f593d20d0e032c821f3e Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 28 Feb 2020 16:34:46 -0500 Subject: [PATCH 25/65] battery script no longer uses pango --- .local/bin/statusbar/battery | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery index d1631dbd..c52d9de4 100755 --- a/.local/bin/statusbar/battery +++ b/.local/bin/statusbar/battery @@ -11,8 +11,10 @@ case $BLOCK_BUTTON in - Text color reflects charge left" ;; esac -capacity=$(cat /sys/class/power_supply/"$1"/capacity) || exit -status=$(cat /sys/class/power_supply/"$1"/status) +for battery in /sys/class/power_supply/BAT? +do +capacity=$(cat "$battery"/capacity) || exit +status=$(cat "$battery"/status) if [ "$capacity" -ge 75 ]; then color="#00ff00" @@ -29,4 +31,6 @@ fi [ "$status" = "Charging" ] && color="#ffffff" -printf "%s%s%s\n" "$color" "$(echo "$status" | sed -e "s/,//;s/Discharging/๐Ÿ”‹/;s/Not charging/๐Ÿ›‘/;s/Charging/๐Ÿ”Œ/;s/Unknown/โ™ป๏ธ/;s/Full/โšก/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')" +printf "%s%s%s\n" "$(echo "$status" | sed "s/,//;s/Discharging/๐Ÿ”‹/;s/Not charging/๐Ÿ›‘/;s/Charging/๐Ÿ”Œ/;s/Unknown/โ™ป๏ธ/;s/Full/โšก/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')" +done + From 217297d91f5e748b54f46428bda51a41d1a4aa22 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 29 Feb 2020 05:53:54 -0500 Subject: [PATCH 26/65] weather script cleanup --- .local/bin/statusbar/weather | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.local/bin/statusbar/weather b/.local/bin/statusbar/weather index 4a116733..dc33cb96 100755 --- a/.local/bin/statusbar/weather +++ b/.local/bin/statusbar/weather @@ -1,12 +1,10 @@ #!/bin/sh -location="$1"; [ -z "$location" ] || { location="$location+" && rm -f "$HOME/.local/share/weatherreport" ;} - getforecast() { ping -q -c 1 1.1.1.1 >/dev/null || exit 1 -curl -s "wttr.in/$location" > "$HOME/.local/share/weatherreport" || exit 1 ;} +curl -sf "wttr.in/$LOCATION" > "$HOME/.local/share/weatherreport" || exit 1 ;} showweather() { printf "%s" "$(sed '16q;d' "$HOME/.local/share/weatherreport" | grep -wo "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/โ˜” /g" | tr -d '\n')" -sed '13q;d' "$HOME/.local/share/weatherreport" | grep -o "m\\(-\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " โ„๏ธ",$1 "ยฐ","๐ŸŒž",$2 "ยฐ"}' ;} +sed '13q;d' "$HOME/.local/share/weatherreport" | grep -o "m\\(-+\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " โ„๏ธ",$1 "ยฐ","๐ŸŒž",$2 "ยฐ"}' ;} case $BLOCK_BUTTON in 1) $TERMINAL -e less -S "$HOME/.local/share/weatherreport" ;; From dab3ae5be0c4a6565394694a6e9cdc61cdeb8d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=C3=ADn=20Dach?= Date: Tue, 3 Mar 2020 22:50:10 +0100 Subject: [PATCH 27/65] Update lfrc (#495) Prevent globing, filenames with spaces will not open. --- .config/lf/lfrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 18a7e53a..27900a1d 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -70,5 +70,5 @@ map reload map shell map x $$f map X !$f -map o &mimeopen $f -map O $mimeopen --ask $f +map o &mimeopen "$f" +map O $mimeopen --ask "$f" From 884b14145a224a2dbc96bcccdd6b47fe00c48d83 Mon Sep 17 00:00:00 2001 From: nerrufam <58603397+nerrufam@users.noreply.github.com> Date: Wed, 4 Mar 2020 15:52:35 +0100 Subject: [PATCH 28/65] to avoid erorr in vifm when pywal is not used (#481) --- .local/bin/setbg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/setbg b/.local/bin/setbg index 0927988e..87096a60 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -8,7 +8,7 @@ [ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." # If pywal is installed, use it. -type wal >/dev/null && { wal -c ; +type wal >/dev/null 2>&1 && { wal -c ; wal -s -i ~/.config/wall.png -o ~/.config/wal/postrun; xsetroot -name "fsignal:xrdb"; killall dwmblocks; From ccf8e188c1d7c7b0bf1413c7b856e9dae485ce7c Mon Sep 17 00:00:00 2001 From: Charlie39 Date: Wed, 4 Mar 2020 20:23:18 +0530 Subject: [PATCH 29/65] Added instructive suggestion in the comments (#488) It looks more mass appealing with the details. --- .local/bin/statusbar/battery | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery index d1631dbd..d9506f08 100755 --- a/.local/bin/statusbar/battery +++ b/.local/bin/statusbar/battery @@ -1,5 +1,5 @@ #!/bin/sh -# Give a battery name (e.g. BAT0) as an argument. +# Give a battery name (Check the battery name from sys/class/power_supply/ e.g. BAT0 or BAT1 and pass it as an argument. case $BLOCK_BUTTON in 3) pgrep -x dunst >/dev/null && notify-send "๐Ÿ”‹ Battery module" "๐Ÿ”‹: discharging From b085acedb0a2beb64ffd01dfb664fc8be7589795 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 8 Mar 2020 18:23:04 -0400 Subject: [PATCH 30/65] tar.xz fix --- .local/bin/ext | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.local/bin/ext b/.local/bin/ext index c2e0f5c3..c5f89c5d 100755 --- a/.local/bin/ext +++ b/.local/bin/ext @@ -24,7 +24,8 @@ fi if [ -f "$archive" ] ; then case "$archive" in - *.tar.bz2|*.tar.xz|*.tbz2) tar xvjf "$archive" ;; + *.tar.bz2|*.tbz2) tar xvjf "$archive" ;; + *.tar.xz) tar -xf "$archive" ;; *.tar.gz|*.tgz) tar xvzf "$archive" ;; *.lzma) unlzma "$archive" ;; *.bz2) bunzip2 "$archive" ;; From 2acedd3517ed52e1861e21d01945d8b16dfc163e Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 8 Mar 2020 18:23:38 -0400 Subject: [PATCH 31/65] samedir tweak --- .local/bin/samedir | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.local/bin/samedir b/.local/bin/samedir index 740dcfc2..73facfd4 100755 --- a/.local/bin/samedir +++ b/.local/bin/samedir @@ -1,6 +1,8 @@ #!/bin/sh +# Open a terminal window in the same directory as the currently active window. + PID=$(xprop -id "$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')" | grep -m 1 PID | cut -d " " -f 3) -PID=$(echo "$(pstree -lpA "$PID" | tail -n 1)" | awk -F'---' '{print $NF}' | sed -re 's/[^0-9]//g') -cd "$(readlink /proc/"$PID"/cwd)" +PID="$(pstree -lpA "$PID" | tail -n 1 | awk -F'---' '{print $NF}' | sed -re 's/[^0-9]//g')" +cd "$(readlink /proc/"$PID"/cwd)" || return 1 "$TERMINAL" From 14af7cab39bb1734b591da431b9af471b913180e Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 8 Mar 2020 18:24:05 -0400 Subject: [PATCH 32/65] pacpackages with hook notice --- .local/bin/statusbar/pacpackages | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.local/bin/statusbar/pacpackages b/.local/bin/statusbar/pacpackages index 418bc2db..4273c868 100755 --- a/.local/bin/statusbar/pacpackages +++ b/.local/bin/statusbar/pacpackages @@ -1,10 +1,21 @@ #!/bin/sh -# i3blocks module for pacman upgrades. # Displays number of upgradeable packages. # For this to work, have a `pacman -Sy` command run in the background as a # cronjob every so often as root. This script will then read those packages. # When clicked, it will run an upgrade via pacman. +# +# Add the following text as a file in /usr/share/libalpm/hooks/statusbar.hook: +# +# [Trigger] +# Operation = Upgrade +# Type = Package +# Target = * +# +# [Action] +# Description = Updating statusbar... +# When = PostTransaction +# Exec = /usr/bin/pkill -RTMIN+8 dwmblocks case $BLOCK_BUTTON in 1) $TERMINAL -e popupgrade ;; @@ -14,5 +25,4 @@ case $BLOCK_BUTTON in - Middle click to show upgradable packages" ;; esac - -pacman -Qu | grep -v "\[ignored\]" | wc -l | sed -e "s/^0$//g" +pacman -Qu | grep -v "\[ignored\]" | wc -l | sed "s/^/๐Ÿ“ฆ/;s/^๐Ÿ“ฆ0$//g" From 5366f41cf981c94092d82baaa9cb80f9145ab643 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 8 Mar 2020 20:42:17 -0400 Subject: [PATCH 33/65] added by larbs script --- .xprofile | 1 - 1 file changed, 1 deletion(-) diff --git a/.xprofile b/.xprofile index 321a5de4..0e69af7b 100644 --- a/.xprofile +++ b/.xprofile @@ -15,4 +15,3 @@ dunst & # dunst for notifications xset r rate 300 50 & # Speed xrate up unclutter & # Remove mouse when idle mpd-module-update & # Check for when to update the mpd module -notify-send -i ~/.local/share/larbs/larbs.png "Welcome to LARBS" "Press super+F1 for the help menu." # LARBSWELCOME From 4ab86b5ff8cdd0fdc7df7f8f5ffeb9adc148279b Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 11 Mar 2020 14:59:46 -0400 Subject: [PATCH 34/65] mpd moved to xprofile --- .profile | 2 -- .xprofile | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.profile b/.profile index bb226b08..16bc04d2 100644 --- a/.profile +++ b/.profile @@ -38,8 +38,6 @@ export LESS_TERMCAP_se="$(printf '%b' '')" export LESS_TERMCAP_us="$(printf '%b' '')" export LESS_TERMCAP_ue="$(printf '%b' '')" -mpd >/dev/null 2>&1 & - [ ! -f ~/.config/shortcutrc ] && shortcuts >/dev/null 2>&1 # Start graphical server on tty1 if not already running. diff --git a/.xprofile b/.xprofile index 0e69af7b..9812f458 100644 --- a/.xprofile +++ b/.xprofile @@ -7,6 +7,7 @@ # Add this when you include flatpak in your system dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY +mpd & # music player daemon-you might prefer it as a service though remaps & # run the remaps script, switching caps/esc and more; check it for more info setbg & # set the background with the `setbg` script xcompmgr & # xcompmgr for transparency From 6bfbabc9c6e190ef9a065185931e5b1a12307ec3 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 13 Mar 2020 12:31:19 -0400 Subject: [PATCH 35/65] suppress wal error if not detected --- .local/bin/setbg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/setbg b/.local/bin/setbg index 0927988e..87096a60 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -8,7 +8,7 @@ [ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." # If pywal is installed, use it. -type wal >/dev/null && { wal -c ; +type wal >/dev/null 2>&1 && { wal -c ; wal -s -i ~/.config/wall.png -o ~/.config/wal/postrun; xsetroot -name "fsignal:xrdb"; killall dwmblocks; From 6c7358074dd25590b4d7c20506b20d80499dd66b Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 13 Mar 2020 12:32:37 -0400 Subject: [PATCH 36/65] switch to lf by default --- .profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.profile b/.profile index 16bc04d2..53cb8ded 100644 --- a/.profile +++ b/.profile @@ -12,7 +12,7 @@ export EDITOR="nvim" export TERMINAL="st" export BROWSER="brave" export READER="zathura" -export FILE="ranger" +export FILE="lf" export STATUSBAR="${LARBSWM}blocks" # ~/ Clean-up: From db46b82f7f0fe7d8bb76246e1e4b9947f4187012 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 15 Mar 2020 18:10:59 -0400 Subject: [PATCH 37/65] setbg can take directory arg for random --- .local/bin/setbg | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.local/bin/setbg b/.local/bin/setbg index 87096a60..ea5bc143 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -4,8 +4,13 @@ # script, if given an argument, moves it there. This script without an # argument sets ~/.config/wall.png as the wallpaper, which is required on login # if you don't want a black screen. +# +# You may also give a directory name to select a random image from that +# directory as a wallpaper. Be careful that the directory only has images. -[ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." +[ -f "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." + +[ -d "$1" ] && mv "$(find "$1" -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen." # If pywal is installed, use it. type wal >/dev/null 2>&1 && { wal -c ; From 9e4cfc127d33980d4e037d17fc3abb439d7363b3 Mon Sep 17 00:00:00 2001 From: mhdzli <50514359+mhdzli@users.noreply.github.com> Date: Mon, 16 Mar 2020 04:22:24 +0330 Subject: [PATCH 38/65] Just find pictures (#499) Filter the pictures in directory by file extensions --- .local/bin/setbg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/setbg b/.local/bin/setbg index ea5bc143..728df4ca 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -10,7 +10,7 @@ [ -f "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." -[ -d "$1" ] && mv "$(find "$1" -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen." +[ -d "$1" ] && mv "$(find "$1"/*.{jpg,jpeg,png} -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen." # If pywal is installed, use it. type wal >/dev/null 2>&1 && { wal -c ; From 5dec67777ed7148100f80754b2df5321798ed1a8 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 16 Mar 2020 20:23:01 -0400 Subject: [PATCH 39/65] lf icons added --- .xprofile | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 2 deletions(-) diff --git a/.xprofile b/.xprofile index 9812f458..677eff10 100644 --- a/.xprofile +++ b/.xprofile @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # This file runs when a DM logs you into a graphical session. # If you use startx/xinit like a Chad, this file will also be sourced. @@ -10,9 +10,72 @@ dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XA mpd & # music player daemon-you might prefer it as a service though remaps & # run the remaps script, switching caps/esc and more; check it for more info setbg & # set the background with the `setbg` script +#xrdb ~/.config/Xresources & # Uncomment to use Xresources colors/settings on startup xcompmgr & # xcompmgr for transparency -$STATUSBAR & # script for updating the status bar +$STATUSBAR & # start the statusbar dunst & # dunst for notifications xset r rate 300 50 & # Speed xrate up unclutter & # Remove mouse when idle mpd-module-update & # Check for when to update the mpd module + +# This is the list for lf icons: +export LF_ICONS="di=๐Ÿ“:\ +fi=๐Ÿ“ƒ:\ +tw=๐Ÿค:\ +ow=๐Ÿ“‚:\ +ln=โ›“:\ +or=โŒ:\ +ex=๐ŸŽฏ:\ +*.txt=โœ:\ +*.mom=โœ:\ +*.me=โœ:\ +*.ms=โœ:\ +*.png=๐Ÿ–ผ:\ +*.ico=๐Ÿ–ผ:\ +*.jpg=๐Ÿ“ธ:\ +*.jpeg=๐Ÿ“ธ:\ +*.gif=๐Ÿ–ผ:\ +*.svg=๐Ÿ—บ:\ +*.xcf=๐Ÿ–Œ:\ +*.html=๐ŸŒŽ:\ +*.xml=๐Ÿ“ฐ:\ +*.gpg=๐Ÿ”’:\ +*.css=๐ŸŽจ:\ +*.pdf=๐Ÿ“š:\ +*.djvu=๐Ÿ“š:\ +*.epub=๐Ÿ“š:\ +*.csv=๐Ÿ““:\ +*.xlsx=๐Ÿ““:\ +*.tex=๐Ÿ“œ:\ +*.md=๐Ÿ“˜:\ +*.r=๐Ÿ“Š:\ +*.R=๐Ÿ“Š:\ +*.rmd=๐Ÿ“Š:\ +*.Rmd=๐Ÿ“Š:\ +*.mp3=๐ŸŽต:\ +*.opus=๐ŸŽต:\ +*.ogg=๐ŸŽต:\ +*.m4a=๐ŸŽต:\ +*.flac=๐ŸŽผ:\ +*.mkv=๐ŸŽฅ:\ +*.mp4=๐ŸŽฅ:\ +*.webm=๐ŸŽฅ:\ +*.mpeg=๐ŸŽฅ:\ +*.zip=๐Ÿ“ฆ:\ +*.rar=๐Ÿ“ฆ:\ +*.7z=๐Ÿ“ฆ:\ +*.tar.gz=๐Ÿ“ฆ:\ +*.z64=๐ŸŽฎ:\ +*.v64=๐ŸŽฎ:\ +*.n64=๐ŸŽฎ:\ +*.1=โ„น:\ +*.nfo=โ„น:\ +*.info=โ„น:\ +*.log=๐Ÿ“™:\ +*.iso=๐Ÿ“€:\ +*.img=๐Ÿ“€:\ +*.bib=๐ŸŽ“:\ +*.ged=๐Ÿ‘ช:\ +*.part=๐Ÿ’”:\ +*.torrent=๐Ÿ”ฝ:\ +" From 8ada5ad895958d5896965dd7149abb5f5aa7eb13 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 17 Mar 2020 08:23:29 -0400 Subject: [PATCH 40/65] i3 config fixes --- .config/i3/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index 5c60a601..0703caa7 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -47,6 +47,7 @@ bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle bindsym $mod+Escape workspace prev +bindsym $mod+Shift+Escape exec prompt "Log out of i3?" "i3 exit" # bindsym $mod+BackSpace bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot" @@ -93,7 +94,7 @@ bindsym $mod+p exec --no-startup-id mpc toggle bindsym $mod+Shift+p exec --no-startup-id mpc pause bindsym $mod+a exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 -bindsym $mod+Shift+a exec $term -e pulsemixer +bindsym $mod+Shift+a exec $term -e alsamixer bindsym $mod+s gaps inner current plus 5 bindsym $mod+Shift+s gaps inner current minus 5 From 54f22aab7bda7674340683d294dd50d0dc27761b Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 17 Mar 2020 08:28:37 -0400 Subject: [PATCH 41/65] i3 dox updates --- .local/share/larbs/readme.mom | 105 +++++++++++----------------------- 1 file changed, 33 insertions(+), 72 deletions(-) diff --git a/.local/share/larbs/readme.mom b/.local/share/larbs/readme.mom index 2a6f6ca8..c46b1a82 100644 --- a/.local/share/larbs/readme.mom +++ b/.local/share/larbs/readme.mom @@ -8,7 +8,7 @@ .DOCTYPE DEFAULT .COPYSTYLE FINAL .PRINTSTYLE TYPESET -.PT_SIZE 10 +.PT_SIZE 12 .START Use vim keys (\f(CWh/j/k/l\fP) to navigate this document. Pressing \f(CWs\fP will fit it to window width (\f(CWa\fP to revert). @@ -16,7 +16,7 @@ Pressing \f(CWs\fP will fit it to window width (\f(CWa\fP to revert). \f(CWSuper+f\fP to toggle fullscreen. \f(CWf\fP will highlight links to follow which are selectable by typing the number that appears plus \f(CWEnter\fP. \f(CWq\fP to quit. -(These are general shortcuts of \f(CWzathura\fP, the pdf reader.) +(These are general binds set for \fBzathura\fP, the pdf reader.) .LI .ITEM \f(CWMod+F1\fP will show this document at any time. @@ -24,20 +24,6 @@ Pressing \f(CWs\fP will fit it to window width (\f(CWa\fP to revert). By \f(CWMod\fP I mean the Super Key, usually known as "the Windows Key." .LIST OFF .PP -Questions or suggestions? Email me at -.PDF_WWW_LINK "mailto:luke@lukesmith.xyz" "luke@lukesmith.xyz" -.LI -.ITEM -LARBS website: -.PDF_WWW_LINK "https://larbs.xyz" -.ITEM -My website: -.PDF_WWW_LINK "https://lukesmith.xyz" -.ITEM -Donate: -.PDF_WWW_LINK "https://lukesmith.xyz/donate" "https://lukesmith.xyz/donate" -(It makes a difference!) -.LIST OFF FAQs are at the end of this document. .HEADING 1 "Welcome!" .HEADING 2 "Basic goals and principles of this system:" @@ -71,7 +57,8 @@ but you can also hold it down and it will act as another Windows/super/mod key. The menu button (usually between the right Alt and Ctrl) is an alternative Super/Mod button. This is to make one-handing on laptops easier. .LIST OFF -If you'd like to change any of these keyboard changes, you need only open and change \f(CW~/.xprofile\fP. +If you'd like to change any of these keyboard changes, you need only open and change the \f(CWremaps\fP script. +All custom scripts in LARBS are located in \f(CW~/.local/bin/\fP. Actually, this should go without saying, but \fIeverything\fP here can easily be changed. Below in this document, there is information about where to change programs/components. .PP @@ -80,23 +67,18 @@ If you want to learn more of this, run \f(CWMod+Shift+E\fP and type and select t This setting can be changed if you don't like it by deleting or commenting out the contents of \f(CW~/.config/inputrc\fP. .HEADING 2 "The Status Bar" .PP -If you're new to dwm, notice the status bar on the top of the screen. -To the left side, you'll see the numbers of your current workspace/tag(s). -On the right side, you'll see various system status notifiers, the date, volume, even music and local weather if possible, etc. +To the left, you'll see the numbers of your current workspace/tag(s). +On the right, you'll see various system status notifiers, the date, volume, even music and local weather if possible, etc. +Each module on the right of the status bar is a script located in \f(CW~/.local/bin/statusbar/\fP. +You can see what they do and modify them from there. I'm sure you can figure it out. -The script that sets the bar is \f(CW~/.local/bin/dwmbar\fP. -You can read the specifics there or change it if you want. -If you edit and save changes to that file in vim, vim will automatically kill and update it. +.PP +In i3, the program i3blocks controls what modules appear in the statusbar; its config file is in \f(CW~/.config/i3blocks/config\fP. .HEADING 2 "Deeper Tutorials" .PP Press \f(CWmod+shift+e\fP at any time to get a menu of programs to watch videos about streaming directly from YouTube. You can also check the config files for programs which detail a lot of the specific bindings. .HEADING 1 "Key Bindings" -.PP -First, the key bindings. -Key bindings are stored in two places. -The file \f(CW~/.config/sxhkd/sxhkdrc\fP contains most of them, which you can see and edit there if you like. -dwm-specific binds are compiled into dwm itself, but can be found in \f(CW~/repos/dwm/config.h\fP. You'll have to recompile dwm to change them. .HEADING 2 "Window basics" .PP Notice the case sensitivity of the shortcuts\c @@ -108,9 +90,7 @@ To type capital letters, hold down the \f(CWShift\fP key\(emthat might sound lik .ITEM \f(CWMod+Enter\fP \(en Spawn terminal (the default terminal is \f(CWst\fP; run \f(CWman st\fP for more.) .ITEM -\f(CWMod+q\fP \(en Close window -.ITEM -\f(CWMod+Q\fP \(en Force close window +\f(CWMod+q\fP \(en Close window (Hold down shift to force kill.) .ITEM \f(CWMod+d\fP \(en dmenu (For running commands or programs without shortcuts) .ITEM @@ -139,19 +119,6 @@ To type capital letters, hold down the \f(CWShift\fP key\(emthat might sound lik .ITEM \f(CWMod+N\fP \(en Same as above, but for the bottom right corner. .LIST OFF -.HEADING 2 "Window layouts" -.LI -.ITEM -\f(CWMod+t\fP \(en Tiling mode (active by default) -.ITEM -\f(CWMod+f\fP \(en Monocle mode (cycle through windows fullscreen) -.ITEM -\f(CWMod+y\fP \(en Fibbonacci mode (similar to tiling mode) -.ITEM -\f(CWMod+u\fP \(en Center the master window -.ITEM -\f(CWMod+o\fP \(en Center and float the master window -.LIST OFF .HEADING 2 "Basic Programs" .PP \fINote:\fP LARBS will install nearly all of these programs by default, but some only come if you chose an extra option. @@ -160,23 +127,23 @@ Naturally, you can use \f(CWyay\fP to look for and install any you want to add. .ITEM \f(CWMod+r\fP \(en lf (file browser/manager) .ITEM -\f(CWMod+e\fP \(en mutt (email; not installed by default, see below) +\f(CWMod+e\fP \(en neomutt (email) \(en Must be first configured by running \f(CWmw add\fP. .ITEM \f(CWMod+m\fP \(en ncmpcpp (music player) .ITEM -\f(CWMod+w\fP \(en nmtui (for connecting to wireless internet) -.ITEM \f(CWMod+a\fP \(en Dropdown calculator (hide with \f(CWmod+a\fP) .ITEM -\f(CWMod+a\fP \(en htop (system info) +\f(CWMod+i\fP \(en htop (system info) .ITEM \f(CWMod+n\fP \(en newsboat (RSS feed reader) .ITEM \f(CWMod+A\fP \(en alsa (audio system control) .ITEM -\f(CWMod+W\fP \(en Web Browser (Brave) +\f(CWMod+w\fP \(en Web Browser (Brave) .ITEM -\f(CWMod+G\fP \(en GIMP (for general image manipulation) +\f(CWMod+W\fP \(en nmtui (for connecting to wireless internet) +.ITEM +\f(CWMod+G\fP \(en GIMP (for general image manipulation) \(en Not installed by default. .LIST OFF .HEADING 2 "System" .LI @@ -187,13 +154,13 @@ Naturally, you can use \f(CWyay\fP to look for and install any you want to add. .ITEM \f(CWMod+Shift+Backspace\fP \(en reboot (will ask to confirm) .ITEM -\f(CWMod+Shift+Escape\fP \(en exit the graphical environment (will ask to confirm) +\f(CWMod+Shift+Escape\fP \(en log out of the graphical environment (will ask to confirm) .ITEM \f(CWMod+F1\fP \(en Shows this document .ITEM \f(CWMod+Shift+F1\fP \(en Toggle the LARBS welcome message .ITEM -\f(CWMod+F2\fP \(en Refresh dwm +\f(CWMod+F2\fP \(en Refresh/reload i3 .ITEM \f(CWMod+F3\fP \(en Select screen/display to use .ITEM @@ -244,16 +211,16 @@ I use ncmpcpp as a music player, which is a front end for mpd. .ITEM \f(CWMod+A\fP \(en alsamixer (general volume sink/source control) .LIST OFF -.HEADING 2 "Tags/Workspaces" +.HEADING 2 "Workspaces" .PP -There are nine tags, active tags are highlighted in the top left. +There are ten workspaces, active workspaces are highlighted in the top left. .LI .ITEM -\f(CWMod+(Number)\fP \(en Go to that number tag +\f(CWMod+(Number)\fP \(en Go to that number workspace .ITEM -\f(CWMod+Shift+(Number)\fP \(en Send window to that tag +\f(CWMod+Shift+(Number)\fP \(en Send window to that workspace .ITEM -\f(CWMod+Tab\fP \(en Go to previous tag +\f(CWMod+Tab\fP \(en Go to previous workspace (may also use \f(CW\\\fP for Tab) .ITEM \f(CWMod+g\fP \(en Go to left workspace .ITEM @@ -274,9 +241,9 @@ previous recordings as their names are based on their exact times. .ITEM \f(CWMod+Delete\fP \(en Kills any recording started in the above way. .ITEM -\f(CWMod+ScrollLock\fP \(en Turn on and off screenkey (if installed) for visual typing display -.ITEM \f(CWMod+Shift+c\fP \(en Toggles a webcam in the bottom right for screencasting. +.ITEM +\f(CWMod+ScrollLock\fP \(en Toggle screenkey (if installed) to show keypresses .LIST OFF .HEADING 2 "Other buttons" .PP @@ -285,17 +252,11 @@ buttons, screen brightness, email, web browsing buttons, etc.) to what you would expect. .HEADING 1 "Configuration" .PP -Here's a brief reference as to what program does what and where you can modify them. -Some of the programs marked as "suckless" programs must be recompiled after being reconfigured. -That means you should go to their directory in \f(CW~/repos/\fP and run \f(CWmake && sudo make install\fP after making changes. -.LI -.ITEM -dwm: the window manager itself \(en \f(CW~/repos/dwm/\fP (suckless) -.ITEM -sxhkd: key bindings \(en \f(CW~/.config/sxhkd/sxhkdrc\fP, while some dwm-related commands are configured in dwm, the rest, most of them, are set by sxhkd. -.ITEM -lf: the file manager, \f(CW~/.config/lfrc\fP for the main config, \f(CW~/.config/scope\fP for file previews. -.LIST OFF +Dotfiles/settings files are located in \f(CW~/.config/\fP, note that dotfiles to programs not included in LARBS are there as well by requests of users. I do not necessarily maintain all these dotfiles, but they remain as legacy. +.PP +Suckless programs, st (the terminal) and dmenu among others do not have traditional config files, but have their source code location in \f(CW~/.local/src/\fP. +There you can modify their \f(CWconfig.h\fP files, then \f(CWsudo make install\fP to reinstall. +(You'll have to restart the program to see its effects obviously.) .HEADING 1 "Frequently Asked Questions (FAQs)" .HEADING 2 "My keyboard isn't working as expected!" .PP @@ -305,7 +266,7 @@ These settings may override your preferred settings, so you should open this fil .PP On fresh install, the Linux audio system (ALSA) often mutes outputs. You may want to unbind -You may also need to set your preferred default output sink which you can do by the command line, or by selecting one with \f(CWpulsemixer\fP (\f(CWmod+A\fP). +You may also need to set your preferred default output sink which you can do by the command line, or by selecting one with \f(CWalsamixer\fP (\f(CWmod+A\fP). If you have a more complex audio setup and can't be bothered to figure out ALSA, you might want to install and enable PulseAudio, which general "just werks". .HEADING 2 "How do I copy and paste?" @@ -314,7 +275,7 @@ Copying and pasting is always program-specific on any system. In most graphical programs, copy and paste will be the same as they are on Windows: \f(CWctrl-c\fP and \f(CWctrl-v\fP. In the Linux terminal, those binds have other more important purposes, so you can run \f(CWman st\fP to see how to copy and paste in my terminal build. .PP -Additionally, I've set vim to use the clipboard as the default buffer, which means when you copy or delete something in vim, it will be in your system clipboard as well, so you can \f(CWctrl-v\fP it into your Firefox instance, etc. You can also paste material copied from other programs into vim with the typical vim bindings. +Additionally, I've set vim to use the clipboard as the default buffer, which means when you copy or delete something in vim, it will be in your system clipboard as well, so you can \f(CWctrl-v\fP it into your browser instance, etc. You can also paste material copied from other programs into vim with the typical vim bindings. .HEADING 2 "How do I change the background/wallpaper?" .PP The system will always read the file \f(CW~/.config/wall.png\fP as the wallpaper. From 89edbfec2e6eaeed4b3fe8ed06e6294ee1b0340b Mon Sep 17 00:00:00 2001 From: nerrufam <58603397+nerrufam@users.noreply.github.com> Date: Sun, 22 Mar 2020 01:17:24 +0100 Subject: [PATCH 42/65] Update vimrc (#502) Cleans up listing of archives, adds new archives, and ueberzug can display the first frame of a gif. --- .config/vifm/vifmrc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index d646f860..2b5d170e 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -55,18 +55,21 @@ filetype *.csv,*.xlsx sc-im %c fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus mpv --no-audio-display --input-ipc-server=/tmp/mpvsoc$(date +%%s) %c -filextype *.pdf,*.ps,*.eps,*.ps.gz,*.djvu,*.epub zathura %f 2>/dev/null &, +filextype *.pdf,*.ps,*.eps,*.ps.gz,*.djvu,*.epub,*.cbz,*.cbr,*.cb7 zathura %f 2>/dev/null &, fileviewer *.pdf pdftotext -l 1 -nopgbrk %c - fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.qt,*.divx,*.as[fx],*mp3,*.flac file filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,*.as[fx] mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) %f 2>/dev/null &, -fileview *.zip,*.rar,*.tar.gz atool -l %f -filetype *.zip,*.rar,*.tar.gz ext %f +fileview *.tar.gz atool -l --format=tar %f 2>/dev/null | awk '{$1=$2=$3=$4=$5=""; print $0}' +fileview *.zip,*.cbz atool -l --format=zip %f 2>/dev/null | tail +4 | awk '{$1=$2=$3=""; print $0}' +fileview *.rar,*.cbr atool -l --format=rar %f 2>/dev/null | tail +9 | awk '{$1=$2=$3=$4=""; print $0}' +fileview *.7z,*.cb7 atool -l --format=rar %f 2>/dev/null | tail +9 | awk '{$1=$2=$3=$4=$5=""; print $0}' +filetype *.zip,*.7z,*.rar,*.tar.gz,*.tar.xz ext %f fileviewer *.[1-8] man ./%c | col -b filetype *.[1-8] man ./%c -fileviewer *.jpg,*.jpeg,*.png,*.ico vifmimg draw %px %py %pw %ph %c %pc vifmimg clear +fileviewer *.jpg,*.jpeg,*.png,*.ico,*.gif vifmimg draw %px %py %pw %ph %c %pc vifmimg clear filextype *.bmp,*.jpg,*.jpeg,*.png,*.ico,*.gif,*.xpm rotdir %f 2>/dev/null | sxiv -ia 2>/dev/null & filextype *.svg inkscape %f 2>/dev/null & From b063c74898770980746699cdb3aa004eca8d9bf0 Mon Sep 17 00:00:00 2001 From: nerrufam <58603397+nerrufam@users.noreply.github.com> Date: Sun, 22 Mar 2020 01:32:12 +0100 Subject: [PATCH 43/65] Fixed a litle typo (#504) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿ˜‡pls merge again๐Ÿ˜‡ --- .config/vifm/vifmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 2b5d170e..b327786c 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -63,7 +63,7 @@ filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv] fileview *.tar.gz atool -l --format=tar %f 2>/dev/null | awk '{$1=$2=$3=$4=$5=""; print $0}' fileview *.zip,*.cbz atool -l --format=zip %f 2>/dev/null | tail +4 | awk '{$1=$2=$3=""; print $0}' fileview *.rar,*.cbr atool -l --format=rar %f 2>/dev/null | tail +9 | awk '{$1=$2=$3=$4=""; print $0}' -fileview *.7z,*.cb7 atool -l --format=rar %f 2>/dev/null | tail +9 | awk '{$1=$2=$3=$4=$5=""; print $0}' +fileview *.7z,*.cb7 atool -l --format=7z %f 2>/dev/null | tail +20 | awk '{$1=$2=$3=$4=$5=""; print $0}' filetype *.zip,*.7z,*.rar,*.tar.gz,*.tar.xz ext %f fileviewer *.[1-8] man ./%c | col -b From 1f248379524fcb53da8a57480909850bc34e5588 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 09:08:05 -0400 Subject: [PATCH 44/65] internet script more efficient --- .local/bin/statusbar/internet | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.local/bin/statusbar/internet b/.local/bin/statusbar/internet index 49352940..8063e193 100755 --- a/.local/bin/statusbar/internet +++ b/.local/bin/statusbar/internet @@ -10,8 +10,7 @@ case $BLOCK_BUTTON in " ;; esac -[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="๐Ÿ“ก" +[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="๐Ÿ“ก" || + wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "๐Ÿ“ถ", int($3 * 100 / 70) "%" }') -[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "๐Ÿ“ถ", int($3 * 100 / 70) "%" }') - -printf "%s %s\n" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/โŽ/;s/up/๐ŸŒ/")" +printf "%s %s\n" "$wifiicon" "$(sed "s/down/โŽ/;s/up/๐ŸŒ/" /sys/class/net/e*/operstate)" From b54a56831e8a56277b00109c5de363ab12f16b64 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 09:29:44 -0400 Subject: [PATCH 45/65] moonphase executable --- .local/bin/statusbar/moonphase | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 .local/bin/statusbar/moonphase diff --git a/.local/bin/statusbar/moonphase b/.local/bin/statusbar/moonphase old mode 100644 new mode 100755 From f939f016a25b250c2fcbce230d8be044c4d33c09 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 09:31:25 -0400 Subject: [PATCH 46/65] suppress all setbg wal output --- .local/bin/setbg | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.local/bin/setbg b/.local/bin/setbg index 728df4ca..e7775cad 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -13,10 +13,10 @@ [ -d "$1" ] && mv "$(find "$1"/*.{jpg,jpeg,png} -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen." # If pywal is installed, use it. -type wal >/dev/null 2>&1 && { wal -c ; - wal -s -i ~/.config/wall.png -o ~/.config/wal/postrun; - xsetroot -name "fsignal:xrdb"; - killall dwmblocks; - setsid dwmblocks >/dev/null 2>&1 & } +type wal >/dev/null 2>&1 && { wal -c + wal -s -i ~/.config/wall.png -o ~/.config/wal/postrun + xsetroot -name "fsignal:xrdb" + killall dwmblocks + setsid dwmblocks >/dev/null & } >/dev/null 2>&1 xwallpaper --zoom ~/.config/wall.png From 7eb519b436303a5236cadd69723a6fb8a4955c20 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 09:33:36 -0400 Subject: [PATCH 47/65] double label removed --- .config/i3blocks/config | 1 - 1 file changed, 1 deletion(-) diff --git a/.config/i3blocks/config b/.config/i3blocks/config index 407e23e8..e4626545 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -20,7 +20,6 @@ signal=6 #interval=30 [pacpackages] -label=๐Ÿ“ฆ interval=once signal=8 From 248b6dd3d2383be17a5533e532c0322ae9960c13 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 09:41:29 -0400 Subject: [PATCH 48/65] lf hardcoded --- .config/i3/config | 11 +++++------ .profile | 1 - 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 0703caa7..fe2d3d38 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -4,7 +4,6 @@ # This config file will use environmental variables such as $BROWSER and $TERMINAL. # You can set these variables in ~/.profile or ~/.bash_profile if you have it as below: # -# export FILE="ranger" # export TERMINAL="st" # #---Basic Definitions---# # @@ -56,7 +55,7 @@ bindsym $mod+grave exec --no-startup-id dmenuunicode ##bindsym $mod+asciitilde #STOP/HIDE EVERYTHING: -bindsym $mod+Shift+Delete exec --no-startup-id amixer sset Master mute ; exec --no-startup-id mpc pause && pkill -RTMIN+10 i3blocks ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e $FILE +bindsym $mod+Shift+Delete exec --no-startup-id lmc mute ; exec --no-startup-id mpc pause && pkill -RTMIN+10 i3blocks ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e lf # Show selection: bindsym $mod+Insert exec --no-startup-id showclip @@ -72,7 +71,7 @@ bindsym $mod+Shift+w exec --no-startup-id $BROWSER bindsym $mod+e exec $term -e neomutt && pkill -RTMIN+12 i3blocks bindsym $mod+Shift+e exec --no-startup-id tutorialvids -bindsym $mod+r exec $term -e $FILE +bindsym $mod+r exec $term -e lf bindsym $mod+Shift+r exec --no-startup-id winresize bindsym $mod+t split toggle @@ -288,7 +287,7 @@ bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "$shutdow bindsym XF86Calculator exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 ##bindsym XF86Sleep This binding is typically mapped by systemd automatically. ##bindsym XF86WakeUp exec -bindsym XF86Explorer exec $term -e $FILE +bindsym XF86Explorer exec $term -e lf ##bindsym XF86Send exec ##bindsym XF86Xfer exec bindsym XF86WWW exec --no-startup-id $BROWSER @@ -297,7 +296,7 @@ bindsym XF86ScreenSaver exec exec --no-startup-id lockscreen ##bindsym XF86RotateWindows exec ##bindsym XF86TaskPane exec ##bindsym XF86Favorites exec -bindsym XF86MyComputer exec $term -e $FILE +bindsym XF86MyComputer exec $term -e lf ##bindsym XF86Back exec ##bindsym XF86Forward exec bindsym XF86Eject exec --no-startup-id dmenuumount @@ -349,7 +348,7 @@ bindsym XF86Display exec --no-startup-id displayselect ##bindsym XF86Reply exec ##bindsym XF86MailForward exec ##bindsym XF86Save exec -bindsym XF86Documents exec $term -e $FILE ~/Documents +bindsym XF86Documents exec $term -e lf ~/Documents ##bindsym XF86Battery exec ##bindsym XF86Bluetooth exec bindsym XF86WLAN exec $netrefresh diff --git a/.profile b/.profile index 53cb8ded..73e54de4 100644 --- a/.profile +++ b/.profile @@ -12,7 +12,6 @@ export EDITOR="nvim" export TERMINAL="st" export BROWSER="brave" export READER="zathura" -export FILE="lf" export STATUSBAR="${LARBSWM}blocks" # ~/ Clean-up: From 1dc42a4f86cc1eeb92d094d92a5e1ae145010ff7 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 09:41:50 -0400 Subject: [PATCH 49/65] lmc readded --- .config/i3/config | 24 ++++++++++++------------ .local/bin/lmc | 27 +++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 12 deletions(-) create mode 100755 .local/bin/lmc diff --git a/.config/i3/config b/.config/i3/config index fe2d3d38..d9b317d8 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -146,7 +146,7 @@ bindsym $mod+n exec $term -e newsboat && pkill -RTMIN+6 i3blocks bindsym $mod+Shift+n floating toggle; sticky toggle; exec --no-startup-id hover right bindsym $mod+m exec --no-startup-id $term -e ncmpcpp -bindsym $mod+Shift+m exec --no-startup-id amixer sset Master toggle && pkill -RTMIN+10 i3blocks +bindsym $mod+Shift+m exec --no-startup-id lmc toggle # #---Workspace Bindings---# # bindsym $mod+Home workspace $ws1 @@ -247,10 +247,10 @@ bindsym $mod+Ctrl+Right move workspace to output right # #---Media Keys---# # # Volume keys -bindsym $mod+plus exec --no-startup-id amixer sset Master 5%+ && pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+plus exec --no-startup-id amixer sset Master 15%+ && pkill -RTMIN+10 i3blocks -bindsym $mod+minus exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+minus exec --no-startup-id amixer sset Master 15%- && pkill -RTMIN+10 i3blocks +bindsym $mod+plus exec --no-startup-id lmc up +bindsym $mod+Shift+plus exec --no-startup-id lmc up 15 +bindsym $mod+minus exec --no-startup-id lmc down +bindsym $mod+Shift+minus exec --no-startup-id lmc down 15 bindsym $mod+less exec --no-startup-id mpc prev bindsym $mod+Shift+less exec --no-startup-id mpc seek 0% bindsym $mod+greater exec --no-startup-id mpc next @@ -271,13 +271,13 @@ bindsym $mod+Delete exec $stoprec bindsym XF86Launch1 exec --no-startup-id xset dpms force off # #---Extra XF86 Keys---# # -bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle && pkill -RTMIN+10 i3blocks -bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks -bindsym Shift+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 10%- && pkill -RTMIN+10 i3blocks -bindsym Control+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 1%- && pkill -RTMIN+10 i3blocks -bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+ && pkill -RTMIN+10 i3blocks -bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 10%+ && pkill -RTMIN+10 i3blocks -bindsym Control+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 1%+ && pkill -RTMIN+10 i3blocks +bindsym XF86AudioMute exec --no-startup-id lmc toggle +bindsym XF86AudioLowerVolume exec --no-startup-id lmc down +bindsym Shift+XF86AudioLowerVolume exec --no-startup-id lmc down 10 +bindsym Control+XF86AudioLowerVolume exec --no-startup-id lmc down 1 +bindsym XF86AudioRaiseVolume exec --no-startup-id lmc up +bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id lmc up 10 +bindsym Control+XF86AudioRaiseVolume exec --no-startup-id lmc up 1 bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "$shutdown" ##bindsym XF86Copy exec ##bindsym XF86Open exec diff --git a/.local/bin/lmc b/.local/bin/lmc new file mode 100755 index 00000000..bbe99a56 --- /dev/null +++ b/.local/bin/lmc @@ -0,0 +1,27 @@ +#!/bin/sh + +NUM="${2:-5}" + +# Uncomment the following line to use Pulseaudio. +# PULSE=true + +if [ "$PULSE" ]; then + toggle() { pulsemixer --toggle-mute ;} + mute() { pulsemixer --mute ;} + up() { pulsemixer --change-volume +"$NUM" ;} + down() { pulsemixer --change-volume -"$NUM" ;} +else + toggle() { amixer sset Master toggle ;} + mute() { amixer sset Master mute ;} + up() { amixer sset Master "$NUM"%+ ;} + down() { amixer sset Master "$NUM"%- ;} +fi + +case "$1" in + toggle) toggle ;; + mute) mute ;; + up) up ;; + down) down ;; +esac >/dev/null + +pkill -RTMIN+10 "${STATUSBAR:?}" & From ffff12d1a5c6e18bc29f20329fe15c86f6c667da Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 09:42:42 -0400 Subject: [PATCH 50/65] etc --- .config/i3/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index d9b317d8..e6bbe041 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -46,7 +46,7 @@ bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle bindsym $mod+Escape workspace prev -bindsym $mod+Shift+Escape exec prompt "Log out of i3?" "i3 exit" +bindsym $mod+Shift+Escape exec --no-startup-id prompt "Exit i3?" "i3 exit" # bindsym $mod+BackSpace bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot" @@ -230,6 +230,7 @@ bindsym $mod+F9 exec --no-startup-id dmenumount bindsym $mod+F10 exec --no-startup-id dmenuumount bindsym $mod+F11 exec --no-startup-id ducksearch bindsym $mod+F12 exec $term -e nmtui +bindsym $mod+Shift+F1 exec --no-startup-id grep LARBSWELCOME ~/.xprofile && ( sed -i "/LARBSWELCOME/d" ~/.xprofile && notify-send "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) || ( echo "notify-send -i "$HOME/.local/share/larbs/larbs.png" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> ~/.xprofile && notify-send "LARBS welcome message" "Welcome message re-enabled." ) # #---Arrow Keys---# # bindsym $mod+Left focus left From 787a627f5af661f31fb6d9ef6cdaf975db7bb7e7 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 09:47:57 -0400 Subject: [PATCH 51/65] quote fix? --- .config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index e6bbe041..6545d086 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -230,7 +230,7 @@ bindsym $mod+F9 exec --no-startup-id dmenumount bindsym $mod+F10 exec --no-startup-id dmenuumount bindsym $mod+F11 exec --no-startup-id ducksearch bindsym $mod+F12 exec $term -e nmtui -bindsym $mod+Shift+F1 exec --no-startup-id grep LARBSWELCOME ~/.xprofile && ( sed -i "/LARBSWELCOME/d" ~/.xprofile && notify-send "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) || ( echo "notify-send -i "$HOME/.local/share/larbs/larbs.png" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> ~/.xprofile && notify-send "LARBS welcome message" "Welcome message re-enabled." ) +bindsym $mod+Shift+F1 exec --no-startup-id grep LARBSWELCOME ~/.xprofile && ( sed -i "/LARBSWELCOME/d" ~/.xprofile && notify-send "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) || ( echo "notify-send -i \"$HOME/.local/share/larbs/larbs.png\" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> ~/.xprofile && notify-send "LARBS welcome message" "Welcome message re-enabled." ) # #---Arrow Keys---# # bindsym $mod+Left focus left From 51a2408e84b6f88f37808e4d23284882a3958b4b Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 09:58:59 -0400 Subject: [PATCH 52/65] toggle-welcome separate script --- .config/i3/config | 2 +- .local/bin/i3cmds/toggle-welcome | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 .local/bin/i3cmds/toggle-welcome diff --git a/.config/i3/config b/.config/i3/config index 6545d086..45f07501 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -230,7 +230,7 @@ bindsym $mod+F9 exec --no-startup-id dmenumount bindsym $mod+F10 exec --no-startup-id dmenuumount bindsym $mod+F11 exec --no-startup-id ducksearch bindsym $mod+F12 exec $term -e nmtui -bindsym $mod+Shift+F1 exec --no-startup-id grep LARBSWELCOME ~/.xprofile && ( sed -i "/LARBSWELCOME/d" ~/.xprofile && notify-send "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) || ( echo "notify-send -i \"$HOME/.local/share/larbs/larbs.png\" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> ~/.xprofile && notify-send "LARBS welcome message" "Welcome message re-enabled." ) +bindsym $mod+Shift+F1 exec --no-startup-id toggle-welcome # #---Arrow Keys---# # bindsym $mod+Left focus left diff --git a/.local/bin/i3cmds/toggle-welcome b/.local/bin/i3cmds/toggle-welcome new file mode 100755 index 00000000..715db09e --- /dev/null +++ b/.local/bin/i3cmds/toggle-welcome @@ -0,0 +1,10 @@ +#!/bin/sh + +# Toggles the LARBS welcome message. + +PIC="$HOME/.local/share/larbs/larbs.png" + +grep LARBSWELCOME "$HOME/.xprofile" && + ( sed -i "/LARBSWELCOME/d" ~/.xprofile && notify-send -i "$PIC" "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) || + ( echo "notify-send -i \"$PIC\" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> ~/.xprofile && + notify-send -i "$PIC" "LARBS welcome message" "Welcome message re-enabled." ) From 1a03f1431e1a71b1009edead4b6d1379ad990356 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 10:21:07 -0400 Subject: [PATCH 53/65] browser and nmclu switched --- .config/i3/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 45f07501..7ba99762 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -65,8 +65,8 @@ bindsym $mod+Insert exec --no-startup-id showclip bindsym $mod+q [con_id="__focused__" instance="^(?!dropdown_).*$"] kill bindsym $mod+Shift+q [con_id="__focused__" instance="^(?!dropdown_).*$"] exec --no-startup-id kill -9 `xdotool getwindowfocus getwindowpid` -bindsym $mod+w exec $term -e nmtui -bindsym $mod+Shift+w exec --no-startup-id $BROWSER +bindsym $mod+w exec --no-startup-id $BROWSER +bindsym $mod+Shift+w exec $term -e nmtui bindsym $mod+e exec $term -e neomutt && pkill -RTMIN+12 i3blocks bindsym $mod+Shift+e exec --no-startup-id tutorialvids From b4881565d9532fbbd9c3a674cdadda4239b76b69 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 10:30:28 -0400 Subject: [PATCH 54/65] old icons removed --- .profile | 2 -- 1 file changed, 2 deletions(-) diff --git a/.profile b/.profile index 73e54de4..1b5460a0 100644 --- a/.profile +++ b/.profile @@ -44,5 +44,3 @@ export LESS_TERMCAP_ue="$(printf '%b' '')" # Switch escape and caps if tty and no passwd required: sudo -n loadkeys ~/.local/share/larbs/ttymaps.kmap 2>/dev/null - -export LF_ICONS="di=๏“:fi=๏Ž:ln=๏’:or=๏’:ex=๏ง:*.c=๎˜ž:*.cc=๎˜:*.clj=๎จ:*.coffee=๎‘:*.cpp=๎˜:*.css=๎˜”:*.d=๎žฏ:*.dart=๎ž˜:*.erl=๎žฑ:*.exs=๎˜ญ:*.fs=๎žง:*.go=๎˜ง:*.h=๎˜ž:*.hh=๎˜:*.hpp=๎˜:*.hs=๎ท:*.html=๎˜Ž:*.java=๎œธ:*.jl=๎˜ค:*.js=๎Ž:*.json=๎˜‹:*.lua=๎˜ :*.md=๎˜‰:*.php=๎˜ˆ:*.pl=๎ฉ:*.pro=๎žก:*.py=๎œผ:*.rb=๎œน:*.rs=๎žจ:*.scala=๎œท:*.ts=๎˜จ:*.vim=๎˜ซ:*.cmd=๏:*.ps1=๏:*.sh=๏:*.bash=๏:*.zsh=๏:*.fish=๏:*.tar=๏:*.tgz=๏:*.arc=๏:*.arj=๏:*.taz=๏:*.lha=๏:*.lz4=๏:*.lzh=๏:*.lzma=๏:*.tlz=๏:*.txz=๏:*.tzo=๏:*.t7z=๏:*.zip=๏:*.z=๏:*.dz=๏:*.gz=๏:*.lrz=๏:*.lz=๏:*.lzo=๏:*.xz=๏:*.zst=๏:*.tzst=๏:*.bz2=๏:*.bz=๏:*.tbz=๏:*.tbz2=๏:*.tz=๏:*.deb=๏:*.rpm=๏:*.jar=๏:*.war=๏:*.ear=๏:*.sar=๏:*.rar=๏:*.alz=๏:*.ace=๏:*.zoo=๏:*.cpio=๏:*.7z=๏:*.rz=๏:*.cab=๏:*.wim=๏:*.swm=๏:*.dwm=๏:*.esd=๏:*.jpg=๏:*.jpeg=๏:*.mjpg=๏:*.mjpeg=๏:*.gif=๏:*.bmp=๏:*.pbm=๏:*.pgm=๏:*.ppm=๏:*.tga=๏:*.xbm=๏:*.xpm=๏:*.tif=๏:*.tiff=๏:*.png=๏:*.svg=๏:*.svgz=๏:*.mng=๏:*.pcx=๏:*.mov=๏:*.mpg=๏:*.mpeg=๏:*.m2v=๏:*.mkv=๏:*.webm=๏:*.ogm=๏:*.mp4=๏:*.m4v=๏:*.mp4v=๏:*.vob=๏:*.qt=๏:*.nuv=๏:*.wmv=๏:*.asf=๏:*.rm=๏:*.rmvb=๏:*.flc=๏:*.avi=๏:*.fli=๏:*.flv=๏:*.gl=๏:*.dl=๏:*.xcf=๏:*.xwd=๏:*.yuv=๏:*.cgm=๏:*.emf=๏:*.ogv=๏:*.ogx=๏:*.aac=๏:*.au=๏:*.flac=๏:*.m4a=๏:*.mid=๏:*.midi=๏:*.mka=๏:*.mp3=๏:*.mpc=๏:*.ogg=๏:*.ra=๏:*.wav=๏:*.oga=๏:*.opus=๏:*.spx=๏:*.xspf=๏:*.pdf=๏‘" From f6659aac334265a73c48d27a7babdfce1f5f886e Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 22 Mar 2020 13:05:19 -0400 Subject: [PATCH 55/65] quick patch for inconsolata error --- .config/fontconfig/fonts.conf | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 947d7020..cc435d5e 100755 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -5,28 +5,33 @@ serif Linux Libertine - Noto Color Emoji Joy Pixels + Noto Color Emoji sans-serif Linux Biolinum - Noto Color Emoji Joy Pixels + Noto Color Emoji sans Linux Biolinum - Noto Color Emoji Joy Pixels + Noto Color Emoji monospace - Inconsolata + + Liberation Mono + Inconsolata + Joy Pixels + Noto Color Emoji + From c8eae342fe13e0e7956be291c02269de4378681e Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 23 Mar 2020 12:21:25 -0400 Subject: [PATCH 56/65] volume multiline output error fixed --- .local/bin/statusbar/volume | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/volume b/.local/bin/statusbar/volume index c16eded6..fd59a6f9 100755 --- a/.local/bin/statusbar/volume +++ b/.local/bin/statusbar/volume @@ -14,7 +14,7 @@ volstat="$(amixer get Master)" echo "$volstat" | grep "\[off\]" >/dev/null && printf "๐Ÿ”‡\\n" && exit -vol=$(echo "$volstat" | grep -o "\[[0-9]\+%\]" | sed 's/[^0-9]*//g') +vol=$(echo "$volstat" | grep -o "\[[0-9]\+%\]" | sed "s/[^0-9]*//g;1q") if [ "$vol" -gt "70" ]; then icon="๐Ÿ”Š" From e4b3052965d52c97d527f7992a4c0f89e7d3f938 Mon Sep 17 00:00:00 2001 From: Rui Leixo Date: Tue, 24 Mar 2020 12:14:16 +0000 Subject: [PATCH 57/65] Fix weather script, now the table is displayed correctly (#509) --- .local/bin/statusbar/weather | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/weather b/.local/bin/statusbar/weather index dc33cb96..8e2a4573 100755 --- a/.local/bin/statusbar/weather +++ b/.local/bin/statusbar/weather @@ -7,7 +7,7 @@ showweather() { printf "%s" "$(sed '16q;d' "$HOME/.local/share/weatherreport" | sed '13q;d' "$HOME/.local/share/weatherreport" | grep -o "m\\(-+\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " โ„๏ธ",$1 "ยฐ","๐ŸŒž",$2 "ยฐ"}' ;} case $BLOCK_BUTTON in - 1) $TERMINAL -e less -S "$HOME/.local/share/weatherreport" ;; + 1) $TERMINAL -e less -Srf "$HOME/.local/share/weatherreport" ;; 2) getforecast && showweather ;; 3) pgrep -x dunst >/dev/null && notify-send "๐ŸŒˆ Weather module" "\- Left click for full forecast. - Middle click to update forecast. From f79a8a367e36a09d5914363f1728aa002e4c8e52 Mon Sep 17 00:00:00 2001 From: Tommy Priest Date: Tue, 24 Mar 2020 19:53:41 +0000 Subject: [PATCH 58/65] Added variables for default inner and outer gaps. (#510) Default inner and outer gaps can now be changed in one place instead of changing the initialization and the shortcut to reset gaps to default. --- .config/i3/config | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 7ba99762..8aee9537 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -7,9 +7,8 @@ # export TERMINAL="st" # #---Basic Definitions---# # -for_window [class="^.*"] border pixel 2 -gaps inner 15 -gaps outer 15 +set $inner_gaps 15 +set $outer_gaps 15 set $term --no-startup-id $TERMINAL set $mod Mod4 set $stoprec --no-startup-id dmenurecord kill @@ -18,6 +17,11 @@ set $reboot sudo -A reboot set $netrefresh --no-startup-id sudo -A systemctl restart NetworkManager set $hibernate sudo -A systemctl suspend +# #---Gaps---# # +for_window [class="^.*"] border pixel 2 +gaps inner $inner_gaps +gaps outer $outer_gaps + # #---Dropdown Windows---# # # General dropdown window traits. The order can matter. for_window [instance="dropdown_*"] floating enable @@ -75,7 +79,7 @@ bindsym $mod+r exec $term -e lf bindsym $mod+Shift+r exec --no-startup-id winresize bindsym $mod+t split toggle -bindsym $mod+Shift+t gaps inner current set 15; gaps outer current set 15 +bindsym $mod+Shift+t gaps inner current set $inner_gaps; gaps outer current set $outer_gaps bindsym $mod+y exec $term -e calcurse -D ~/.config/calcurse bindsym $mod+Shift+y exec --no-startup-id i3resize left From c14cc2d1f0f67261012eeb134d262ac68ee17d7a Mon Sep 17 00:00:00 2001 From: NilsKrause Date: Tue, 24 Mar 2020 23:04:17 +0100 Subject: [PATCH 59/65] tramsmission-remote-cli uncontinued, using python3 fork tremc (#513) --- .local/bin/torwrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/torwrap b/.local/bin/torwrap index 881d8cc5..0fbb3a80 100755 --- a/.local/bin/torwrap +++ b/.local/bin/torwrap @@ -1,7 +1,7 @@ #!/bin/sh -ifinstalled transmission-remote-cli transmission-cli || exit +ifinstalled tremc transmission-cli || exit ! pgrep -x transmission-da >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:?}" -$TERMINAL -e transmission-remote-cli +$TERMINAL -e tremc From 64fce405261fa685c5da5a1bcc2fb815b95d0d31 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 24 Mar 2020 18:28:47 -0400 Subject: [PATCH 60/65] opout case fix --- .local/bin/opout | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.local/bin/opout b/.local/bin/opout index f81daa21..c86ae68c 100755 --- a/.local/bin/opout +++ b/.local/bin/opout @@ -7,8 +7,7 @@ basename="$(echo "$1" | sed 's/\.[^\/.]*$//')" case "$1" in - *.tex|*.md|*.[rR]md|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; - *.[0-9]) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; - *.html) setsid $BROWSER "$basename".html >/dev/null 2>&1 & ;; + *.tex|*.md|*.[rR]md|*.ms|*.me|*.mom|*.[0-9]) setsid xdg-open "$basename".pdf >/dev/null 2>&1 & ;; + *.html) setsid "$BROWSER" "$basename".html >/dev/null 2>&1 & ;; *.sent) setsid sent "$1" >/dev/null 2>&1 & ;; esac From 77cd1bcd441731deb8b31925b30cb0faf56926f5 Mon Sep 17 00:00:00 2001 From: Bryan Jenks Date: Wed, 25 Mar 2020 06:53:23 -0700 Subject: [PATCH 61/65] regex for less character bloat (#514) --- .local/bin/opout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/opout b/.local/bin/opout index c86ae68c..28af763a 100755 --- a/.local/bin/opout +++ b/.local/bin/opout @@ -7,7 +7,7 @@ basename="$(echo "$1" | sed 's/\.[^\/.]*$//')" case "$1" in - *.tex|*.md|*.[rR]md|*.ms|*.me|*.mom|*.[0-9]) setsid xdg-open "$basename".pdf >/dev/null 2>&1 & ;; + *.tex|*.m[dse]|*.[rR]md|*.mom|*.[0-9]) setsid xdg-open "$basename".pdf >/dev/null 2>&1 & ;; *.html) setsid "$BROWSER" "$basename".html >/dev/null 2>&1 & ;; *.sent) setsid sent "$1" >/dev/null 2>&1 & ;; esac From ee2f8e93021dc70642eb258f7d28744526141f54 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 25 Mar 2020 17:35:30 -0400 Subject: [PATCH 62/65] weather every run error fix --- .local/bin/statusbar/weather | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/weather b/.local/bin/statusbar/weather index 8e2a4573..285ac917 100755 --- a/.local/bin/statusbar/weather +++ b/.local/bin/statusbar/weather @@ -16,7 +16,7 @@ case $BLOCK_BUTTON in ๐ŸŒž: Daily high" ;; esac -if [ "$(stat -c %y "$HOME/.local/share/weatherreport" >/dev/null 2>&1 | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ] +if [ "$(stat -c %y "$HOME/.local/share/weatherreport" 2>/dev/null | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ] then getforecast && showweather else showweather fi From 2754f6406580c555ac93e5e2ffc76bffcc67cc9b Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 26 Mar 2020 11:37:07 -0400 Subject: [PATCH 63/65] setbg dir fix --- .local/bin/setbg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/setbg b/.local/bin/setbg index e7775cad..dacd4663 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -10,7 +10,7 @@ [ -f "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." -[ -d "$1" ] && mv "$(find "$1"/*.{jpg,jpeg,png} -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen." +[ -d "$1" ] && mv "$(find "$1" -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen." # If pywal is installed, use it. type wal >/dev/null 2>&1 && { wal -c From 238621787f4b6351731855b3016498da76d77c5f Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 27 Mar 2020 09:53:41 -0400 Subject: [PATCH 64/65] should prob use cp --- .local/bin/setbg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/setbg b/.local/bin/setbg index dacd4663..be4adfd4 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -10,7 +10,7 @@ [ -f "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed." -[ -d "$1" ] && mv "$(find "$1" -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen." +[ -d "$1" ] && cp "$(find "$1" -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen." # If pywal is installed, use it. type wal >/dev/null 2>&1 && { wal -c From 39bde791426deefa31860d106a8b280e0292d287 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 27 Mar 2020 09:56:04 -0400 Subject: [PATCH 65/65] battery script streamlined and commented --- .local/bin/statusbar/battery | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery index e8b05543..c05a3519 100755 --- a/.local/bin/statusbar/battery +++ b/.local/bin/statusbar/battery @@ -1,5 +1,7 @@ #!/bin/sh -# Give a battery name (Check the battery name from sys/class/power_supply/ e.g. BAT0 or BAT1 and pass it as an argument. + +# Prints all batteries, their percentage remaining and an emoji corresponding +# to charge status (๐Ÿ”Œ for pluged up, ๐Ÿ”‹ for discharging on battery, etc.). case $BLOCK_BUTTON in 3) pgrep -x dunst >/dev/null && notify-send "๐Ÿ”‹ Battery module" "๐Ÿ”‹: discharging @@ -7,30 +9,22 @@ case $BLOCK_BUTTON in โ™ป: stagnant charge ๐Ÿ”Œ: charging โšก: charged -โ—: battery very low! -- Text color reflects charge left" ;; +โ—: battery very low!" ;; esac +# Loop through all attached batteries. for battery in /sys/class/power_supply/BAT? do -capacity=$(cat "$battery"/capacity) || exit -status=$(cat "$battery"/status) + # Get its remaining capacity and charge status. + capacity=$(cat "$battery"/capacity) || exit + status=$(cat "$battery"/status) -if [ "$capacity" -ge 75 ]; then - color="#00ff00" -elif [ "$capacity" -ge 50 ]; then - color="#ffffff" -elif [ "$capacity" -ge 25 ]; then - color="#ffff00" -else - color="#ff0000" - warn="โ—" -fi + # If it is discharging and 20% or less, we will add a โ— as a warning. + [ "$status" = "Discharging" ] && echo "$capacity" | grep -q "^[12][0-9]$" && warn="โ—" -[ -z $warn ] && warn=" " - -[ "$status" = "Charging" ] && color="#ffffff" - -printf "%s%s%s\n" "$(echo "$status" | sed "s/,//;s/Discharging/๐Ÿ”‹/;s/Not charging/๐Ÿ›‘/;s/Charging/๐Ÿ”Œ/;s/Unknown/โ™ป๏ธ/;s/Full/โšก/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')" + # Print the battery status (replaced by a cooresponding emoji with + # sed), the percentage left and the warning if there is one. + printf "%s%s%s\n" "$(echo "$status" | sed "s/,//;s/Discharging/๐Ÿ”‹/;s/Not charging/๐Ÿ›‘/;s/Charging/๐Ÿ”Œ/;s/Unknown/โ™ป๏ธ/;s/Full/โšก/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')" + unset warn done