this is a lot of hoopla

This commit is contained in:
Chris Cochrun 2022-03-24 13:53:59 -05:00
parent 9a0fdfefa8
commit a8ee3f5c13
13 changed files with 151 additions and 42 deletions

View file

@ -170,7 +170,7 @@
{:description "select pass" :group "apps" }) {:description "select pass" :group "apps" })
(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 "qblof")) (awful.key [modkey] "b" (fn [] (awful.spawn "fflof"))
{:description "launch browser" :group "apps"}) {:description "launch browser" :group "apps"})
;; rofi ;; rofi
(awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh")) (awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))

View file

@ -191,7 +191,7 @@ the close button is positioned to the far right */
/* make urlbar rounded */ /* make urlbar rounded */
#urlbar{ #urlbar{
margin-top: 31px !important; margin-top: 36px !important;
padding-right: 10px !important; padding-right: 10px !important;
padding-left: 10px !important; padding-left: 10px !important;
} }
@ -206,7 +206,7 @@ the close button is positioned to the far right */
} }
#urlbar[breakout][breakout-extend] { #urlbar[breakout][breakout-extend] {
margin-top: 10px !important; margin-top: 15px !important;
top: 0px !important; top: 0px !important;
} }
@ -217,11 +217,11 @@ the close button is positioned to the far right */
} }
#nav-bar-customization-target{ #nav-bar-customization-target{
margin-top: -14px; margin-top: -19px;
} }
#nav-bar-overflow-button{ #nav-bar-overflow-button{
margin-top: -14px !important; margin-top: -19px !important;
} }
#PanelUI-button{ #PanelUI-button{
margin-top: -14px !important; margin-top: -19px !important;
} }

View file

@ -32,12 +32,12 @@
;; Create a function to launch mpv with given url ;; Create a function to launch mpv with given url
(defun mpv (url) (defun mpv (url)
"MPV launches with given url using the fast profile." "MPV launches with given url using the fast profile."
(uiop:run-program (list "mpv" "--profile=fast" url "&"))) (uiop:launch-program (list "mpv" "--profile=fast" url "&")))
;; Create a function to download videos with youtube-dl in alacritty ;; Create a function to download videos with youtube-dl in alacritty
(defun youtube-dl (url) (defun youtube-dl (url)
"Download videos and audio with youtube-dl in alacritty for feedback" "Download videos and audio with youtube-dl in alacritty for feedback"
(uiop:run-program (uiop:launch-program
(list "alacritty" "-e" "yt-dlp" "-o ~/Videos/%(title)s.%(ext)s" url))) (list "alacritty" "-e" "yt-dlp" "-o ~/Videos/%(title)s.%(ext)s" url)))
;; Let's create a function to hint videos, convert the url to a sting, and play them in MPV ;; Let's create a function to hint videos, convert the url to a sting, and play them in MPV

View file

@ -45,6 +45,6 @@ settings:
https://outlook.office.com?mailtouri=%25s: false https://outlook.office.com?mailtouri=%25s: false
https://staff.tfcconnection.org: true https://staff.tfcconnection.org: true
tabs.show: tabs.show:
global: always global: switching
zoom.default: zoom.default:
global: 100% global: 100%

View file

@ -0,0 +1,8 @@
https://yewtu.be/feed/subscriptions Subscriptions - YewTube
https://portal.azure.com/#@tfcconnection.org/dashboard/private/e5f3455d-3737-47d8-852b-1847a3b4801b Dashboard - Microsoft Azure
https://asciiflow.com/#/ ASCIIFlow
<<<<<<< HEAD
https://photos.cochrun.xyz/people/new PhotoPrism: People
https://staff.tfcconnection.org/apps/files/?dir=/TFC%20Documents&fileid=340 TFC Documents - Files - TFC Staff
https://www.tfcconnection.org/wp-login.php Log In Teens For Christ Connection — WordPress
https://icons8.com/icons/authors/SYgaDvCu3ALR/kiranshastry/external-kiranshastry-lineal-color-kiranshastry/external-man-accessories-kiranshastry-lineal-color-kiranshastry Man Accessories Icons free by kiranshastry Download available in PNG, PDF, SVG

