Compare commits

...

8 Commits

15 changed files with 245 additions and 67 deletions

View File

@ -26,7 +26,7 @@ source ~/.fehbg
(sleep 0 && ~/bin/keyboard ) &
killall wired
(sleep 1 && wired ) &
(sleep 3 && optimus-manager-qt) &
#(sleep 3 && optimus-manager-qt) &
(sleep 3 && flameshot) &
(sleep 4 && keepassxc) &
@ -34,13 +34,18 @@ killall wired
(sleep 5 && syncthing -no-browser) &
#(sleep 5 && thunderbird ) &
(sleep 5 && davmail ) &
(sleep 7 && bspc rule -r Thunderbird ) &
# Kill all davail instances before launching a single one
kill $(pgrep --full "davmail")
(sleep 5 && davmail ) &
# kill current session and if there is ones waiting to start lol
killall goimapnotify
(sleep 55 && killall goimapnotify) &
(sleep 6 && notify-send "STARTUP MSG" "Don't Forget to unlock keepassXC!") &
# start watching all mail dirs
# moved to file
#for imapnotify_config in ~/Documents/passwords/*_imapnotify.json; do

View File

@ -0,0 +1,13 @@
#!/bin/sh
intern=eDP-1-1
extern=HDMI-0
if xrandr | grep "$extern disconnected"; then
xrandr --output "$extern" --off --output "$intern" --auto
echo "External Monitor $extern is disconnected"
else
xrandr --output "$intern" --off --output "$extern" --auto
echo " External Monitor $extern is connected"
echo "So, Internal Monitor $intern was shutdown"
fi

View File

@ -1,4 +1,4 @@
#!/bin/sh
grep -qs '^ID=arch$' /etc/os-release \
grep -qs '^ID=artix$' /etc/os-release \
&& { test -e /lib/modules/`uname -r` \
|| echo Kernel updated, reboot computer.; }

View File

@ -3,6 +3,8 @@ setxkbmap -option ctrl:swapcaps
setxkbmap -option altwin:swap_lalt_lwin
setxkbmap -model pc105 -layout us,ar -variant ,qwerty -option grp:shifts_toggle
xset r rate 300 50
# touchpad touch
idd=$(xinput --list | grep 'Touchpad' | awk '{print $6}'| cut -d'=' -f2)
#xinput set-prop $idd 343 1

View File

@ -34,7 +34,8 @@ bspc config pointer_follows_focus true
bspc rule -a Thunderbird desktop='^8'
bspc rule -a KeePassXC desktop='^8'
# the confirm dialog
bspc rule -a "KeePassXC:Confirm Auto-Type:*" sticky=on
bspc rule -a "KeePassXC:*:Confirm Auto-Type" sticky=on
bspc rule -a "Dragon-drag-and-drop" sticky=on
bspc rule -a Dino desktop='^8'
bspc rule -a Peek state=floating

View File

