From df033dd41f74494166f3d45b60ec74615130e9a3 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Sat, 14 Sep 2024 08:27:53 +0300 Subject: [PATCH] ok i push up --- dark-mode.d/executable_dark.sh | 3 +- dot_XCompose | 2 +- dot_sh_functions | 2 +- dot_zshrc | 2 + light-mode.d/executable_light.sh | 4 +- private_dot_config/darkman/config.yaml | 2 + private_dot_config/doom/config.el | 6 ++- private_dot_config/doom/init.el | 2 +- private_dot_config/doom/packages.el | 1 + .../dunst/{dunstrc => dunstrc-dark} | 22 ++++----- private_dot_config/dunst/dunstrc-light | 47 +++++++++++++++++++ private_dot_config/i3/misc.conf | 2 + private_dot_config/i3/window_rules.conf | 3 +- 13 files changed, 77 insertions(+), 21 deletions(-) rename private_dot_config/dunst/{dunstrc => dunstrc-dark} (79%) create mode 100644 private_dot_config/dunst/dunstrc-light diff --git a/dark-mode.d/executable_dark.sh b/dark-mode.d/executable_dark.sh index 983c5a6..b167ab1 100644 --- a/dark-mode.d/executable_dark.sh +++ b/dark-mode.d/executable_dark.sh @@ -17,5 +17,6 @@ # killall Discord # discord & # fi +gsettings set org.gnome.desktop.interface gtk-theme adw-gtk3-dark 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 +sed -i -e 's/prefer-dark-theme=0/prefer-dark-theme=1/g' ~/.config/gtk-3.0/settings.ini ~/.config/gtk-4.0/settings.ini diff --git a/dot_XCompose b/dot_XCompose index 9c44a37..02e40e5 100644 --- a/dot_XCompose +++ b/dot_XCompose @@ -9,7 +9,7 @@ include "%L" # A backup of the previous file contents has been made. -~/.XCompose +#~/.XCompose # GREEK CAPITAL LETTERS : "Α" U0391 # GREEK CAPITAL LETTER ALPHA : "Β" U0392 # GREEK CAPITAL LETTER BETA diff --git a/dot_sh_functions b/dot_sh_functions index a24fc6f..6590dee 100644 --- a/dot_sh_functions +++ b/dot_sh_functions @@ -193,7 +193,7 @@ cp-lower() { echo $to } ytclip () { - yt-dlp -f "bv[height<=480]+ba" --download-sections "*$1-$2" --force-keyframes-at-cuts $3 -q -o ~/Videos/clip + yt-dlp -f "bv+ba" --download-sections "*$1-$2" --force-keyframes-at-cuts $3 -q -o ~/Videos/clip } # vim:ft=zsh diff --git a/dot_zshrc b/dot_zshrc index 001f7af..b94accf 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -230,3 +230,5 @@ unset __conda_setup export XDG_DATA_DIRS=$XDG_DATA_DIRS:$HOME [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion export PATH=$HOME/.local/share/ponyup/bin:$PATH + +export PATH=$PATH:/home/linly/.millennium/ext/bin diff --git a/light-mode.d/executable_light.sh b/light-mode.d/executable_light.sh index 3d65be5..dd0b19a 100644 --- a/light-mode.d/executable_light.sh +++ b/light-mode.d/executable_light.sh @@ -23,6 +23,6 @@ # include themes/gruvbox_light.conf" > ~/.config/kitty/kitty.conf # #Zathura poggers # echo "include gruvbox-light.conf" > ~/.config/zathura/zathurarc - +gsettings set org.gnome.desktop.interface gtk-theme adw-gtk3 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 +sed -i -e 's/prefer-dark-theme=1/prefer-dark-theme=0/g' ~/.config/gtk-3.0/settings.ini ~/.config/gtk-4.0/settings.ini diff --git a/private_dot_config/darkman/config.yaml b/private_dot_config/darkman/config.yaml index 790fe6b..3fff139 100644 --- a/private_dot_config/darkman/config.yaml +++ b/private_dot_config/darkman/config.yaml @@ -1,3 +1,5 @@ lat: 31.200092 lng: 29.91 dbusserver: true +usegeoclue: false +portal: true diff --git a/private_dot_config/doom/config.el b/private_dot_config/doom/config.el index 057cf96..d47756a 100644 --- a/private_dot_config/doom/config.el +++ b/private_dot_config/doom/config.el @@ -145,7 +145,6 @@ (setq-default indent-tabs-mode t) (setq-default tab-width 4) ; Assuming you want your tabs to be four spaces wide (defvaralias 'c-basic-offset 'tab-width) - ;;Chezmoi (use-package chezmoi) @@ -224,6 +223,7 @@ ;;(add-hook 'kill-emacs-hook 'org-caldav-sync-at-close) (add-to-list 'org-caldav-todo-percent-states '( 0 "IDEA") + '( 0 "WAIT") ) ) (setq auth-sources '("~/.authinfo.gpg")) @@ -418,3 +418,7 @@ awqat-times-for-day) ;;org latex moment (setq-default org-latex-toc-command "\\clearpage \\tableofcontents \\clearpage") (add-hook 'doc-view-mode-hook 'auto-revert-mode) +(defun toggle-dunst-notifs () + (call-process-shell-command "dunstctl set-paused toggle")) +(add-hook 'org-pomodoro-started-hook #'toggle-dunst-notifs) +(add-hook 'org-pomodoro-finished-hook #'toggle-dunst-notifs) diff --git a/private_dot_config/doom/init.el b/private_dot_config/doom/init.el index b5042a1..804942f 100644 --- a/private_dot_config/doom/init.el +++ b/private_dot_config/doom/init.el @@ -90,7 +90,7 @@ ;;debugger ; FIXME stepping through code, to help you add bugs ;;direnv docker - ;;editorconfig ; let someone else argue about tabs vs spaces + editorconfig ; let someone else argue about tabs vs spaces ein ; tame Jupyter notebooks with emacs (eval +overlay) ; run code, run (also, repls) ;;gist ; interacting with github gists diff --git a/private_dot_config/doom/packages.el b/private_dot_config/doom/packages.el index 0efb397..4ac0649 100644 --- a/private_dot_config/doom/packages.el +++ b/private_dot_config/doom/packages.el @@ -58,6 +58,7 @@ :repo "zkry/awqat")) (package! org-contrib) (package! ponylang-mode) +(package! pony-mode) (package! org-pomodoro) (package! protobuf-mode) ;; Doom's packages are pinned to a specific commit and updated from release to diff --git a/private_dot_config/dunst/dunstrc b/private_dot_config/dunst/dunstrc-dark similarity index 79% rename from private_dot_config/dunst/dunstrc rename to private_dot_config/dunst/dunstrc-dark index 61b59f8..3349875 100644 --- a/private_dot_config/dunst/dunstrc +++ b/private_dot_config/dunst/dunstrc-dark @@ -1,16 +1,15 @@ [global] - font = "Hack 10" - allow_markup = yes + font = "Miracode 10" + markup = full format = "%s\n%b" sort = yes indicate_hidden = yes alignment = center - bounce_freq = 0 show_age_threshold = 60 word_wrap = yes ignore_newline = no origin = top-center - geometry = "200x5-876+30" + browser = /usr/bin/firefox -new-tab transparency = 0 idle_threshold = 120 monitor = 0 @@ -21,20 +20,17 @@ padding = 8 horizontal_padding = 8 separator_color = "#585858" - startup_notification = false + frame_width = 1 + frame_color = "#83a598" + close = ctrl+space + close_all = ctrl+shift+space + history = ctrl+grave + context = ctrl+shift+period # https://github.com/knopwob/dunst/issues/26#issuecomment-36159395 #icon_position = left #icon_folders = /usr/share/icons/elementary/actions/16/ -[frame] - width = 1 - color = "#83a598" -[shortcuts] - # close = ctrl+space - close_all = ctrl+shift+space - #history = ctrl+grave - context = ctrl+shift+period [urgency_low] background = "#282828" diff --git a/private_dot_config/dunst/dunstrc-light b/private_dot_config/dunst/dunstrc-light new file mode 100644 index 0000000..b30b6cb --- /dev/null +++ b/private_dot_config/dunst/dunstrc-light @@ -0,0 +1,47 @@ +[global] + font = "Miracode 10" + markup = full + format = "%s\n%b" + sort = yes + indicate_hidden = yes + alignment = center + stack_duplicates = true + show_age_threshold = 60 + origin = top-center + word_wrap = yes + ignore_newline = no + browser = /usr/bin/firefox -new-tab + transparency = 0 + idle_threshold = 120 + monitor = 0 + follow = mouse + sticky_history = yes + line_height = 0 + separator_height = 2 + padding = 8 + horizontal_padding = 8 + separator_color = "#585858" + # https://github.com/knopwob/dunst/issues/26#issuecomment-36159395 + #icon_position = left + frame_width = 1 + icon_folders = /usr/share/icons/breeze/apps/48/:/usr/share/icons/breeze/actions/48/:/usr/share/icons/breeze/places/48/:/usr/share/icons/breeze/status/48/ + frame_color = "#282828" + close = ctrl+space + close_all = ctrl+shift+space + history = ctrl+grave + context = ctrl+shift+period + +[urgency_low] + background = "#ebdbb2" + foreground = "#282828" + timeout = 5 + +[urgency_normal] + background = "#ebdbb2" + foreground = "#282828" + timeout = 10 + +[urgency_critical] + background = "#ebdbb2" + foreground = "#282828" + timeout = 20 diff --git a/private_dot_config/i3/misc.conf b/private_dot_config/i3/misc.conf index 3d3b8f6..56785c1 100644 --- a/private_dot_config/i3/misc.conf +++ b/private_dot_config/i3/misc.conf @@ -35,6 +35,8 @@ exec_always --no-startup-id setxkbmap -layout us,ara -variant ,ergoarabic -optio # FUCK YOU MICROSOFT (thank you copilot) exec_always --no-startup-id xmodmap ~/.Xmodmap +# YEA +exec --no-startup-id darkman run #Useful thing to switch back when you press same switcher key (this breaks the spotify move to workspace rule) #workspace_auto_back_and_forth yes diff --git a/private_dot_config/i3/window_rules.conf b/private_dot_config/i3/window_rules.conf index 83dba42..3dfbe5d 100644 --- a/private_dot_config/i3/window_rules.conf +++ b/private_dot_config/i3/window_rules.conf @@ -99,6 +99,7 @@ assign [class = "Chromium-browser"] $Vm # Roles (Thanks greyfade :D) for_window [window_role="pop-up"] floating enable + for_window [window_role="task_dialog"] floating enable for_window [title = ".*Microsoft Teams"] floating disabled @@ -127,9 +128,9 @@ for_window [class = ".*"] title_format "%class" for_window [class = "XTerm"] floating enabled for_window [class = "org.opensuse.YaST"] floating enabled for_window [class = "chatterino"] floating enabled - #Names for_window [title = "ani-cli"] move to workspace $Youtube +for_window [title="bouncing-ball"] floating enable for_window [title = "^.*Private Browsing"] move to workspace $Vm # for_window [title = "work" class = "kitty"] move to workspace $Code #for_window [title = "manga-cli"] move to workspace $Youtube