View file

@ -1,7 +1,7 @@
[FileDialog] [FileDialog]
history=@Invalid() history=@Invalid()
lastVisited=file:///home/chris/nextcloud/tfc lastVisited=file:///home/chris/
qtVersion=5.15.2 qtVersion=5.15.3
shortcuts=file:, file:///home/chris, file:///home/chris/storage/tfc shortcuts=file:, file:///home/chris, file:///home/chris/storage/tfc
sidebarWidth=116 sidebarWidth=116
treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\x2\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x2L\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xff\0\0\0\x1\0\0\0\0\0\0\0X\0\0\0\x1\0\0\0\0\0\0\0X\0\0\0\x1\0\0\0\0\0\0\0\x9d\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff) treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\x2\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x2L\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xff\0\0\0\x1\0\0\0\0\0\0\0X\0\0\0\x1\0\0\0\0\0\0\0X\0\0\0\x1\0\0\0\0\0\0\0\x9d\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff)

View file

@ -22,8 +22,8 @@ configuration {
background-color: #00222b33; background-color: #00222b33;
background-entry: #000000; background-entry: #000000;
foreground-selected: #ffffff; foreground-selected: #ffffff;
urgent: #E91E63; urgent: @base08;
urgent-selected: #E91E63; urgent-selected: @base08;
transparent: #00000000; transparent: #00000000;
base00: #282a36; base00: #282a36;
base01: #34353e; base01: #34353e;

View file

@ -0,0 +1,83 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Diese Skript importiert ein Bild und setzt es auf die akutelle Seite.
Der Bildrahmen wird dem Bild angepasst und in den nicht-proportionalen Modus
gesetzt, das heisst, beliebige Verzerrungen sind moeglich.
Um das Bild proportional zu vergroessern, die STRG-Taste beim Bearbeiten druecken.
Tested with scribus 1.3.3.3
Author: Konrad Stania
LICENSE:
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
name
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
"""
import sys
try:
from scribus import *
except ImportError:
print("This script only runs from within Scribus.")
sys.exit(1)
def main():
#setRedraw(False)
pageX,pageY = getPageSize()
ImageFileName = fileDialog("Image Import", "*","" ,True, False)
Breite = pageX*0.8
Hoehe = Breite
if pageX >= pageY:
Breite = pageY*0.8
Hoehe = Breite
ImageFrame = createImage(pageX/2 - Breite/2, pageY/2 - Hoehe/2, Breite, Hoehe)
loadImage(ImageFileName, ImageFrame)
setScaleImageToFrame(True, False,ImageFrame)
setFillColor("None", ImageFrame)
setLineColor("None", ImageFrame)
scaleX,scaleY = getImageScale(ImageFrame)
if scaleX > scaleY:
Breite = Breite * scaleY / scaleX
sizeObject(Breite, Hoehe, ImageFrame)
setScaleImageToFrame(True, False,ImageFrame)
if scaleX < scaleY:
Hoehe = Hoehe * scaleX / scaleY
setScaleImageToFrame(True, False,ImageFrame)
sizeObject(Breite, Hoehe, ImageFrame)
#setRedraw(True)
if __name__ == '__main__':
if haveDoc():
main()
else:
messageBox("Image Import", "You need to have a document open <i>before</i> you can run this script succesfully.", ICON_INFORMATION)

View file

@ -5,7 +5,7 @@ if [ $(pgrep -c emacsclient) -gt 0 ]; then
if [ $XDG_SESSION_TYPE = "x11" ]; then if [ $XDG_SESSION_TYPE = "x11" ]; then
#X11 #X11
emacsrg=$(wmctrl -lx | rg emacs | rg -v org-agenda | awk '{print $1}') emacsrg=$(wmctrl -lx | rg emacs.Emacs | rg -v org-agenda | awk '{print $1}')
# echo $emacsrg # echo $emacsrg
if [ -z $emacsrg ]; then if [ -z $emacsrg ]; then

View file

@ -28,7 +28,8 @@ list_passwords() {
passwords=$(rbw list) passwords=$(rbw list)
prompt='search for passwords...' prompt='search for passwords...'
SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi $@ & if [ $XDG_SESSION_TYPE = "x11" ]; then
SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi $@ &
c=0 c=0
while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do
sleep .1 sleep .1
@ -36,6 +37,9 @@ SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu -theme ~/.config/rofi/la
[[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
done done
) )
else
SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi)
fi
# Ask whether pass, user or both are required # Ask whether pass, user or both are required
options=("Password" \ options=("Password" \
@ -44,7 +48,8 @@ options=("Password" \
"QR-Code" \ "QR-Code" \
"OTP") "OTP")
option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -p="..." -theme ~/.config/rofi/launchers-git/$style.rasi $@ & if [ $XDG_SESSION_TYPE = "x11" ]; then
option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -p="..." -theme ~/.config/rofi/launchers-git/$style.rasi $@ &
c=0 c=0
while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do
sleep .1 sleep .1
@ -52,27 +57,31 @@ option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -p="..." -theme ~/.conf
[[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
done done
) )
else
option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -p="..." -theme ~/.config/rofi/launchers-git/$style.rasi)
fi
# echo $option # echo $option
case ${option} in case ${option} in
Password ) Password )
# echo "${SECRET}" echo "${SECRET}"
ydotool type --next-delay 500 $(rbw get "${SECRET}") xdotool type $(rbw get "${SECRET}")
;; ;;
User ) User )
ydotool type --next-delay 500 "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')" echo "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
xdotool type "$(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')"
;; ;;
"User and password" ) "User and password" )
ydotool type --next-delay 500 $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}') xdotool type $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')
ydotool key TAB xdotool key Tab
ydotool type --next-delay 500 $(rbw get "${SECRET}") xdotool type $(rbw get "${SECRET}")
;; ;;
"QR-Code" ) "QR-Code" )
if [[ $SECRET =~ wifi$ ]]; then if [[ $SECRET =~ wifi$ ]]; then
# Produce a valid wifi QR-code # Produce a valid wifi QR-code
WIFISSID=$(pass get_user ${SECRET}) WIFISSID=$(pass get_user "${SECRET}")
WIFIPASS=$(pass get_pass ${SECRET}) WIFIPASS=$(pass get_pass "${SECRET}")
WIFIQR="WIFI:T:WPA;S:${WIFISSID};P:${WIFIPASS};;" WIFIQR="WIFI:T:WPA;S:${WIFISSID};P:${WIFIPASS};;"
qrencode -s 8 -o - $WIFIQR | feh --title "pass: QR-WIFI" - qrencode -s 8 -o - $WIFIQR | feh --title "pass: QR-WIFI" -
else else
@ -80,8 +89,8 @@ case ${option} in
pass show -q1 ${SECRET} pass show -q1 ${SECRET}
fi fi
;; ;;
"OTP" ) OTP )
ydotool type --next-delay 300 $(rbw code ${SECRET}) xdotool type $(rbw code "${SECRET}")
;; ;;
esac esac

View file

@ -37,7 +37,8 @@ else
echo not running echo not running
machine=$(hostname) machine=$(hostname)
if [ $machine = "syl" ]; then if [ $machine = "syl" ]; then
env GDK_DPI_SCALE=0.5 GDK_SCALE=2 nyxt # env GDK_DPI_SCALE=0.5 GDK_SCALE=2 nyxt
nyxt
else else
nyxt nyxt
fi fi

View file

@ -0,0 +1,8 @@
[Unit]
Description=ActivityWatch Service - Automatic Time Tracker
[Service]
ExecStart=/usr/bin/aw-qt
[Install]
WantedBy=default.target

View file

@ -87,7 +87,7 @@ binding_screenshot_interactive = <super> KEY_PRINT
binding_terminal = <super> KEY_ENTER binding_terminal = <super> KEY_ENTER
binding_pass = <super> KEY_P binding_pass = <super> KEY_P
command_agenda = emacsclient -e '(chris/org-agenda)' command_agenda = emacsclient -e '(chris/org-agenda)'
command_browser = qblof command_browser = fflof
command_dolphin = dolphin command_dolphin = dolphin
command_emacs = emacslof command_emacs = emacslof
command_kanshi = kanshi command_kanshi = kanshi