From 758af64711764d4fe4e08dfe25d9a6d51c8dd51f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Tue, 30 Mar 2021 00:11:48 +0300 Subject: [PATCH] Fixed dunst issue caused by env variable not being set by ly --- config/X11/xinitrc | 2 ++ config/surf/cookies.txt | 3 ++- config/surf/history.txt | 8 ++++++++ local/bin/dmenu-arch | 2 +- local/bin/dmenu-edit | 2 +- profile | 2 ++ suckless/dwm/rules.h | 4 ++-- 7 files changed, 18 insertions(+), 5 deletions(-) diff --git a/config/X11/xinitrc b/config/X11/xinitrc index 15def6b2..93770e4b 100755 --- a/config/X11/xinitrc +++ b/config/X11/xinitrc @@ -14,6 +14,8 @@ source ~/.config.env gpgconf --dry-run --create-socketdir eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) systemctl --user import-environment DISPLAY +dbus-update-activation-environment --systemd DISPLAY + export SSH_AUTH_SOCK clipmenud > /tmp/clipmenud.out 2> /tmp/clipmenud.err & diff --git a/config/surf/cookies.txt b/config/surf/cookies.txt index 277d62b6..0b16cbd7 100644 --- a/config/surf/cookies.txt +++ b/config/surf/cookies.txt @@ -1,2 +1,3 @@ #HttpOnly_.google.com TRUE / TRUE 1632862083 NID 212=KHX5zOKOsFZez_kS5jEAqSrltn3wEizkXDRGl9HflSUc9YR8xEGzQKxq6TBiqOvAzAo1MlT6kaEQqUKRfWfCERMc5okEiwhIya8Dti0_uiP99MDnEhXyKfyARUs2H9PK2R4ozvIwhPmUNEtkJX5OQoQzClfBETSRosTP8ThQP78 None -.google.com TRUE / TRUE 1619642973 1P_JAR 2021-03-29-20 None +.google.com TRUE / TRUE 1619643092 1P_JAR 2021-03-29-20 None +.unsplash.com TRUE / TRUE 1648587996 ugid 7eaf846a16a77665ebcd81475279fff45390171 None diff --git a/config/surf/history.txt b/config/surf/history.txt index 842018fe..b3ff9af5 100644 --- a/config/surf/history.txt +++ b/config/surf/history.txt @@ -3,3 +3,11 @@ 2021-03-29 23:47:58 https://www.google.com/?gws_rd=ssl Google 2021-03-29 23:48:04 https://www.google.com/ Google 2021-03-29 23:49:28 https://www.google.com/ Google +2021-03-29 23:51:32 https://www.google.com/ Google +2021-03-29 23:58:15 file:///usr/share/doc/arch-wiki/html/en/2bwm.html 2bwm - ArchWiki +2021-03-29 23:58:27 http://localhost:9999/ http://localhost:9999/ +2021-03-29 23:58:54 file:///usr/share/doc/arch-wiki/html/en/2bwm.html 2bwm - ArchWiki +2021-03-29 23:59:49 file:///usr/share/doc/arch-wiki/html/en/32-bit_package_guidelines.html 32-bit package guidelines - ArchWiki +2021-03-29 23:59:50 file:///usr/share/doc/arch-wiki/html/en/32-bit_package_guidelines.html 32-bit package guidelines - ArchWiki +2021-03-30 00:00:20 file:///usr/share/doc/arch-wiki/html/en/32-bit_package_guidelines.html 32-bit package guidelines - ArchWiki +2021-03-30 00:06:35 http://localhost:9999/ http://localhost:9999/ diff --git a/local/bin/dmenu-arch b/local/bin/dmenu-arch index 7dee3e04..df5559cf 100755 --- a/local/bin/dmenu-arch +++ b/local/bin/dmenu-arch @@ -1,7 +1,7 @@ #!/bin/sh LANGUAGE=en -BROWSER=brave-nightly +BROWSER=surf entries=$(find "/usr/share/doc/arch-wiki/html/$LANGUAGE" -type f | sed -n "s|/usr/share/doc/arch-wiki/html/$LANGUAGE/||p" | sed -n "s/\.html$//p") diff --git a/local/bin/dmenu-edit b/local/bin/dmenu-edit index 6b4d6f95..de0c6862 100755 --- a/local/bin/dmenu-edit +++ b/local/bin/dmenu-edit @@ -2,7 +2,7 @@ DMENU='dmenu -z 1900 -x 10 -y 10 -i' blacklist="powerlevel10k|secret|gitignore|log|plugins|patch" -whitelist="config.h|keybind.h|colors.h|color.h" +whitelist="config.h|keybind.h|colors.h|color.h|rules.h" declare -A mappings items=$(find "$HOME/.dotfiles/config" -type f | grep -Ev $blacklist | sed -n "s|$HOME/.dotfiles/config/|config/|p") diff --git a/profile b/profile index 9363d812..636f627b 100755 --- a/profile +++ b/profile @@ -26,6 +26,8 @@ export XDG_CONFIG_HOME="$HOME"/.config export XDG_CACHE_HOME="$HOME"/.cache export XDG_DATA_DIRS="/usr/local/share:/usr/share" export XDG_CONFIG_DIRS="/etc/xdg" +export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" +export XDG_RUNTIME_DIR="/run/user/1000" # LF Icons LF_ICONS=$(sed ~/.config/lf/diricons \ diff --git a/suckless/dwm/rules.h b/suckless/dwm/rules.h index 818d262f..7607f552 100644 --- a/suckless/dwm/rules.h +++ b/suckless/dwm/rules.h @@ -9,7 +9,6 @@ static const Rule rules[] = { RULE(.class = "firefoxdeveloperedition", .tags = 1 << 1) RULE(.class = "Brave-browser", .tags = 1 << 1) RULE(.class = "tabbed-surf", .tags = 1 << 1) - RULE(.class = "tabbed", .tags = 1 << 1) RULE(.class = "bitwarden", .tags = 1 << 6) RULE(.class = "Bitwarden", .tags = 1 << 6) RULE(.class = "Mailspring", .tags = 1 << 7) @@ -35,9 +34,10 @@ static const Rule rules[] = { RULE(.instance = "sxiv", 0, .isfloating = 1, .floatpos="100% 1% 600W 350H") RULE(.class = "neomutt-send", 0, .isfloating = 1, .floatpos="50% 50% 1000W 700H") RULE(.class = "Zathura", 0, .isfloating = 1, .floatpos="100% 50% 700W 1000H") + RULE(.class = "Surf", 0, .isfloating = 1, .floatpos="100% 100% 800W 1200H") RULE(.class = "weather", 0, .isfloating = 1, .floatpos="50% 50% 1200W 800H") RULE(.class = "center", 0, .isfloating = 1, .floatpos="50% 50% 1000W 600H") RULE(.class = "htop", 0, .isfloating = 1, .floatpos="50% 50% 1200W 600H") - RULE(.title = "SimCrop", 0, .isfloating = 1, .floatpos="50% 50% 800W 500H") + RULE(.title = "SimCrop", 0, .isfloating = 1, .floatpos="50% 50% 800W 500H") };