@ -914,6 +914,7 @@ use-package
:config
(require 'org-tempo)
(require 'org-habit)
(add-to-list 'org-file-apps '("\\.xlsx\\'" . default))
(setq geiser-default-implementation 'guile)
(setq org-ellipsis " ⤵")
(setq org-agenda-start-with-log-mode t)
@ -933,6 +934,8 @@ use-package
(set-face-attribute (car face) nil :font my/ui/varfont :weight 'regular :height (cdr face)))
;)
(setq org-todo-keyword-faces `(("NOW" (:foreground "white" :background "#444527"))
("NEXT" (:foreground "bright-white" :background "#444527"))))
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
;; Ensure that anything that should be fixed-pitch in Org files appears that way
@ -956,6 +959,13 @@ Capture Templates
:commands (doct))
#+end_src
** Open with external app
#+begin_src emacs-lisp
;; Excel with xdg-open
;;(add-to-list 'org-file-apps '("\\.xlsx\\'" . default))
;; moved to org use package
#+end_src
** Appearance
*** Symbols
#+begin_src emacs-lisp
@ -1118,6 +1128,12 @@ From: https://yiufung.net/post/anki-org/
#+end_src
** Agenda
*** Customizations
#+begin_src emacs-lisp
;;laggy :(
(setq org-agenda-show-outline-path nil)
#+end_src
*** T/ODOs
#+begin_src emacs-lisp
(setq org-todo-keywords '((sequence "TODO(t)" "NOW(o)" "NEXT(n)" "|" "DONE(d)")
@ -1371,6 +1387,11 @@ Stolen from: [[https://blog.jethro.dev/posts/processing_inbox/][Org-mode Workflo
(org-pomodoro-manual-break t))
#+end_src
** Org analyzer
#+begin_src emacs-lisp
(use-package org-analyzer)
#+end_src
** org-roam
*** use-package
#+begin_src emacs-lisp
@ -1475,7 +1496,7 @@ Stopped using this, I just use Anki like a normal person
(use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode)
(prog-mode . show-paren-mode)
(prog-mode . electric-pair-mode)
(prog-mode . electric-pair-local-mode)
)
#+end_src
@ -1620,6 +1641,7 @@ Magit TODOs!
:after magit
:config (magit-todos-mode 1))
#+end_src
*** TODO Forge
#+begin_src emacs-lisp
;(use-package forge)
@ -1687,13 +1709,14 @@ Get treemacs-lsp
:defer t)
#+end_src
*** COMMENT Clojure
*** Clojure
#+begin_src emacs-lisp
(use-package cider
:defer t
:config (require 'flycheck-clj-kondo)
:hook (clojure-mode . zprint-format-on-save-mode)
(clojure-mode . flycheck-mode)
(clojure-mode . electric-pair-local-mode)
:bind (:map cider-mode-map
([remap lsp-find-definition] . cider-find-var)
([remap eval-defun] . cider-eval-list-at-point)
@ -1868,6 +1891,12 @@ lsp hooks setups
(add-hook 'js-mode-hook 'lsp)
#+end_src
*** Lua
#+begin_src emacs-lisp
(use-package lua-mode
:hook (lua-mode . lsp))
#+end_src
*** Markdown
Better Diff in header sizes
#+begin_src emacs-lisp
@ -2118,6 +2147,14 @@ ivy bibtex
#+end_src
*** Nix(OS)
#+begin_src emacs-lisp
(use-package nix-mode
:hook (nix-mode . (lambda ()
(add-hook 'before-save-hook 'nix-mode-format nil t))))
#+end_src
** Tramp
#+begin_src emacs-lisp
; moved to Git
@ -2658,6 +2695,18 @@ I prefer text/plain, over everything >:)
#+end_src
* Matrix Ement
#+begin_src emacs-lisp
(use-package ement
:straight (ement
:type git
:host github
:repo "alphapapa/ement.el"))
;; :after org-roam ;; or :after org
;; :hook (org-roam . org-roam-ui-mode)
;; :config)
#+end_src
* Buffers and Windows
** COMMENT Workspaces (Persepective
#+begin_src emacs-lisp
@ -2667,7 +2716,6 @@ I prefer text/plain, over everything >:)
(setq persp-keymap-prefix (kbd "SPC <tab>"))
#+end_src
* Startpage
#+begin_src emacs-lisp
(use-package dashboard

View File

@ -1,12 +1,8 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
htop_version=3.1.2
config_reader_min_version=2
htop_version=3.2.1
config_reader_min_version=3
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=-1
tree_sort_key=46
tree_sort_direction=1
hide_kernel_threads=1
hide_userland_threads=1
shadow_other_users=0
@ -21,16 +17,12 @@ highlight_changes_delay_secs=5
find_comm_in_cmdline=1
strip_exe_from_cmdline=1
show_merged_command=1
tree_view=0
tree_view_always_by_pid=0
all_branches_collapsed=0
header_margin=1
screen_tabs=1
detailed_cpu_time=0
cpu_count_from_one=1
show_cpu_usage=1
show_cpu_frequency=0
show_cpu_temperature=0
degree_fahrenheit=0
update_process_names=0
account_guest_in_cpu_meter=0
color_scheme=0
@ -40,5 +32,28 @@ hide_function_bar=0
header_layout=two_50_50
column_meters_0=LeftCPUs2 CPU Battery Blank Blank Blank Memory NetworkIO DiskIO
column_meter_modes_0=1 1 1 2 2 2 3 4 4
column_meters_1=RightCPUs2 Memory Swap Blank Blank Blank LoadAverage Uptime Tasks
column_meter_modes_1=1 1 1 2 2 2 3 4 4
column_meters_1=RightCPUs2 Memory Zram Swap Blank Blank Blank LoadAverage Uptime Tasks
column_meter_modes_1=1 1 1 1 2 2 2 3 4 4
tree_view=0
sort_key=46
tree_sort_key=46
sort_direction=-1
tree_sort_direction=1
tree_view_always_by_pid=0
all_branches_collapsed=0
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
.sort_key=PERCENT_CPU
.tree_sort_key=PERCENT_CPU
.tree_view=0
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=1
.all_branches_collapsed=0
screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command
.sort_key=IO_WRITE_RATE
.tree_sort_key=PID
.tree_view=0
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=1
.all_branches_collapsed=0

View File

@ -0,0 +1,44 @@
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# https://forum.archlabslinux.com/t/polybar-mirrored-laptop-hdmi-monitor-i3-workspaces-issue/3398
# Polybar has issues, so just disconnect internal monitor
~/bin/disconnect-internal-monitor.sh
eval `ssh-agent -s`
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
if [ $# -gt 0 ]; then
$*
else
dbus-launch /usr/bin/bspwm
fi

View File

@ -0,0 +1,42 @@
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
eval `ssh-agent -s`
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
if [ $# -gt 0 ]; then
$*
else
/usr/bin/bspwm
fi

View File

@ -65,7 +65,7 @@ type = custom/script
exec-if = pgrep keepassxc
exec = secret-tool lookup check status &> /dev/null && echo " "
interval = 5
interval = 20
format = <label>
label-padding = 1

View File

@ -2024,7 +2024,10 @@ c.tabs.show = 'multiple'
## Type: Dict
c.url.searchengines = {'DEFAULT': 'https://searx.neocities.org/?q={}',
'wa':"https://wiki.archlinux.org/?search={}",
'aur':
"https://aur.archlinux.org/packages?O=0&SeB=nd&K={}&outdated=&SB=p&SO=d&PP=50&submit=Go",
'go':"http://google.com/search?q={}",
'ar':"http://web.archive.org/web/*/{}",
'ddg':"https://duckduckgo.com/?q={}",
}

View File

@ -8,5 +8,5 @@
// @run-at document-start
// ==/UserScript==
location.href=location.href.replace("twitter.com","nitter.kavin.rocks");
location.href=location.href.replace("twitter.com","nitter.net");

View File

@ -34,6 +34,8 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
unset f
fi
/usr/bin/prime-offload
/usr/bin/bspwm
sudo /usr/bin/prime-switch
if [ $# -gt 0 ]; then
$*
else
dbus-launch /usr/bin/bspwm
fi

View File

@ -1,7 +1,7 @@
# format with playlist_index
-o "%(playlist_index)s-%(title)s.%(ext)s"
--write-subs
#--write-subs
--embed-subs
--write-auto-subs
#--sub-langs all,-live_chat
--sub-langs "en.*"

View File

@ -81,11 +81,14 @@ setopt HIST_IGNORE_ALL_DUPS # do not put duplicated command into history list
setopt HIST_IGNORE_SPACE # Remove commands from history when the first character is a space
setopt HIST_SAVE_NO_DUPS # do not save duplicated command
setopt HIST_REDUCE_BLANKS # remove unnecessary blanks
setopt INC_APPEND_HISTORY_TIME # append command to history file immediately after execution
setopt EXTENDED_HISTORY # record command start time
setopt CORRECT # Correct spelling of commands
setopt CORRECT_ALL # Correct spelling of arguments
setopt INTERACTIVE_COMMENTS # can have comments at the prompt
setopt HIST_VERIFY # history expansions get verified in a new line
setopt SHARE_HISTORY # SHARE_HISTORY between zsh sessins
# disabled due to SHARE_HISTORY being used
#setopt INC_APPEND_HISTORY_TIME # append command to history file immediately after execution
setopt EXTENDED_HISTORY # record command start time
SAVEHIST=1000
HISTSIZE=1000
HISTFILE="$HOME/.local/share/zsh/zsh_history"