feat(suckless): bump to latest
This commit is contained in:
parent
f8ee677aa1
commit
d0a9506b18
@ -11,7 +11,7 @@
|
||||
<C-q> = :prompt 'Quit?' quit<Enter>
|
||||
|
||||
[messages]
|
||||
q = quit<Enter>
|
||||
q = :quit<Enter>
|
||||
|
||||
j = :next<Enter>
|
||||
<Down> = :next<Enter>
|
||||
|
1
.config/lf/lfrc
Normal file
1
.config/lf/lfrc
Normal file
@ -0,0 +1 @@
|
||||
map D delete
|
@ -1,6 +1,7 @@
|
||||
local lspconfig = require"lspconfig"
|
||||
|
||||
local servers = {
|
||||
"bashls",
|
||||
"pyright",
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 7472420f8734c710bd7009081cef9b97f08a3821
|
||||
Subproject commit e9e01d699843af530ef4ad2c8679a7e273bb3dd1
|
@ -1 +1 @@
|
||||
Subproject commit 8d3176cfbc0e3c5b8eadf4dfc20681878529c3af
|
||||
Subproject commit bb3dd60ebcf6f75f73f39c44724b4a426ece6b7b
|
@ -1,5 +1,5 @@
|
||||
# dmenu version
|
||||
VERSION = 5.2
|
||||
VERSION = 5.3
|
||||
|
||||
# paths
|
||||
PREFIX = /usr/local
|
@ -55,7 +55,7 @@ static const Layout layouts[] = {
|
||||
|
||||
/* commands */
|
||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
||||
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
|
||||
static const char *dmenucmd[] = { "dmenu_run", "-i", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
|
||||
static const char *termcmd[] = { "alacritty", NULL };
|
||||
static const char *lockcmd[] = { "lock", NULL };
|
||||
static const char *wwwcmd[] = { "firefox", NULL };
|
@ -1,5 +1,5 @@
|
||||
# dwm version
|
||||
VERSION = 6.4
|
||||
VERSION = 6.5
|
||||
|
||||
# Customize below to fit your system
|
||||
|
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 373 B |
@ -1 +1 @@
|
||||
Subproject commit d39e4268355f7a10f7758982db2a59e485d2659a
|
||||
Subproject commit 6836bfe2da51bf32472b67df062347cfc4b1952e
|
47
.config/zsh/prompt.zsh
Normal file
47
.config/zsh/prompt.zsh
Normal file
@ -0,0 +1,47 @@
|
||||
# LEFT
|
||||
# dir vcs command_execution_time status
|
||||
# RIGHT
|
||||
# background_jobs virtualenv kubecontext
|
||||
|
||||
autoload -Uz vcs_info
|
||||
|
||||
zstyle ':vcs_info:*' enable git
|
||||
zstyle ':vcs_info:*' check-for-changes true
|
||||
zstyle ':vcs_info:git*' formats '%b (%a) %m%u%c'
|
||||
|
||||
function preexec() {
|
||||
_timer_start="$SECONDS"
|
||||
}
|
||||
|
||||
function _get_time() {
|
||||
local d="$((SECONDS - _timer_start))"
|
||||
local text
|
||||
|
||||
text="$((d % 60))s"
|
||||
if [ "$d" -gt 60 ]; then
|
||||
text="$((d % 60))m$text"
|
||||
(( d /= 60 ))
|
||||
fi
|
||||
if [ "$d" -gt 60 ]; then
|
||||
text="${d}h$text"
|
||||
fi
|
||||
echo "$text"
|
||||
}
|
||||
|
||||
function precmd() {
|
||||
local err
|
||||
|
||||
IFS='|' err="${pipestatus[*]}"
|
||||
timer="$((SECONDS - _timer_start))"
|
||||
|
||||
vcs_info
|
||||
|
||||
PROMPT='%~ '
|
||||
[ -n "$vcs_info_msg_0_" ] && PROMPT="$PROMPT$vcs_info_msg_0_ "
|
||||
[ "$timer" -ge 2 ] && PROMPT="$PROMPT$(_get_time) "
|
||||
[ "$err" != 0 ] && PROMPT="$PROMPT$err "
|
||||
|
||||
RPROMPT='%(1j.%j.)'
|
||||
false && RPROMPT="$RPROMPT virtualenv"
|
||||
false && RPROMPT="$RPROMPT kubecontext"
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
#unified-extensions-button, #unified-extensions-button > .toolbarbutton-icon{
|
||||
width: 0px !important;
|
||||
padding: 0px !important;
|
||||
}
|
40
.var/app/org.mozilla.firefox/.mozilla/firefox/ange/user.js
Normal file
40
.var/app/org.mozilla.firefox/.mozilla/firefox/ange/user.js
Normal file
@ -0,0 +1,40 @@
|
||||
user_pref("app.shield.optoutstudies.enabled", false);
|
||||
user_pref("browser.aboutConfig.showWarning", false);
|
||||
user_pref("browser.contentblocking.category", "strict");
|
||||
user_pref("browser.download.useDownloadDir", false);
|
||||
user_pref("browser.formfill.enable", false);
|
||||
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
|
||||
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false);
|
||||
user_pref("browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.searchEngines", "");
|
||||
user_pref("browser.newtabpage.enabled", false);
|
||||
user_pref("browser.preferences.moreFromMozilla", false);
|
||||
user_pref("browser.privatebrowsing.vpnpromourl", "");
|
||||
user_pref("browser.startup.homepage", "chrome://browser/content/blanktab.html");
|
||||
user_pref("browser.tabs.tabmanager.enabled", false);
|
||||
user_pref("browser.topsites.contile.cachedTiles", "");
|
||||
user_pref("browser.urlbar.update2.engineAliasRefresh", true);
|
||||
user_pref("datareporting.healthreport.uploadEnabled", false);
|
||||
user_pref("datareporting.policy.dataSubmissionEnabled", false);
|
||||
user_pref("dom.security.https_only_mode", true);
|
||||
user_pref("extensions.formautofill.addresses.enabled", false);
|
||||
user_pref("extensions.formautofill.creditCards.enabled", false);
|
||||
user_pref("extensions.pocket.enabled", false);
|
||||
user_pref("findbar.highlightAll", true);
|
||||
user_pref("identity.fxaccounts.enabled", false);
|
||||
user_pref("media.videocontrols.picture-in-picture.video-toggle.enabled", false);
|
||||
user_pref("network.proxy.socks_remote_dns", true);
|
||||
user_pref("signon.rememberSignons", false);
|
||||
user_pref("startup.homepage_override_url", "");
|
||||
user_pref("startup.homepage_welcome_url", "");
|
||||
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
|
||||
user_pref("toolkit.telemetry.archive.enabled", false);
|
||||
user_pref("toolkit.telemetry.pioneer-new-studies-available", false);
|
||||
|
||||
// user preferences
|
||||
user_pref("browser.startup.page", 3);
|
||||
user_pref("browser.tabs.inTitlebar", 0);
|
||||
user_pref("browser.toolbars.bookmarks.visibility", "newtab");
|
||||
user_pref("browser.translations.enable", false);
|
||||
user_pref("browser.uiCustomization.state", "{\"placements\":{\"widget-overflow-fixed-list\":[],\"unified-extensions-area\":[],\"nav-bar\":[\"back-button\",\"forward-button\",\"stop-reload-button\",\"urlbar-container\",\"downloads-button\",\"fxa-toolbar-menu-button\",\"unified-extensions-button\",\"ublock0_raymondhill_net-browser-action\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[\"tabbrowser-tabs\",\"alltabs-button\"],\"PersonalToolbar\":[\"personal-bookmarks\"]},\"currentVersion\":20,\"newElementCount\":3}");
|
||||
user_pref("browser.zoom.siteSpecific", false);
|
||||
user_pref("media.autoplay.default", 5);
|
11
.var/app/org.mozilla.firefox/.mozilla/firefox/profiles.ini
Normal file
11
.var/app/org.mozilla.firefox/.mozilla/firefox/profiles.ini
Normal file
@ -0,0 +1,11 @@
|
||||
[General]
|
||||
Version=2
|
||||
|
||||
[InstallCF146F38BCAB2D21]
|
||||
Default=ange
|
||||
Locked=1
|
||||
|
||||
[Profile0]
|
||||
Name=ange
|
||||
IsRelative=1
|
||||
Path=ange
|
2
.xinitrc
2
.xinitrc
@ -4,7 +4,7 @@ dbus-update-activation-environment --systemd DISPLAY XAUTHORITY
|
||||
|
||||
# startup
|
||||
autorandr -c &
|
||||
xss-lock -n feh --fullscreen "$XDG_CONFIG_HOME/wallpapers/lock.png" -- lock &
|
||||
xss-lock -n "feh --fullscreen '$XDG_CONFIG_HOME/wallpapers/lock.png'" -- lock &
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 || # arch
|
||||
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 || # debian
|
||||
/usr/libexec/polkit-gnome-authentication-agent-1 & # fedora
|
||||
|
@ -6,6 +6,7 @@ import json
|
||||
# curl -sS https://api.coingecko.com/api/v3/coins/list
|
||||
COINS = [
|
||||
# [id, symbol]
|
||||
["monero", "XMR"],
|
||||
["bitcoin", "BTC"],
|
||||
["ordinals", "ORDI"],
|
||||
]
|
||||
|
61
bin/sbar
61
bin/sbar
@ -1,8 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# MODULES
|
||||
function update_crypto() {
|
||||
local c; c="$(crypto)" && crypto="$c"
|
||||
local c
|
||||
|
||||
c="$(crypto 2> /dev/null)" && crypto="$c"
|
||||
}
|
||||
|
||||
function update_cpu() {
|
||||
@ -10,13 +11,14 @@ function update_cpu() {
|
||||
}
|
||||
|
||||
function update_memory() {
|
||||
memory=" $(free -h | awk '$1 == "Mem:" {print $3}')"
|
||||
memory=" $(free -h | awk '/^Mem:/ {print $3}')"
|
||||
}
|
||||
|
||||
function update_bat() {
|
||||
local dir; dir="$(find /sys/class/power_supply/ -mindepth 1 -name 'BAT*' -print -quit)"
|
||||
local cap; cap="$(cat "$dir/capacity")"
|
||||
local dir cap
|
||||
|
||||
dir='/sys/class/power_supply/BAT0'
|
||||
cap="$(cat "$dir/capacity")"
|
||||
{ grep -qv Discharging "$dir/status" && bat=" $cap%"; } ||
|
||||
{ [ "$cap" -gt 80 ] && bat=" $cap%"; } ||
|
||||
{ [ "$cap" -gt 60 ] && bat=" $cap%"; } ||
|
||||
@ -26,39 +28,39 @@ function update_bat() {
|
||||
}
|
||||
|
||||
function update_sink_vol() {
|
||||
local sink; sink="$(wpctl get-volume '@DEFAULT_AUDIO_SINK@')"
|
||||
local vol;
|
||||
local sink vol
|
||||
|
||||
if grep -q 'MUTED' <<< "$sink"; then
|
||||
sink="$(wpctl get-volume '@DEFAULT_AUDIO_SINK@')"
|
||||
if grep -q MUTED <<< "$sink"; then
|
||||
sink_vol='🔇'
|
||||
else
|
||||
vol="$(awk '{print int($2 * 100)}' <<< "$sink")"
|
||||
{ [ "$vol" -gt 67 ] && sink_vol=" $vol"; } ||
|
||||
{ [ "$vol" -gt 33 ] && sink_vol=" $vol"; } ||
|
||||
{ sink_vol=" $vol"; }
|
||||
return
|
||||
fi
|
||||
vol="$(awk '{print int($2 * 100)}' <<< "$sink")"
|
||||
{ [ "$vol" -gt 67 ] && sink_vol=" $vol"; } ||
|
||||
{ [ "$vol" -gt 33 ] && sink_vol=" $vol"; } ||
|
||||
{ sink_vol=" $vol"; }
|
||||
}
|
||||
|
||||
function update_source_vol() {
|
||||
local source; source="$(wpctl get-volume '@DEFAULT_AUDIO_SOURCE@')"
|
||||
local vol;
|
||||
local source vol
|
||||
|
||||
if grep -q 'MUTED' <<< "$source"; then
|
||||
source_vol=""
|
||||
else
|
||||
vol="$(awk '{print int($2 * 100)}' <<< "$sink")"
|
||||
source_vol=" $(awk '{print int($2 * 100)}' <<< "$source")"
|
||||
source="$(wpctl get-volume '@DEFAULT_AUDIO_SOURCE@')"
|
||||
if grep -q MUTED <<< "$source"; then
|
||||
source_vol=''
|
||||
return
|
||||
fi
|
||||
source_vol=" $(awk '{print int($2 * 100)}' <<< "$source")"
|
||||
}
|
||||
|
||||
function update_wlp() {
|
||||
local sig; sig="$(awk '$1 ~ "wlp" {print int($3)}' /proc/net/wireless)"
|
||||
local ssid; ssid="$(nmcli device wifi show-password | sed -n 's/SSID:\s*//p')"
|
||||
local sig ssid
|
||||
|
||||
[ -z "$ssid" ] && wlp='⚠' && return
|
||||
[ -z "$sig" ] && sig=0
|
||||
|
||||
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/d9b06a95/src/libnmc-base/nm-client-utils.c#L628
|
||||
sig="$(awk '/^wlp/ {print int($3)}' /proc/net/wireless)"
|
||||
if [ -z "$sig" ]; then
|
||||
wlp='⚠'
|
||||
return
|
||||
fi
|
||||
ssid="$(nmcli device wifi show-password | sed -n 's/^SSID:\s*//p')"
|
||||
{ [ "$sig" -gt 56 ] && wlp="▂▄▆█ $ssid"; } ||
|
||||
{ [ "$sig" -gt 38 ] && wlp="▂▄▆_ $ssid"; } ||
|
||||
{ [ "$sig" -gt 21 ] && wlp="▂▄__ $ssid"; } ||
|
||||
@ -67,7 +69,7 @@ function update_wlp() {
|
||||
}
|
||||
|
||||
function update_time() {
|
||||
time="$(date "+%a %m/%d %R")"
|
||||
time="$(date "+%a %m-%d %R")"
|
||||
}
|
||||
|
||||
function display() {
|
||||
@ -81,8 +83,8 @@ else
|
||||
fi
|
||||
|
||||
# SIGNALING
|
||||
# trap '<function>;display' 'RTMIN+n'
|
||||
trap 'update_sink_vol;display' 'RTMIN'
|
||||
# trap '<function>;display' 'RTMIN+n'
|
||||
trap 'update_sink_vol;display' 'RTMIN'
|
||||
# to update it from external commands
|
||||
## kill -m "$(cat ~/.cache/pidofbar)"
|
||||
# where m = 34 + n
|
||||
@ -102,7 +104,6 @@ while true; do
|
||||
update_time
|
||||
display
|
||||
}
|
||||
|
||||
sleep "$(awk "BEGIN {s=$(date '+%S.%N'); print 10 - s % 10}")" & wait
|
||||
sec="$((sec + 10))"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user