Adding lolcate and associated pieces for it

This commit is contained in:
Chris Cochrun 2021-04-12 20:12:55 -05:00
parent ae72f8222c
commit ac56e431b6
14 changed files with 105 additions and 10 deletions

View file

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

View file

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

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]
history=file:///home/chris/storage/digikam/Photos/Camera/Camera, file:///home/chris/Pictures, file:///home/chris/Downloads, file:///home/chris, file:///home/chris/Documents/TFC Stuff/newsletterpics
lastVisited=file:///home/chris/Documents/TFC Stuff/newsletterpics
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

View file

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

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) "%"; }' \
<(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.
# 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.

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
exec 3>&2
exec 2> /dev/null
btrfs fi usage / | rg Free | awk '{print $3}'

View file

@ -1,4 +1,4 @@
#!/usr/bin/sh
#!/bin/sh
mbsync --all
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)'