diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index 540e90c..1252e80 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -22,7 +22,7 @@ (local keybindings { :globalkeys (gears.table.join - (awful.key [ modkey ] "s" hotkeys_popup.show_help + (awful.key [ modkey shift ] "s" hotkeys_popup.show_help { :description "show help" :group "awesome"}) (awful.key [ modkey ] "Left" awful.tag.viewprev {:description "view previous" :group "tag"}) @@ -130,6 +130,9 @@ {:description "launch dired in new emacs frame" :group "apps" }) (awful.key [ modkey ] "x" (fn [] (awful.spawn "org-capture")) {:description "launch scratchpad in new emacs frame" :group "apps" }) + (awful.key [ modkey ] "v" (fn [] (awful.spawn "emacsclient -c -e '(org-agenda-list)' '(delete-other-windows)'" +{:name "*Org Agenda(a)*"})) + {:description "launch org-agenda in new emacs frame" :group "apps" }) (awful.key [ modkey alt ] "m" (fn [] (awful.spawn "emacsclient -c -e '(org-roam-capture)'")) {:description "launch org-roam-capture in new emacs frame" :group "apps" }) (awful.key [ modkey shift ] "x" (fn [] (awful.spawn "emacsclient -c -e '(doom/switch-to-scratch-buffer)'")) @@ -145,7 +148,7 @@ (awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer")) {:description "Open Writer" :group "apps" }) (awful.key [modkey] "b" (fn [] (awful.spawn "qutebrowser")) - {:description "launch qutebrowser" :group "apps"}) + {:description "launch browser" :group "apps"}) ;; rofi (awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh")) {:description "launch rofi" :group "launcher"}) @@ -157,6 +160,8 @@ {:description "search youtube" :group "launcher"}) (awful.key [modkey] "q" (fn [] (awful.spawn "dmqute")) {:description "search internet through qutebrowser" :group "launcher"}) + (awful.key [ modkey ] "s" (fn [] (awful.spawn "filesearch")) + {:description "search for files" :group "launcher" }) ;; audio (awful.key [modkey] "a" (fn [] (awful.spawn "alacritty --class pulsemixer -e pulsemixer")) {:description "launch pulsemixer" :group "audio"}) diff --git a/awesome/rules.fnl b/awesome/rules.fnl index 94d62d6..54ebf41 100644 --- a/awesome/rules.fnl +++ b/awesome/rules.fnl @@ -57,6 +57,20 @@ :placement (+ awful.placement.no_offscreen awful.placement.centered) } } + ;; Org-Agenda + { + :rule_any { + :name [ + "*Org Agenda(a)*" + ] + } + :properties { + :floating true + :raise true + :screen 1 + :placement (+ awful.placement.no_offscreen awful.placement.centered) + } + } ;; Pulsemixer center and smaller { :rule_any { diff --git a/lolcate/config.toml b/lolcate/config.toml new file mode 100644 index 0000000..742d8cb --- /dev/null +++ b/lolcate/config.toml @@ -0,0 +1,8 @@ +[types] +# Definition of custom path name types +# Examples: +img = ".*\\.(jp.?g|png|gif|JP.?G)$" +video = ".*\\.(flv|mp4|mp.?g|avi|wmv|mkv|3gp|m4v|asf|webm)$" +doc = ".*\\.(pdf|chm|epub|djvu?|mobi|azw3|odf|ods|md|tex|txt|adoc)$" +audio = ".*\\.(mp3|m4a|flac|ogg)$" + diff --git a/lolcate/default/config.toml b/lolcate/default/config.toml new file mode 100644 index 0000000..71279e0 --- /dev/null +++ b/lolcate/default/config.toml @@ -0,0 +1,34 @@ + +description = "" + +# Directories to index. +dirs = [ + "~/.dotfiles", + "~/org", + "~/Downloads", + "~/Documents", + "~/Pictures", + "~/Videos", + "~/Music", + "~/ebooks", + "~/.dotemacs", + "~/.emacs.d", +] + +Dirs = [ + "~/storage", + "~/Games", +] +# Set to "Dirs" or "Files" to skip directories or files. +# If unset, or set to "None", both files and directories will be included. +skip = "Dirs" + +# Set to true if you want skip symbolic links +ignore_symlinks = false + +# Set to true if you want to ignore hidden files and directories +ignore_hidden = false + +# Set to true to read .gitignore files and ignore matching files +gitignore = false + diff --git a/lolcate/default/ignores b/lolcate/default/ignores new file mode 100644 index 0000000..c24e448 --- /dev/null +++ b/lolcate/default/ignores @@ -0,0 +1,17 @@ +# Dirs / files to ignore. +# Use the same syntax as gitignore(5). +# Common patterns: +# + +.git +*~* + +#dirs +Games/ +storage/ +.spacemacs.d +.steampath +go/ +Documents/PersonalImportant/OABackupX/ +quicklisp/ +Nextcloud/ \ No newline at end of file diff --git a/qutebrowser/qsettings/QtProject.conf b/qutebrowser/qsettings/QtProject.conf index 8b59f68..c7b4004 100644 --- a/qutebrowser/qsettings/QtProject.conf +++ b/qutebrowser/qsettings/QtProject.conf @@ -1,6 +1,6 @@ [FileDialog] -history=file:///home/chris/storage/digikam/Photos/Camera/Camera, file:///home/chris/Pictures, file:///home/chris/Downloads, file:///home/chris/Pictures/tfc, file:///home/chris/tfc, file:///home/chris -lastVisited=file:///home/chris +history=file:///home/chris/Pictures, file:///home/chris/Downloads, file:///home/chris, file:///home/chris/Documents/TFC Stuff/newsletterpics, file:///home/chris/Videos/vimeo +lastVisited=file:///home/chris/Pictures qtVersion=5.15.2 shortcuts=file:, file:///home/chris sidebarWidth=116 diff --git a/rofi/launchers-git/blurry.rasi b/rofi/launchers-git/blurry.rasi index db65c38..13af5e1 100644 --- a/rofi/launchers-git/blurry.rasi +++ b/rofi/launchers-git/blurry.rasi @@ -148,13 +148,13 @@ element { text-color: @base05; orientation: horizontal; border-radius: 15px; - padding: 5px 15px 5px 25px; + padding: 5px 5px 5px 10px; } element-icon { size: 20px; border: 0px; - padding: 0px 10px 0px; + padding: 0px 0px 0px; } element-text { diff --git a/scripts/cpu b/scripts/cpu index b25e444..3499006 100755 --- a/scripts/cpu +++ b/scripts/cpu @@ -1,3 +1,3 @@ -#!/bin/sh +#!/bin/bash awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' \ <(rg 'cpu ' /proc/stat) <(sleep 1;rg 'cpu ' /proc/stat) diff --git a/scripts/dmqute b/scripts/dmqute index b48f386..432a888 100755 --- a/scripts/dmqute +++ b/scripts/dmqute @@ -42,7 +42,7 @@ histlist=$(printf '%s\n' "$(sqlite3 "$HISTDB" "${SQL}")" | awk -F "|" '{print # Piping the above lists into dmenu. # We use "printf '%s\n'" to format the array one item to a line. # The urls are listed quickmarks first, then the SEPARATOR, and then bookmarks. -choice=$(printf '%s\n' "$qmlist" "$SEPARATOR" "$bmlist" "$SEPARATOR" "$histlist" | rofi -font "VictorMono Nerd Font 30.0" -dmenu -p 'Qutebrowser open:') "$@" || exit +choice=$(printf '%s\n' "$qmlist" "$SEPARATOR" "$bmlist" "$SEPARATOR" "$histlist" | rofi -dmenu -p 'Qutebrowser open:' -config "/home/chris/.dotfiles/rofi/launchers-git/$style.rasi") "$@" || exit # What to do if the separator is chosen from the list. # We simply launch qutebrowser without any url arguments. diff --git a/scripts/filesearch b/scripts/filesearch new file mode 100755 index 0000000..f19f81b --- /dev/null +++ b/scripts/filesearch @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ $(hostname) = "syl" ]; then + style="laptop" + #echo "this is hidpi" +else + style="desktop" + #echo "this is not hidpi" +fi + +lolcate | rofi -dmenu -p "File Search:" -i -config ~/.dotfiles/rofi/launchers-git/$style.rasi -matching regex | xargs -r0 xdg-open diff --git a/scripts/fileusage b/scripts/fileusage index 39b3966..ef96ac5 100755 --- a/scripts/fileusage +++ b/scripts/fileusage @@ -1,5 +1,6 @@ #!/usr/bin/sh + exec 3>&2 exec 2> /dev/null btrfs fi usage / | rg Free | awk '{print $3}' diff --git a/scripts/mailsync b/scripts/mailsync index 8bd7ef6..9c9a13d 100755 --- a/scripts/mailsync +++ b/scripts/mailsync @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/bin/sh mbsync --all mu index diff --git a/scripts/mutemic b/scripts/mutemic new file mode 100755 index 0000000..090bff0 --- /dev/null +++ b/scripts/mutemic @@ -0,0 +1,5 @@ +#!/bin/sh + +pactl set-source-mute @DEFAULT_SOURCE@ toggle +paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga +notify-send "mic muted toggled" \ No newline at end of file diff --git a/scripts/pacprev b/scripts/pacprev index f96544a..1ada712 100755 --- a/scripts/pacprev +++ b/scripts/pacprev @@ -1,2 +1,2 @@ -#!/usr/bin/sh +#!/bin/sh pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)' diff --git a/tridactyl/tridactylrc b/tridactyl/tridactylrc index d3fc105..e6a55f3 100644 --- a/tridactyl/tridactylrc +++ b/tridactyl/tridactylrc @@ -17,6 +17,7 @@ set searchurls.o https://www.office.com/search?auth=2&q= set searchurls.wiki https://en.wikipedia.org/wiki/Special:Search/ set searchurls.g https://www.google.com/search?q= set searchurls.d https://duckduckgo.com/?q= +set searchurls.s https://search.cochrun.xyz/?q= set searchurls.ama https://smile.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords= set searchurls.google https://www.google.com/search?q= set searchurls.googlelucky https://www.google.com/search?btnI=I'm+Feeling+Lucky&q= @@ -36,7 +37,7 @@ set searchurls.osm https://www.openstreetmap.org/search?query= set searchurls.mdn https://developer.mozilla.org/en-US/search?q= set searchurls.gentoo_wiki https://wiki.gentoo.org/index.php?title=Special%3ASearch&profile=default&fulltext=Search&search= set searchurls.qwant https://www.qwant.com/?q= -set searchengine d +set searchengine s "" Quickmarks set quickmark od https://odysee.com/$/following