diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/qutebrowser/bookmarks/urls | 8 | ||||
-rw-r--r-- | .config/qutebrowser/config.py | 68 | ||||
-rw-r--r-- | .config/qutebrowser/greasemonkey/youtube-to-invidious.js | 2 | ||||
-rw-r--r-- | .config/qutebrowser/quickmarks | 5 | ||||
-rw-r--r-- | .config/qutebrowser/userscripts/youtube-to-invidious.js | 11 | ||||
-rw-r--r-- | .config/ranger/bookmarks | 5 | ||||
-rw-r--r-- | .config/ranger/tagged | 2 | ||||
-rw-r--r-- | .config/sway/config | 36 | ||||
-rw-r--r-- | .config/waybar/config | 22 | ||||
-rwxr-xr-x | .config/waybar/modules/storagehome.sh | 24 | ||||
-rwxr-xr-x | .config/waybar/modules/storagestorage.sh | 24 |
11 files changed, 135 insertions, 72 deletions
diff --git a/.config/qutebrowser/bookmarks/urls b/.config/qutebrowser/bookmarks/urls index 4146274..ed1ac30 100644 --- a/.config/qutebrowser/bookmarks/urls +++ b/.config/qutebrowser/bookmarks/urls @@ -134,3 +134,11 @@ https://www.tradingview.com/chart/1a1NjVtp/ AVIR 32.16 ▲ +1.87% Unnamed https://wandererfinancial.com/trade-talk/ Trade Talk - Wanderer Financial https://wandererfinancial.com/9-29-21-todays-market/ 9/29/21 Today's Market - Wanderer Financial https://www.summitpost.org/ Climbing, Hiking, Mountaineering : SummitPost +https://manage.buyvm.net/login Stallion +https://client.schwab.com/Areas/Trade/Stocks/Entry.aspx? Charles Schwab Client Center +https://www.aza.org/find-a-zoo-or-aquarium Find a Zoo or Aquarium Near Me | AZA +https://darksitefinder.com/maps/world.html#4/57.42/224.65 Light Pollution Map - DarkSiteFinder.com +http://192.168.0.1/index.html#/index 4G LTE Mobile Hotspot +https://live.luxagraf.net/admin/locations/location/add/ Add location | Django site admin +https://client.schwab.com/Areas/Trade/Allinone/Index.aspx# All in One Trade | Charles Schwab +https://wandererfinancial.com/4-4-22-todays-market/ 4/4/22 Today's Market - Wanderer Financial diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 51f4a0b..27be7d2 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -21,14 +21,15 @@ c.tabs.background = True c.tabs.position = "top" c.content.autoplay = False -c.editor.command = ['alacritty', 'nvim', '{}'] +c.editor.command = ['foot', 'nvim', '{}'] c.url.default_page = "about:blank" # searches -c.url.searchengines['DEFAULT'] = 'https://www.startpage.com/rvd/search?query={}&language=auto' +#c.url.searchengines['DEFAULT'] = 'https://www.startpage.com/rvd/search?query={}&language=auto' # tor #c.url.searchengines['DEFAULT'] = 'https://3g2upl4pq6kufc4m.onion/?q={}' -c.url.searchengines['s'] = 'https://duckduckgo.com/?q={}' +c.url.searchengines['DEFAULT'] = 'https://html.duckduckgo.com/html?q={}' +c.url.searchengines['DEFAULT'] = 'https://duckduckgo.com/?q={}' c.url.searchengines['g'] = 'http://www.google.com/search?hl=en&source=hp&ie=ISO-8859-l&q={}' c.url.searchengines['a'] = 'https://wiki.archlinux.org/?search={}' c.url.searchengines['y'] = 'https://www.youtube.com/results?search_query={}' @@ -42,30 +43,12 @@ c.url.searchengines['w'] = 'https://www.google.com/search?q={}+site%3Awired.com' c.content.javascript.enabled = False # JS is okay for some sites: -js_whitelist = [ -"*://localhost/*", -"*://127.0.0.1/*", -"https://live.luxagraf.net/*", -"https://cloud.luxagraf.net/*", -"https://luxagraf.net/*", -"*://github.com/*", -"*://gitlab.com/*", -"*://*.youtube.com/*", -"*://*.tastyworks.com/*", -"*://wandererfinancial.com/*", -"*://*.tradingview.com/*", -"*://translate.google.com/*", -"*://*.schoolsfirstfcu.com/*", -"*://www.ssec.wisc.edu/*", -"*://bumfuzzle.com/*", -"*://pmags.com/*", -"*://*.tastyworks.com/*", -"https://discuss.pixls.us/*", -"https://www.startpage.com/*", -"https://*.schwab.com/*", -"https://*.hyvor.com/*", -"https://ecosophia.dreamwidth.org/*", -] +private_whitelist = os.path.expanduser("~/.config/qutebrowser/whitelists/js") +if os.path.exists(private_whitelist): + with open(private_whitelist) as f: + js_whitelist = filter(lambda l: bool(l), f.read().split("\n")) + + for site in js_whitelist: with config.pattern(site) as p: p.content.javascript.enabled = True @@ -107,6 +90,7 @@ config.unbind('<Ctrl+h>') # Userscripts # call readability on page config.bind (',r', 'spawn --userscript myread.py', mode='normal') +config.bind (',c', 'spawn --userscript camel.py', mode='normal') #download current or hinted video config.bind(',y', 'spawn --userscript youtube-dl') @@ -120,32 +104,32 @@ config.bind(',yv', 'spawn --detach mpv --force-window yes {url}') config.bind (',f', 'open {primary}') config.bind (',F', 'open --tab {primary}') -config.bind (',e', 'open-editor') +config.bind (',e', 'edit-text') # clear cookies config.bind('co', 'spawn bisc', mode='normal') #config.set("colors.webpage.darkmode.enabled", True) # save bookmark to luxagraf -config.bind(',s', "jseval --quiet if(document.getSelection){s=document.getSelection();}else{s='';};document.location='https://live.luxagraf.net/admin/links/link/add?&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(document.title);") +config.bind(',s', "jseval if(document.getSelection){s=document.getSelection();}else{s='';};document.location='https://live.luxagraf.net/admin/links/link/add/?url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(document.title);") import sys, os #sys.path.append(os.path.join(sys.path[0], "jblock")) #config.source("jblock/jblock/integrations/qutebrowser.py") -config.set( - "content.blocking.hosts.lists", - [ - "https://easylist.to/easylist/fanboy-annoyance.txt", - "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt", - "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt", - "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt", - "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt", - "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt", - "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt", - "https://www.malwaredomainlist.com/hostslist/hosts.txt", - ], -) +#config.set( +# "content.blocking.hosts.lists", +# [ +# "https://easylist.to/easylist/fanboy-annoyance.txt", +# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt", +# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt", +# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt", +# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt", +# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt", +# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt", +# "https://www.malwaredomainlist.com/hostslist/hosts.txt", +# ], +#) #config.set( # "content.blocking.whitelist'", diff --git a/.config/qutebrowser/greasemonkey/youtube-to-invidious.js b/.config/qutebrowser/greasemonkey/youtube-to-invidious.js index b51c506..b61f20c 100644 --- a/.config/qutebrowser/greasemonkey/youtube-to-invidious.js +++ b/.config/qutebrowser/greasemonkey/youtube-to-invidious.js @@ -8,4 +8,4 @@ // @run-at document-start // ==/UserScript== -location.href=location.href.replace("www.youtube.com","invidious.fdn.fr"); +location.href=location.href.replace("www.youtube.com","invidio.xamh.de"); diff --git a/.config/qutebrowser/quickmarks b/.config/qutebrowser/quickmarks index 4b83a6f..d9fb33d 100644 --- a/.config/qutebrowser/quickmarks +++ b/.config/qutebrowser/quickmarks @@ -1,9 +1,12 @@ ad https://live.luxagraf.net/admin/ tr https://live.luxagraf.net/trading/ base https://wandererfinancial.com/basecamp/ +pic https://live.luxagraf.net/admin/media/luximage/add/ li https://live.luxagraf.net/ lx https://luxagraf.net/ -dev http://10.87.144.224:8000/ +dev http://10.157.15.149:8000/ +devlbh http://10.157.15.227:8000/ +devccg http://10.157.15.137:8000/ stats https://awstats.luxagraf.net/cgi-bin/awstats.pl?config=luxagraf.net wind https://earth.nullschool.net/ weather http://www.ssec.wisc.edu/data/us_comp/large diff --git a/.config/qutebrowser/userscripts/youtube-to-invidious.js b/.config/qutebrowser/userscripts/youtube-to-invidious.js deleted file mode 100644 index b51c506..0000000 --- a/.config/qutebrowser/userscripts/youtube-to-invidious.js +++ /dev/null @@ -1,11 +0,0 @@ -// ==UserScript== -// @name YouTube to Invidious redirector -// @namespace lxf userscripts -// @match http://youtube.com/* -// @match https://youtube.com/* -// @match http://www.youtube.com/* -// @match https://www.youtube.com/* -// @run-at document-start -// ==/UserScript== - -location.href=location.href.replace("www.youtube.com","invidious.fdn.fr"); diff --git a/.config/ranger/bookmarks b/.config/ranger/bookmarks index bfef72a..da6778f 100644 --- a/.config/ranger/bookmarks +++ b/.config/ranger/bookmarks @@ -9,5 +9,6 @@ s:/home/lxf/sites/luxagraf.net c:/home/lxf/pictures/nextcloud-ccg-phone t:/home/lxf/temp p:/home/lxf/temp/wired -k:/home/lxf/videos/downloads -':/home/lxf/videos/downloads/darktable +k:/home/lxf/pictures/exported +':/home/lxf +m:/home/lxf diff --git a/.config/ranger/tagged b/.config/ranger/tagged index 29f2d21..42ac542 100644 --- a/.config/ranger/tagged +++ b/.config/ranger/tagged @@ -18,3 +18,5 @@ r:/home/lxf/sites/corrinne-site/app/clients_ /home/lxf/pictures/screenshots/scrn-2020-12-23-15-51-06.png /home/lxf/pictures/screenshots/scrn-2020-12-23-15-52-05.png /home/lxf/pictures/screenshots/scrn-2020-12-24-22-48-59.png +/home/lxf/lux/essays +/home/lxf/sites/luxagraf.net/luxagraf.net/media/js/leaflet-1.7.1 diff --git a/.config/sway/config b/.config/sway/config index 8c57f55..9916797 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -1,6 +1,6 @@ set $mod Mod1 set $mod2 Mod4 -set $term alacritty +set $term foot #alacritty set $background ~/pictures/desktops/mountains_night_sky_dark.jpg set $screenshot grim ~/pictures/screenshots/scrn-$(date +"%Y-%m-%d-%H-%M-%S").png set $screenclip slurp | grim -g - ~/pictures/screenshots/scrn-$(date +"%Y-%m-%d-%H-%M-%S").png @@ -29,7 +29,9 @@ bindsym $mod+F12 exec $screenclip output * bg $background fill input type:touchpad { + click_method clickfinger natural_scroll enabled + middle_emulation disabled } # change focus bindsym $mod2+j focus left @@ -121,6 +123,7 @@ for_window [app_id="thunar"] floating enable for_window [app_id="soffice"] floating enable for_window [class="^lxf$"] floating enable for_window [app_id="system-config-printer"] floating enable +for_window [app_id="epiphany"] border none for_window [app_id="darktable"] border none for_window [class="Darktable"] border none @@ -128,12 +131,12 @@ for_window [app_id="python3"] border none, floating enable for_window [class="^URxvt"] border none for_window [app_id="firefoxdeveloperedition"] border none for_window [class="firefoxdeveloperedition"] border none -for_window [app_id="Vivaldi-snapshot"] border none -for_window [app_id="Vivaldi-stable"] border none -for_window [class="Vivaldi"] border none +for_window [app_id="vivaldi-snapshot"] border none +for_window [app_id="vivaldi-stable"] border none for_window [class="^qutebrowser"] border none for_window [app_id="org.qutebrowser.qutebrowser"] border none for_window [app_id="^Alacritty"] border none +for_window [app_id="^foot"] border none for_window [class="Slack"] border none for_window [class="Pavucontrol"] floating enable for_window [window_role="pop-up"] floating enable @@ -144,6 +147,8 @@ for_window [app_id="mpv"] floating enable for_window [class="hangouts.google.com"] floating disable for_window [class="hangouts.google.com"] border normal for_window [app_id="gedit"] floating enable +for_window [app_id="org.kde.kdenlive"] border none + assign [class="qutebrowser"] $ws2 assign [app_id="org.qutebrowser.qutebrowser"] $ws2 @@ -208,31 +213,38 @@ input "1:1:AT_Translated_Set_2_keyboard" { repeat_rate 25 } exec vivaldi-stable --ozone-platform=wayland --enable-features=UseOzonePlatform & -exec alacritty & -exec nextcloud & +exec foot & +exec mako & exec mpd & # clipboard manager exec wl-paste -t text --watch clipman store --max-items=200 --histpath="~/.local/share/clipman-primary.json" -bindsym $mod+c exec alacritty --class 'smsearch' --command bash -c 'fzclip | xargs -r swaymsg -t command exec' +#bindsym $mod+c exec alacritty --class 'smsearch' --command bash -c 'fzclip | xargs -r swaymsg -t command exec' +bindsym $mod+c exec foot --app-id=smsearch bash -c 'fzclip | xargs -r swaymsg -t command exec' # app launcher -bindsym $mod+Space exec alacritty --class 'launcher' --command bash -c 'compgen -c | sort -u | fzf | xargs -r swaymsg -t command exec' +#bindsym $mod+Space exec alacritty --class 'launcher' --command bash -c 'compgen -c | sort -u | fzf | xargs -r swaymsg -t command exec' +bindsym $mod+Space exec foot --app-id=launcher bash -c "compgen -c | sort -u | fzf --bind 'tab:up' | xargs -r swaymsg -t command exec" # pass chooser -bindsym $mod+p exec alacritty --class 'launcher' --command bash -c 'pass clip --fzf | xargs -r swaymsg -t command exec' +#bindsym $mod+p exec alacritty --class 'launcher' --command bash -c 'pass clip --fzf | xargs -r swaymsg -t command exec' +bindsym $mod+p exec foot --app-id=launcher bash -c 'pass clip --fzf | xargs -r swaymsg -t command exec' for_window [app_id="^launcher$"] floating enable, border none, resize set width 25 ppt height 20 ppt, move position 0 px 0 px #snippet manager -bindsym $mod+s exec alacritty --class 'smsearch' --command bash -c 'fzsnip | xargs -r swaymsg -t command exec' +#bindsym $mod+s exec alacritty --class 'smsearch' --command bash -c 'fzsnip | xargs -r swaymsg -t command exec' +bindsym $mod+s exec foot --app-id=smsearch bash -c 'fzsnip | xargs -r swaymsg -t command exec' -bindsym $mod+b exec alacritty --class 'smsearch' --command bash -c 'url=$(cat .config/qutebrowser/bookmarks/urls | fzf | cut -d \" \" -f 1) && qutebrowser "$url" | xargs -r swaymsg -t command exec' +#bookmarks search +#bindsym $mod+b exec alacritty --class 'smsearch' --command bash -c 'url=$(cat .config/qutebrowser/bookmarks/urls | fzf | cut -d \" \" -f 1) && qutebrowser "$url" | xargs -r swaymsg -t command exec' +bindsym $mod+b exec foot --app-id=smsearch bash -c 'url=$(cat .config/qutebrowser/bookmarks/urls | fzf | cut -d \" \" -f 1) && qutebrowser "$url" | xargs -r swaymsg -t command exec' for_window [app_id="^smsearch$"] floating enable, border none, resize set width 80 ppt height 60 ppt, move position 0 px 0 px -bindsym $mod+n exec alacritty --class 'smsearch' --command bash -c 'notes' +#bindsym $mod+n exec alacritty --class 'smsearch' --command bash -c 'notes' +bindsym $mod+n exec foot --app-id=smsearch bash -c 'notes' for_window [app_id="^smsearch$"] floating enable, border none, resize set width 80 ppt height 60 ppt, move position 0 px 0 px diff --git a/.config/waybar/config b/.config/waybar/config index 3dbeb15..2575944 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -4,7 +4,7 @@ "height": 24, "modules-left": ["sway/workspaces", "sway/mode"], "modules-center": [""], - "modules-right": ["mpd", "network", "idle_inhibitor", "battery", "custom/storage", "cpu", "memory", "custom/weather", "tray", "clock"], + "modules-right": ["mpd", "network", "idle_inhibitor", "battery", "custom/storage", "custom/storagehome", "custom/storagestorage", "cpu", "memory", "custom/weather", "tray", "clock"], "sway/mode": { "format": " {}" }, @@ -31,7 +31,7 @@ "tooltip": false }, "network": { - "interface": "wlp3s0", + "interface": "wlp1s0", "format": "{ifname}", "format-wifi": "{essid} ({signalStrength}%) | ", "format-ethernet": "{ifname} ", @@ -40,7 +40,7 @@ "tooltip-format-wifi": "{essid} ({signalStrength}%) ", "tooltip-format-ethernet": "{ifname} ", "tooltip-format-disconnected": "Disconnected", - "on-click": "alacritty -e nmtui", + "on-click": "foot -e nmtui", "tooltip": false }, "pulseaudio": { @@ -77,6 +77,22 @@ "interval": 60, "exec": "$HOME/.config/waybar/modules/storage.sh" }, + "custom/storagestorage": { + "format": "{} |", + "format-alt": "{percentage}% ", + "format-alt-click": "click-right", + "return-type": "json", + "interval": 60, + "exec": "$HOME/.config/waybar/modules/storagestorage.sh" + }, + "custom/storagehome": { + "format": "{} |", + "format-alt": "{percentage}% ", + "format-alt-click": "click-right", + "return-type": "json", + "interval": 60, + "exec": "$HOME/.config/waybar/modules/storagehome.sh" + }, "backlight": { "format": "{icon}", "format-alt": "{percent}% {icon} | ", diff --git a/.config/waybar/modules/storagehome.sh b/.config/waybar/modules/storagehome.sh new file mode 100755 index 0000000..e59c051 --- /dev/null +++ b/.config/waybar/modules/storagehome.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +mount="/home" +warning=20 +critical=10 + +df -h -P -l "$mount" | awk -v warning=$warning -v critical=$critical ' +/\/.*/ { + text=$4 + tooltip="Filesystem: "$1"\rSize: "$2"\rUsed: "$3"\rAvail: "$4"\rUse%: "$5"\rMounted on: "$6 + use=$5 + exit 0 +} +END { + class="" + gsub(/%$/,"",use) + if ((100 - use) < critical) { + class="critical" + } else if ((100 - use) < warning) { + class="warning" + } + print "{\"text\":\""text"\", \"percentage\":"use",\"tooltip\":\""tooltip"\", \"class\":\""class"\"}" +} + ' diff --git a/.config/waybar/modules/storagestorage.sh b/.config/waybar/modules/storagestorage.sh new file mode 100755 index 0000000..f04adfd --- /dev/null +++ b/.config/waybar/modules/storagestorage.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +mount="/storage" +warning=20 +critical=10 + +df -h -P -l "$mount" | awk -v warning=$warning -v critical=$critical ' +/\/.*/ { + text=$4 + tooltip="Filesystem: "$1"\rSize: "$2"\rUsed: "$3"\rAvail: "$4"\rUse%: "$5"\rMounted on: "$6 + use=$5 + exit 0 +} +END { + class="" + gsub(/%$/,"",use) + if ((100 - use) < critical) { + class="critical" + } else if ((100 - use) < warning) { + class="warning" + } + print "{\"text\":\" "text"\", \"percentage\":"use",\"tooltip\":\""tooltip"\", \"class\":\""class"\"}" +} + ' |