From 17d89cb5cab4560332b44e8aa31c2ce58f097a08 Mon Sep 17 00:00:00 2001 From: linlyboi Date: Sun, 12 May 2024 19:46:01 +0300 Subject: [PATCH] the dark/light togglers --- dark-mode.d/executable_dark.sh | 28 +++++++++++++++++++++++ dark-mode.d/executable_notifications.sh | 4 ++++ dark-mode.d/executable_spot-gruvdark.sh | 3 +++ dark-mode.d/symlink_autostart | 1 + light-mode.d/executable_light.sh | 27 ++++++++++++++++++++++ light-mode.d/executable_notifications.sh | 4 ++++ light-mode.d/executable_spot-gruvlight.sh | 3 +++ light-mode.d/symlink_autostart | 1 + private_dot_config/doom/config.el | 6 ++--- 9 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 dark-mode.d/executable_dark.sh create mode 100644 dark-mode.d/executable_notifications.sh create mode 100644 dark-mode.d/executable_spot-gruvdark.sh create mode 100644 dark-mode.d/symlink_autostart create mode 100644 light-mode.d/executable_light.sh create mode 100644 light-mode.d/executable_notifications.sh create mode 100644 light-mode.d/executable_spot-gruvlight.sh create mode 100644 light-mode.d/symlink_autostart diff --git a/dark-mode.d/executable_dark.sh b/dark-mode.d/executable_dark.sh new file mode 100644 index 0000000..1e0b612 --- /dev/null +++ b/dark-mode.d/executable_dark.sh @@ -0,0 +1,28 @@ +#!/bin/bash +#Restart Discord pog +if pgrep "discord-canary" > /dev/null +then + killall DiscordCanary + discord-canary & +fi +if pgrep "obsidian" > /dev/null +then + killall obsidian + Obsidian.AppImage & +fi + +if pgrep "Discord" > /dev/null +then + killall Discord + discord & +fi +# #Kitty Config +# echo " +# include misc.conf +# include themes/gruvbox_dark.conf" > ~/.config/kitty/kitty.conf +# #Zathura poggers +# echo " +# misc.conf +# include gruvbox-dark.conf" > ~/.config/zathura/zathurarc +sed -i -e 's/light/dark/g' ~/.config/rofi/config.rasi ~/.config/zathura/zathurarc ~/.config/kitty/kitty.conf +sed -i -e 's/prefer-dark-theme=0/prefer-dark-theme=1/g' ~/.config/gtk-3.0/settings.ini diff --git a/dark-mode.d/executable_notifications.sh b/dark-mode.d/executable_notifications.sh new file mode 100644 index 0000000..25e7e61 --- /dev/null +++ b/dark-mode.d/executable_notifications.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +killall dunst +dunst -conf "$HOME/.config/dunstrc-dark" & +notify-send "Its dark outside" diff --git a/dark-mode.d/executable_spot-gruvdark.sh b/dark-mode.d/executable_spot-gruvdark.sh new file mode 100644 index 0000000..5813bbe --- /dev/null +++ b/dark-mode.d/executable_spot-gruvdark.sh @@ -0,0 +1,3 @@ +#!/bin/bash +"$HOME/.spicetify/spicetify" config current_theme Onepunch color_scheme dark replace_colors 1 overwrite_assets 0 inject_css 0 extensions +"$HOME/.spicetify/spicetify" apply diff --git a/dark-mode.d/symlink_autostart b/dark-mode.d/symlink_autostart new file mode 100644 index 0000000..5ac9e57 --- /dev/null +++ b/dark-mode.d/symlink_autostart @@ -0,0 +1 @@ +/home/linly/bin/autostart diff --git a/light-mode.d/executable_light.sh b/light-mode.d/executable_light.sh new file mode 100644 index 0000000..c154522 --- /dev/null +++ b/light-mode.d/executable_light.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +#Restart Discord pog +if pgrep "discord-canary" > /dev/null +then + killall DiscordCanary + discord-canary & +fi +if pgrep "Discord" > /dev/null +then + killall Discord + discord & +fi +if pgrep "obsidian" > /dev/null +then + killall obsidian + Obsidian.AppImage & +fi +#Kitty Config +# echo " +# include misc.conf +# include themes/gruvbox_light.conf" > ~/.config/kitty/kitty.conf +# #Zathura poggers +# echo "include gruvbox-light.conf" > ~/.config/zathura/zathurarc + +sed -i -e 's/dark/light/g' ~/.config/rofi/config.rasi ~/.config/zathura/zathurarc ~/.config/kitty/kitty.conf +sed -i -e 's/prefer-dark-theme=1/prefer-dark-theme=0/g' ~/.config/gtk-3.0/settings.ini diff --git a/light-mode.d/executable_notifications.sh b/light-mode.d/executable_notifications.sh new file mode 100644 index 0000000..7b56138 --- /dev/null +++ b/light-mode.d/executable_notifications.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +killall dunst +dunst -conf "$HOME/.config/dunstrc-light" & +notify-send "FLASHBANG OUT" diff --git a/light-mode.d/executable_spot-gruvlight.sh b/light-mode.d/executable_spot-gruvlight.sh new file mode 100644 index 0000000..427ccb2 --- /dev/null +++ b/light-mode.d/executable_spot-gruvlight.sh @@ -0,0 +1,3 @@ +#!/bin/bash +"$HOME/.spicetify/spicetify" config current_theme Onepunch color_scheme light replace_colors 1 overwrite_assets 0 inject_css 0 extensions +"$HOME/.spicetify/spicetify" apply diff --git a/light-mode.d/symlink_autostart b/light-mode.d/symlink_autostart new file mode 100644 index 0000000..5ac9e57 --- /dev/null +++ b/light-mode.d/symlink_autostart @@ -0,0 +1 @@ +/home/linly/bin/autostart diff --git a/private_dot_config/doom/config.el b/private_dot_config/doom/config.el index d7000a6..faa14d9 100644 --- a/private_dot_config/doom/config.el +++ b/private_dot_config/doom/config.el @@ -298,7 +298,7 @@ (use-package! ox-extra :config (ox-extras-activate '(latex-header-blocks ignore-headlines))) - (setq-default org-startup-folded 'content) + ;; (setq-default org-startup-folded 'content) )) (setq-default cache-long-scans nil) @@ -333,8 +333,8 @@ (ranger-override-dired-mode t) ;; ("\\.pdf\\'" . default) is already member in `org-file-apps' ;; Use "xdg-open" to open files by default -(setcdr (assq t org-file-apps-gnu) 'browse-url-xdg-open) - +;; (setcdr (assq t org-file-apps-gnu) 'browse-url-xdg-open) +(setq doc-view-continuous t) (setq telega-open-file-function 'org-open-file) (setq org-log-done 'time)