From a0b4fbcbfa77744a93164d48060430347b3344fc Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sat, 27 Feb 2021 09:38:58 -0600 Subject: [PATCH 1/3] Adding flameshot keybinding for awesome --- awesome/keybindings.fnl | 2 ++ qutebrowser/autoconfig.yml | 1 + qutebrowser/qsettings/QtProject.conf | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index fe844a2..3c4baca 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -111,6 +111,8 @@ ;; utilities (awful.key [] "Print" (fn [] (awful.spawn "flameshot gui")) {:description "screenshot" :group "utilities"}) + (awful.key [modkey shift] "p" (fn [] (awful.spawn "flameshot gui")) + {:description "screenshot" :group "utilities"}) (awful.key [ modkey ] "." (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/emoji.sh")) {:description "emoji picker" :group "utilities"}) (awful.key [] "XF86MonBrightnessUp" (fn [] (awful.spawn diff --git a/qutebrowser/autoconfig.yml b/qutebrowser/autoconfig.yml index b9e72fa..e970977 100644 --- a/qutebrowser/autoconfig.yml +++ b/qutebrowser/autoconfig.yml @@ -11,4 +11,5 @@ settings: content.notifications: https://jelly.cochrun.xyz: true https://nc.cochrun.xyz: false + https://www.facebook.com: false https://www.reddit.com: false diff --git a/qutebrowser/qsettings/QtProject.conf b/qutebrowser/qsettings/QtProject.conf index 633a489..3433118 100644 --- a/qutebrowser/qsettings/QtProject.conf +++ b/qutebrowser/qsettings/QtProject.conf @@ -1,6 +1,6 @@ [FileDialog] history=file:///home/chris/Downloads, file:///home/chris/Downloads/Takeout/Contacts/All Contacts, file:///home/chris/Pictures/Newsletter, file:///home/chris/org, file:///home/chris/storage/digikam/Photos/Camera/Camera -lastVisited=file:///home/chris/org +lastVisited=file:///home/chris/Downloads qtVersion=5.15.2 shortcuts=file:, file:///home/chris sidebarWidth=116 From 4d9efc547a83316b8c1f90311f612bd563e2dec6 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sat, 27 Feb 2021 09:42:34 -0600 Subject: [PATCH 2/3] Adding flameshot keybinding for awesome --- awesome/keybindings.fnl | 2 ++ qutebrowser/qsettings/QtProject.conf | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index 2c2f8e7..e4f3097 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -111,6 +111,8 @@ ;; utilities (awful.key [] "Print" (fn [] (awful.spawn "flameshot gui")) {:description "screenshot" :group "utilities"}) + (awful.key [modkey shift] "p" (fn [] (awful.spawn "flameshot gui")) + {:description "screenshot" :group "utilities"}) (awful.key [ modkey ] "." (fn [] (awful.spawn "/home/chris/.dotfiles/rofi/launchers-git/emoji.sh")) {:description "emoji picker" :group "utilities"}) (awful.key [] "XF86MonBrightnessUp" (fn [] (awful.spawn diff --git a/qutebrowser/qsettings/QtProject.conf b/qutebrowser/qsettings/QtProject.conf index 7e9b149..3433118 100644 --- a/qutebrowser/qsettings/QtProject.conf +++ b/qutebrowser/qsettings/QtProject.conf @@ -1,6 +1,6 @@ [FileDialog] -history=file:///home/chris/Pictures/Newsletter, file:///home/chris/org, file:///home/chris/storage/digikam/Photos/Camera/Camera, file:///home/chris/Pictures, file:///home/chris -lastVisited=file:///home/chris/storage/digikam/Photos/Camera/Camera +history=file:///home/chris/Downloads, file:///home/chris/Downloads/Takeout/Contacts/All Contacts, file:///home/chris/Pictures/Newsletter, file:///home/chris/org, file:///home/chris/storage/digikam/Photos/Camera/Camera +lastVisited=file:///home/chris/Downloads qtVersion=5.15.2 shortcuts=file:, file:///home/chris sidebarWidth=116 From 2924585a753cc13f15335dea3e92255499735611 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 2 Mar 2021 14:12:29 -0600 Subject: [PATCH 3/3] Making rofi-pass use proper rofi and feh --- rofi/rofi-pass/config | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rofi/rofi-pass/config b/rofi/rofi-pass/config index 95b31b7..125a1ce 100644 --- a/rofi/rofi-pass/config +++ b/rofi/rofi-pass/config @@ -2,9 +2,17 @@ # which can be switched at runtime with shift+left/right # root=/path/to/root +if [ $(hostname) = "chris-linuxlaptop" ]; then + style="laptop" + #echo "this is hidpi" +else + style="desktop" + #echo "this is not hidpi" +fi + # rofi command. Make sure to have "$@" as last argument _rofi () { - rofi -i -no-auto-select "$@" + rofi -i -no-auto-select -theme launchers-git/"$style".rasi "$@" } # default command to generate passwords @@ -16,7 +24,7 @@ _pwgen () { # qrencode is needed to generate the image and a viewer # that can read from pipes. Known viewers to work are feh and display _image_viewer () { - sxiv - + feh -g 600x600 --zoom fill - # display }