diff --git a/archive.sh b/archive.sh
index c80077b..acf7071 100755
--- a/archive.sh
+++ b/archive.sh
@@ -1,7 +1,8 @@
#!/bin/bash
-dir=$PWD
+dir="$PWD"
scripts_subdir="$PWD/scripts"
+config="${dir}/config"
# rsync -a ~/pictures/wallpapers/* wallpapers/
@@ -11,13 +12,13 @@ rsync -a \
--exclude 'quickmarks' \
--exclude 'qsettings' \
--exclude 'autoconfig.yml' \
- ~/.config/qutebrowser .
-rsync -a ~/.config/vesktop/settings ./vesktop
-rsync -a ~/.config/bspwm .
-rsync -a ~/.config/sxhkd .
+ ~/.config/qutebrowser "$config"
+rsync -a ~/.config/vesktop/settings "${config}/vesktop"
+rsync -a ~/.config/bspwm "$config"
+rsync -a ~/.config/sxhkd "$config"
rsync -a ~/.config/xfce4 \
- --exclude 'desktop' .
-rsync -a ~/.config/rofi .
+ --exclude 'desktop' "$config"
+rsync -a ~/.config/rofi "$config"
# cp ~/.config/picom.conf .
cd ~/bin || exit
@@ -35,8 +36,10 @@ le-wallpaper-open \
xfce4-le-wallpaper \
qutebrowser \
qutesearch \
+mdread \
rack \
f \
"$scripts_subdir"
+cd "$dir" || exit
-cd "$dir"
+cp -r ~/.local/share/qutebrowser/userscripts "${dir}/local/share/qutebrowser"
diff --git a/config/bspwm/bspwmrc b/config/bspwm/bspwmrc
index 0039208..2d224c7 100755
--- a/config/bspwm/bspwmrc
+++ b/config/bspwm/bspwmrc
@@ -3,8 +3,7 @@
wmname LG3D &
# START MONITOR BLOCK
-bspc monitor HDMI-1 -d I II III IV
-bspc monitor eDP-1 -d eDP-1
+bspc monitor HDMI-1 -d I II III IV V
# END MONITOR BLOCK
bsp-key-daemon
diff --git a/config/bspwm/colors b/config/bspwm/colors
index 9fdcddf..a10a9e2 100755
--- a/config/bspwm/colors
+++ b/config/bspwm/colors
@@ -1,3 +1,3 @@
-bspc config normal_border_color "#3c3f4c"
-bspc config active_border_color "#383a47"
-bspc config focused_border_color "#555e70"
+bspc config normal_border_color "#4a4543"
+bspc config active_border_color "#5c5855"
+bspc config focused_border_color "#807d7c"
diff --git a/config/qutebrowser/base16.css b/config/qutebrowser/base16.css
index 379ea4d..4057c79 100644
--- a/config/qutebrowser/base16.css
+++ b/config/qutebrowser/base16.css
@@ -1,27 +1,27 @@
# :root {
- # --vii: #22262d;
- # --vi: #383a47;
- # --v: #ff29a8;
- # --iv: #8b9cbe;
- # --iiv: #f4f4f7;
- # --a: #8265ff;
+ # --vii: #3a3432;
+ # --vi: #5c5855;
+ # --v: #db2d20;
+ # --iv: #a5a2a2;
+ # --iiv: #f7f7f7;
+ # --a: #b5e4f4;
# }
:root {
- --base00: #17191E;
- --base01: #22262d;
- --base02: #3c3f4c;
- --base03: #383a47;
- --base04: #555e70;
- --base05: #8b9cbe;
- --base06: #B2BFD9;
- --base07: #f4f4f7;
- --base08: #ff29a8;
- --base09: #85ffe0;
- --base0A: #f0ffaa;
- --base0B: #0badff;
- --base0C: #8265ff;
- --base0D: #00eaff;
- --base0E: #00f6d9;
- --base0F: #ff3d81;
+ --base00: #090300;
+ --base01: #3a3432;
+ --base02: #4a4543;
+ --base03: #5c5855;
+ --base04: #807d7c;
+ --base05: #a5a2a2;
+ --base06: #d6d5d4;
+ --base07: #f7f7f7;
+ --base08: #db2d20;
+ --base09: #e8bbd0;
+ --base0A: #fded02;
+ --base0B: #01a252;
+ --base0C: #b5e4f4;
+ --base0D: #01a0e4;
+ --base0E: #a16a94;
+ --base0F: #cdab53;
}
diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py
index f6994f1..7de4a0e 100644
--- a/config/qutebrowser/config.py
+++ b/config/qutebrowser/config.py
@@ -13,8 +13,8 @@ c.content.autoplay = False
config.bind('h', 'back')
config.bind('l', 'forward')
-config.bind('j', 'scroll-page 0 1')
-config.bind('k', 'scroll-page 0 -1')
+config.bind('j', 'scroll-page 0 0.6')
+config.bind('k', 'scroll-page 0 -0.6')
config.bind('gp', 'mode-enter passthrough')
@@ -25,12 +25,18 @@ c.hints.selectors["bookmarks"] = [
"h4[id]",
"h5[id]",
"h6[id]",
- "h1 > a[id]",
- "h2 > a[id]",
- "h3 > a[id]",
- "h4 > a[id]",
- "h5 > a[id]",
- "h6 > a[id]",
+ "h1 a[id]",
+ "h2 a[id]",
+ "h3 a[id]",
+ "h4 a[id]",
+ "h5 a[id]",
+ "h6 a[id]",
+ "h1 span[id]",
+ "h2 span[id]",
+ "h3 span[id]",
+ "h4 span[id]",
+ "h5 span[id]",
+ "h6 span[id]",
"header[id]",
"footer[id]",
"article[id]",
@@ -49,22 +55,22 @@ c.content.user_stylesheets = "base16.css"
# Template author: theova
# Commentary: Tinted Theming: (https://github.com/tinted-theming)
-base00 = "#17191E"
-base01 = "#22262d"
-base02 = "#3c3f4c"
-base03 = "#383a47"
-base04 = "#555e70"
-base05 = "#8b9cbe"
-base06 = "#B2BFD9"
-base07 = "#f4f4f7"
-base08 = "#ff29a8"
-base09 = "#85ffe0"
-base0A = "#f0ffaa"
-base0B = "#0badff"
-base0C = "#8265ff"
-base0D = "#00eaff"
-base0E = "#00f6d9"
-base0F = "#ff3d81"
+base00 = "#090300"
+base01 = "#3a3432"
+base02 = "#4a4543"
+base03 = "#5c5855"
+base04 = "#807d7c"
+base05 = "#a5a2a2"
+base06 = "#d6d5d4"
+base07 = "#f7f7f7"
+base08 = "#db2d20"
+base09 = "#e8bbd0"
+base0A = "#fded02"
+base0B = "#01a252"
+base0C = "#b5e4f4"
+base0D = "#01a0e4"
+base0E = "#a16a94"
+base0F = "#cdab53"
# set qutebrowser colors
diff --git a/config/rofi/theme.rasi b/config/rofi/theme.rasi
index 1dc06dc..a33bad9 100644
--- a/config/rofi/theme.rasi
+++ b/config/rofi/theme.rasi
@@ -7,13 +7,13 @@
*/
* {
- red: rgba ( 255, 41, 168, 100 % );
- blue: rgba ( 0, 234, 255, 100 % );
- lightfg: rgba ( 178, 191, 217, 100 % );
- lightbg: rgba ( 34, 38, 45, 100 % );
- foreground: rgba ( 139, 156, 190, 100 % );
- background: rgba ( 23, 25, 30, 100 % );
- background-color: rgba ( 23, 25, 30, 0 % );
+ red: rgba ( 219, 45, 32, 100 % );
+ blue: rgba ( 1, 160, 228, 100 % );
+ lightfg: rgba ( 214, 213, 212, 100 % );
+ lightbg: rgba ( 58, 52, 50, 100 % );
+ foreground: rgba ( 165, 162, 162, 100 % );
+ background: rgba ( 9, 3, 0, 100 % );
+ background-color: rgba ( 9, 3, 0, 0 % );
separatorcolor: @foreground;
border-color: @foreground;
selected-normal-foreground: @lightbg;
diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc
index b6d49b7..1edb897 100644
--- a/config/sxhkd/sxhkdrc
+++ b/config/sxhkd/sxhkdrc
@@ -49,11 +49,11 @@ super + v
# Exit session
super + q
- xfce4-session-logout
+ xflock4
# Lock screen
super + shift + q
- xflock4
+ xfce4-session-logout
# Open task manager
super + t
@@ -61,8 +61,9 @@ super + t
bsp-float xfce4-taskmanager
# Screenshot region
-super + Print
- xfce4-screenshooter -r
+XF86Launch5
+ flameshot gui
+ # xfce4-screenshooter -r
# Manage audio profiles[57362;10u]
super + shift + Pause
diff --git a/config/vesktop/settings/settings.json b/config/vesktop/settings/settings.json
index ee29d11..364ea30 100644
--- a/config/vesktop/settings/settings.json
+++ b/config/vesktop/settings/settings.json
@@ -186,9 +186,6 @@
"GreetStickerPicker": {
"enabled": false
},
- "HideAttachments": {
- "enabled": false
- },
"iLoveSpam": {
"enabled": false
},
@@ -570,6 +567,9 @@
},
"UserMessagesPronouns": {
"enabled": false
+ },
+ "HideMedia": {
+ "enabled": false
}
},
"notifications": {
@@ -582,6 +582,7 @@
"authenticated": false,
"url": "https://api.vencord.dev/",
"settingsSync": false,
- "settingsSyncVersion": 1731937700893
- }
+ "settingsSyncVersion": 1739774681370
+ },
+ "eagerPatches": false
}
\ No newline at end of file
diff --git a/config/xfce4/terminal/terminalrc b/config/xfce4/terminal/terminalrc
index 4195cd9..b7904b8 100644
--- a/config/xfce4/terminal/terminalrc
+++ b/config/xfce4/terminal/terminalrc
@@ -1,13 +1,13 @@
[Configuration]
-ColorForeground=#8b9cbe
-ColorBackground=#17191E
-ColorCursor=#8265ff
-ColorSelection=#17191E
-ColorBold=#8b9cbe
+ColorForeground=#a5a2a2
+ColorBackground=#090300
+ColorCursor=#b5e4f4
+ColorSelection=#090300
+ColorBold=#a5a2a2
ColorBoldUseDefault=FALSE
-ColorPalette=#17191E;#ff29a8;#0badff;#f0ffaa;#00eaff;#00f6d9;#8265ff;#8b9cbe;#383a47;#ff29a8;#0badff;#f0ffaa;#00eaff;#00f6d9;#8265ff;#f4f4f7
-TabActivityColor=#f0ffaa
-FontName=DejaVu Sans Mono 11
+ColorPalette=#090300;#db2d20;#01a252;#fded02;#01a0e4;#a16a94;#b5e4f4;#a5a2a2;#5c5855;#db2d20;#01a252;#fded02;#01a0e4;#a16a94;#b5e4f4;#f7f7f7
+TabActivityColor=#fded02
+FontName=DejaVu Sans Mono 13
MiscAlwaysShowTabs=FALSE
MiscBell=FALSE
MiscBellUrgent=FALSE
diff --git a/config/xfce4/xfconf/xfce-perchannel-xml/displays.xml b/config/xfce4/xfconf/xfce-perchannel-xml/displays.xml
index 76b9e21..aa335ed 100644
--- a/config/xfce4/xfconf/xfce-perchannel-xml/displays.xml
+++ b/config/xfce4/xfconf/xfce-perchannel-xml/displays.xml
@@ -20,14 +20,14 @@
-
+
-
-
-
+
+
+
-
+
@@ -40,7 +40,7 @@
-
+
@@ -56,14 +56,14 @@
-
+
-
-
-
+
+
+
-
+
diff --git a/config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml b/config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
index d5af63d..cae4530 100644
--- a/config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
+++ b/config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
@@ -9,14 +9,14 @@
-
-
+
+
-
+
diff --git a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-appfinder.xml b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-appfinder.xml
index 75cf55d..0f3ab99 100644
--- a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-appfinder.xml
+++ b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-appfinder.xml
@@ -35,8 +35,8 @@
-
-
+
+
diff --git a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
index 1aa48c9..36c4534 100644
--- a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
+++ b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
@@ -73,7 +73,7 @@
-
-
+
+
diff --git a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
index 574e077..900bc15 100644
--- a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
+++ b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
@@ -22,7 +22,7 @@
-
+
@@ -39,6 +39,8 @@
+
+
@@ -47,8 +49,6 @@
-
-
@@ -85,7 +85,7 @@
-
+
diff --git a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml
index 0680d1e..a4b51fc 100644
--- a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml
+++ b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml
@@ -18,7 +18,7 @@
-
+
diff --git a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml
index 932a482..ed0a2ac 100644
--- a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml
+++ b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml
@@ -2,6 +2,18 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-settings-manager.xml b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-settings-manager.xml
index 8916f54..ed9a7b3 100644
--- a/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-settings-manager.xml
+++ b/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-settings-manager.xml
@@ -2,7 +2,7 @@
-
-
+
+
diff --git a/config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml b/config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
index 3fe3c44..5d62505 100644
--- a/config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
+++ b/config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
@@ -48,7 +48,7 @@
-
+
diff --git a/config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml b/config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
index 4d886a5..6fb74ca 100644
--- a/config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
+++ b/config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
@@ -25,8 +25,8 @@
-
-
+
+
diff --git a/local/share/qutebrowser/userscripts/copy-bookmark b/local/share/qutebrowser/userscripts/copy-bookmark
new file mode 100755
index 0000000..a42db83
--- /dev/null
+++ b/local/share/qutebrowser/userscripts/copy-bookmark
@@ -0,0 +1,67 @@
+#!/usr/bin/env python3
+
+# copy-bookmark
+# copies links to specific headers/elements of a page
+# by Dakedres
+#
+# I guessed at how Python works.
+# Based on https://github.com/LaurenceWarne/qute-code-hint/blob/master/code_select.py
+
+# It is recommended you add this to your config.py to use this script:
+ # c.hints.selectors["bookmarks"] = [
+ # "h1[id]",
+ # "h2[id]",
+ # "h3[id]",
+ # "h4[id]",
+ # "h5[id]",
+ # "h6[id]",
+ # "h1 > a[id]",
+ # "h2 > a[id]",
+ # "h3 > a[id]",
+ # "h4 > a[id]",
+ # "h5 > a[id]",
+ # "h6 > a[id]",
+ # "header[id]",
+ # "footer[id]",
+ # "article[id]",
+ # "section[id]",
+ # "p[id]",
+ # "div[itemtype=\"https://schema.org/Answer\"]" # Stackoverflow answers
+ # ]
+# And call it with
+ # hint bookmarks userscript copy-bookmark
+
+import os
+from urllib.parse import urlparse, urlunparse
+from html.parser import HTMLParser
+
+class BookmarkParser(HTMLParser):
+ def handle_starttag(self, tag, attrs):
+ for attr in attrs:
+ print(attr[0])
+ if(attr[0] == "id"):
+ self.bookmark_id = attr[1]
+
+ def close(self):
+ HTMLParser.close(self)
+ return self.bookmark_id
+
+def send_to_qute(command):
+ with open(os.environ.get("QUTE_FIFO"), "w") as f:
+ f.write(command)
+
+def construct_bookmark_url():
+ parser = BookmarkParser()
+ parser.feed(os.environ.get("QUTE_SELECTED_HTML"))
+ bookmark_id = parser.close()
+
+ url = urlparse(os.environ.get("QUTE_CURRENT_URL") )
+ url = url._replace(fragment=bookmark_id)
+
+ return urlunparse(url)
+
+def main():
+ send_to_qute("yank inline '{url}'".format(url=construct_bookmark_url() ) )
+
+if __name__ == "__main__":
+ main()
\ No newline at end of file
diff --git a/local/share/qutebrowser/userscripts/le-password b/local/share/qutebrowser/userscripts/le-password
new file mode 100755
index 0000000..d399410
--- /dev/null
+++ b/local/share/qutebrowser/userscripts/le-password
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+mode=$1
+index=0
+
+if [ -z "$mode" ]; then
+ mode="eval"
+fi
+
+printf %s\\n 'message-info "Requesting password..."' >> "$QUTE_FIFO"
+results=$(bw list items --session --url "$QUTE_CURRENT_URL")
+
+query() {
+ printf %s "$results" | jq "$1"
+}
+
+if [ "$(query length)" != 1 ]; then
+ index=$(query ".[] | .name,.login.username" | tr -d '"' | awk '!(NR%2){print $0 " (" p ")"}{p=$0}' | rofi -dmenu -format i)
+fi
+
+password="$(query ".[${index}].login.password" | tr -d '"')"
+
+case $mode in
+ eval)
+ username="$(query ".[${index}].login.username" | tr -d '"')"
+ script=$(printf %s """\
+let e = document.activeElement, \
+ f = e.closest('form'), \
+ p = !f || e.type === 'password' ? e : f.querySelector('input[type=password]'), \
+ u = !f || e.type === 'email' || e.type === 'text' ? e : f.querySelector('input[type=email], input[name=email], input[name=username], input[name=user_name], input[name=user], input[autofocus]'), \
+ F = (i, v) => { if(i) { i.value = v; return true } }, \
+ su = F(u, USERNAME), \
+ sp = F(p, PASSWORD); \
+if(su && sp) { 'Login filled' } \
+else if(su) { 'Username filled' } \
+else if(sp) { 'Password filled' } \
+else 'Unable to fill login info' \
+""")
+ command="jseval $(printf '{ let USERNAME="%s", PASSWORD="%s"; %s }' "$username" "$password" "$script" )"
+ ;;
+
+ *)
+ command="insert-text ${password}"
+ ;;
+esac
+
+printf %s\\n "$command" > "$QUTE_FIFO"
diff --git a/local/share/qutebrowser/userscripts/pipe.sh b/local/share/qutebrowser/userscripts/pipe.sh
new file mode 100755
index 0000000..ff86ae6
--- /dev/null
+++ b/local/share/qutebrowser/userscripts/pipe.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# pipe=/tmp/testpipe
+
+# trap "rm -f $pipe" EXIT
+#
+# if [[ ! -p $pipe ]]; then
+ # mkfifo $pipe
+# fi
+
+# echo "$QUTE_FIFO" > $HOME/fifoa
+#
+# echo "jseval window.location.href"
+#
+# while true
+# do
+ # if read -r line <"$QUTE_FIFO"; then
+ # if [[ "$line" == 'quit' ]]; then
+ # break
+ # fi
+ # echo "$line"
+ # fi
+# done
+#
+# echo "Reader exiting"
+
+echo "open -t https://www.dict.cc/?s=$QUTE_SELECTED_TEXT" >> "$QUTE_FIFO"
diff --git a/scripts/le-keyboard b/scripts/le-keyboard
index 1e4263d..42ebdd6 100755
--- a/scripts/le-keyboard
+++ b/scripts/le-keyboard
@@ -1,2 +1,2 @@
-setxkbmap -option altwin:swap_alt_win
+# setxkbmap -option altwin:swap_alt_win
setxkbmap -option caps:swapescape
diff --git a/scripts/mdread b/scripts/mdread
new file mode 100755
index 0000000..58bad3d
--- /dev/null
+++ b/scripts/mdread
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+o="$(mktemp).html"
+t="$(basename $1)"
+pandoc "$1" -o "$o" --metadata="title:$t"
+xdg-open "$o"