Merge branch 'master' of gitlab.com:chriscochrun/dotfiles

This commit is contained in:
Chris Cochrun 2021-04-12 20:15:01 -05:00
commit 2287ac931b
15 changed files with 107 additions and 11 deletions

View file

@ -22,7 +22,7 @@
(local keybindings (local keybindings
{ {
:globalkeys (gears.table.join :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"}) { :description "show help" :group "awesome"})
(awful.key [ modkey ] "Left" awful.tag.viewprev (awful.key [ modkey ] "Left" awful.tag.viewprev
{:description "view previous" :group "tag"}) {:description "view previous" :group "tag"})
@ -130,6 +130,9 @@
{:description "launch dired in new emacs frame" :group "apps" }) {:description "launch dired in new emacs frame" :group "apps" })
(awful.key [ modkey ] "x" (fn [] (awful.spawn "org-capture")) (awful.key [ modkey ] "x" (fn [] (awful.spawn "org-capture"))
{:description "launch scratchpad in new emacs frame" :group "apps" }) {: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)'")) (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" }) {: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)'")) (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")) (awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer"))
{:description "Open Writer" :group "apps" }) {:description "Open Writer" :group "apps" })
(awful.key [modkey] "b" (fn [] (awful.spawn "qutebrowser")) (awful.key [modkey] "b" (fn [] (awful.spawn "qutebrowser"))
{:description "launch qutebrowser" :group "apps"}) {:description "launch browser" :group "apps"})
;; rofi ;; rofi
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh")) (awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/launcher.sh"))
{:description "launch rofi" :group "launcher"}) {:description "launch rofi" :group "launcher"})
@ -157,6 +160,8 @@
{:description "search youtube" :group "launcher"}) {:description "search youtube" :group "launcher"})
(awful.key [modkey] "q" (fn [] (awful.spawn "dmqute")) (awful.key [modkey] "q" (fn [] (awful.spawn "dmqute"))
{:description "search internet through qutebrowser" :group "launcher"}) {:description "search internet through qutebrowser" :group "launcher"})
(awful.key [ modkey ] "s" (fn [] (awful.spawn "filesearch"))
{:description "search for files" :group "launcher" })
;; audio ;; audio
(awful.key [modkey] "a" (fn [] (awful.spawn "alacritty --class pulsemixer -e pulsemixer")) (awful.key [modkey] "a" (fn [] (awful.spawn "alacritty --class pulsemixer -e pulsemixer"))
{:description "launch pulsemixer" :group "audio"}) {:description "launch pulsemixer" :group "audio"})

View file

@ -57,6 +57,20 @@
:placement (+ awful.placement.no_offscreen awful.placement.centered) :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 ;; Pulsemixer center and smaller
{ {
:rule_any { :rule_any {

8
lolcate/config.toml Normal file
View file

@ -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)$"

View file

@ -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

17
lolcate/default/ignores Normal file
View file

@ -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/

View file

@ -1,6 +1,6 @@
[FileDialog] [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 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 lastVisited=file:///home/chris/Pictures
qtVersion=5.15.2 qtVersion=5.15.2
shortcuts=file:, file:///home/chris shortcuts=file:, file:///home/chris
sidebarWidth=116 sidebarWidth=116

View file

@ -148,13 +148,13 @@ element {
text-color: @base05; text-color: @base05;
orientation: horizontal; orientation: horizontal;
border-radius: 15px; border-radius: 15px;
padding: 5px 15px 5px 25px; padding: 5px 5px 5px 10px;
} }
element-icon { element-icon {
size: 20px; size: 20px;
border: 0px; border: 0px;
padding: 0px 10px 0px; padding: 0px 0px 0px;
} }
element-text { element-text {

View file

@ -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) "%"; }' \ 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) <(rg 'cpu ' /proc/stat) <(sleep 1;rg 'cpu ' /proc/stat)

View file

@ -42,7 +42,7 @@ histlist=$(printf '%s\n' "$(sqlite3 "$HISTDB" "${SQL}")" | awk -F "|" '{print
# Piping the above lists into dmenu. # Piping the above lists into dmenu.
# We use "printf '%s\n'" to format the array one item to a line. # 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. # 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. # What to do if the separator is chosen from the list.
# We simply launch qutebrowser without any url arguments. # We simply launch qutebrowser without any url arguments.

11
scripts/filesearch Executable file
View file

@ -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

View file

@ -1,5 +1,6 @@
#!/usr/bin/sh #!/usr/bin/sh
exec 3>&2 exec 3>&2
exec 2> /dev/null exec 2> /dev/null
btrfs fi usage / | rg Free | awk '{print $3}' btrfs fi usage / | rg Free | awk '{print $3}'

View file

@ -1,4 +1,4 @@
#!/usr/bin/sh #!/bin/sh
mbsync --all mbsync --all
mu index mu index

5
scripts/mutemic Executable file
View file

@ -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"

View file

@ -1,2 +1,2 @@
#!/usr/bin/sh #!/bin/sh
pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)' pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'

View file

@ -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.wiki https://en.wikipedia.org/wiki/Special:Search/
set searchurls.g https://www.google.com/search?q= set searchurls.g https://www.google.com/search?q=
set searchurls.d https://duckduckgo.com/?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.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.google https://www.google.com/search?q=
set searchurls.googlelucky https://www.google.com/search?btnI=I'm+Feeling+Lucky&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.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.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 searchurls.qwant https://www.qwant.com/?q=
set searchengine d set searchengine s
"" Quickmarks "" Quickmarks
set quickmark od https://odysee.com/$/following set quickmark od https://odysee.com/$/following