this is a lot of hoopla
This commit is contained in:
		
							parent
							
								
									9a0fdfefa8
								
							
						
					
					
						commit
						a8ee3f5c13
					
				
					 13 changed files with 151 additions and 42 deletions
				
			
		| 
						 | 
				
			
			@ -170,7 +170,7 @@
 | 
			
		|||
                                {:description "select pass" :group "apps" })
 | 
			
		||||
                     (awful.key [ modkey shift ] "w" (fn [] (awful.spawn "libreoffice --writer"))
 | 
			
		||||
                                {: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"})
 | 
			
		||||
                     ;; rofi
 | 
			
		||||
                     (awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -191,7 +191,7 @@ the close button is positioned to the far right */
 | 
			
		|||
 | 
			
		||||
/* make urlbar rounded */
 | 
			
		||||
#urlbar{
 | 
			
		||||
    margin-top: 31px !important;
 | 
			
		||||
    margin-top: 36px !important;
 | 
			
		||||
    padding-right: 10px !important;
 | 
			
		||||
    padding-left: 10px !important;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -206,7 +206,7 @@ the close button is positioned to the far right */
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
#urlbar[breakout][breakout-extend] {
 | 
			
		||||
    margin-top: 10px !important;
 | 
			
		||||
    margin-top: 15px !important;
 | 
			
		||||
    top: 0px !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -217,11 +217,11 @@ the close button is positioned to the far right */
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
#nav-bar-customization-target{
 | 
			
		||||
    margin-top: -14px;
 | 
			
		||||
    margin-top: -19px;
 | 
			
		||||
}
 | 
			
		||||
#nav-bar-overflow-button{
 | 
			
		||||
    margin-top: -14px !important;
 | 
			
		||||
    margin-top: -19px !important;
 | 
			
		||||
}
 | 
			
		||||
#PanelUI-button{
 | 
			
		||||
    margin-top: -14px !important;
 | 
			
		||||
    margin-top: -19px !important;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,12 +32,12 @@
 | 
			
		|||
;; Create a function to launch mpv with given url
 | 
			
		||||
(defun mpv (url)
 | 
			
		||||
  "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
 | 
			
		||||
(defun youtube-dl (url)
 | 
			
		||||
  "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)))
 | 
			
		||||
 | 
			
		||||
;; Let's create a function to hint videos, convert the url to a sting, and play them in MPV
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,6 +45,6 @@ settings:
 | 
			
		|||
    https://outlook.office.com?mailtouri=%25s: false
 | 
			
		||||
    https://staff.tfcconnection.org: true
 | 
			
		||||
  tabs.show:
 | 
			
		||||
    global: always
 | 
			
		||||
    global: switching
 | 
			
		||||
  zoom.default:
 | 
			
		||||
    global: 100%
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										8
									
								
								qutebrowser/bookmarks/#%2Aediff-merge%2A#8ALfXt#
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								qutebrowser/bookmarks/#%2Aediff-merge%2A#8ALfXt#
									
										
									
									
									
										Normal 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
 | 
			
		||||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
[FileDialog]
 | 
			
		||||
history=@Invalid()
 | 
			
		||||
lastVisited=file:///home/chris/nextcloud/tfc
 | 
			
		||||
qtVersion=5.15.2
 | 
			
		||||
lastVisited=file:///home/chris/
 | 
			
		||||
qtVersion=5.15.3
 | 
			
		||||
shortcuts=file:, file:///home/chris, file:///home/chris/storage/tfc
 | 
			
		||||
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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,8 +22,8 @@ configuration {
 | 
			
		|||
    background-color:               #00222b33;
 | 
			
		||||
    background-entry:               #000000;
 | 
			
		||||
    foreground-selected:            #ffffff;
 | 
			
		||||
    urgent:                         #E91E63;
 | 
			
		||||
    urgent-selected:                #E91E63;
 | 
			
		||||
    urgent:                         @base08;
 | 
			
		||||
    urgent-selected:                @base08;
 | 
			
		||||
    transparent:                    #00000000;
 | 
			
		||||
    base00:                         #282a36;
 | 
			
		||||
    base01:                         #34353e;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										83
									
								
								scripts/PIL-ImageImport.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								scripts/PIL-ImageImport.py
									
										
									
									
									
										Normal 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)
 | 
			
		||||
| 
						 | 
				
			
			@ -5,7 +5,7 @@ if [ $(pgrep -c emacsclient) -gt 0 ]; then
 | 
			
		|||
    
 | 
			
		||||
    if [ $XDG_SESSION_TYPE = "x11" ]; then
 | 
			
		||||
        #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
 | 
			
		||||
 | 
			
		||||
        if [ -z $emacsrg ]; then
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,14 +28,18 @@ list_passwords() {
 | 
			
		|||
passwords=$(rbw list)
 | 
			
		||||
 | 
			
		||||
prompt='search for passwords...'
 | 
			
		||||
SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi $@ &
 | 
			
		||||
         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
 | 
			
		||||
             sleep .1 
 | 
			
		||||
             c=$((c+1))
 | 
			
		||||
             [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
 | 
			
		||||
         done
 | 
			
		||||
      )
 | 
			
		||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
 | 
			
		||||
    SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi $@ &
 | 
			
		||||
             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
 | 
			
		||||
                 sleep .1 
 | 
			
		||||
                 c=$((c+1))
 | 
			
		||||
                 [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
 | 
			
		||||
             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
 | 
			
		||||
options=("Password" \
 | 
			
		||||
| 
						 | 
				
			
			@ -44,35 +48,40 @@ options=("Password" \
 | 
			
		|||
             "QR-Code" \
 | 
			
		||||
	     "OTP")
 | 
			
		||||
 | 
			
		||||
option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -p="..." -theme ~/.config/rofi/launchers-git/$style.rasi $@ &
 | 
			
		||||
         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
 | 
			
		||||
             sleep .1 
 | 
			
		||||
             c=$((c+1))
 | 
			
		||||
             [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
 | 
			
		||||
         done
 | 
			
		||||
      )
 | 
			
		||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
 | 
			
		||||
    option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -p="..." -theme ~/.config/rofi/launchers-git/$style.rasi $@ &
 | 
			
		||||
             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
 | 
			
		||||
                 sleep .1 
 | 
			
		||||
                 c=$((c+1))
 | 
			
		||||
                 [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
 | 
			
		||||
             done
 | 
			
		||||
          )
 | 
			
		||||
else
 | 
			
		||||
    option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -p="..." -theme ~/.config/rofi/launchers-git/$style.rasi)
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# echo $option
 | 
			
		||||
 | 
			
		||||
case ${option} in
 | 
			
		||||
    Password )
 | 
			
		||||
	# echo "${SECRET}"
 | 
			
		||||
	ydotool type --next-delay 500 $(rbw get "${SECRET}")
 | 
			
		||||
	echo "${SECRET}"
 | 
			
		||||
	xdotool type $(rbw get "${SECRET}")
 | 
			
		||||
	;;
 | 
			
		||||
    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" )
 | 
			
		||||
	ydotool type --next-delay 500 $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')
 | 
			
		||||
	ydotool key TAB
 | 
			
		||||
	ydotool type --next-delay 500 $(rbw get "${SECRET}")
 | 
			
		||||
	xdotool type $(rbw get --full "${SECRET}" | rg Username: | awk '{print $2}')
 | 
			
		||||
	xdotool key Tab
 | 
			
		||||
	xdotool type $(rbw get "${SECRET}")
 | 
			
		||||
	;;
 | 
			
		||||
    "QR-Code" )
 | 
			
		||||
	if [[ $SECRET =~ wifi$ ]]; then
 | 
			
		||||
	    # Produce a valid wifi QR-code
 | 
			
		||||
	    WIFISSID=$(pass get_user ${SECRET})
 | 
			
		||||
	    WIFIPASS=$(pass get_pass ${SECRET})
 | 
			
		||||
	    WIFISSID=$(pass get_user "${SECRET}")
 | 
			
		||||
	    WIFIPASS=$(pass get_pass "${SECRET}")
 | 
			
		||||
	    WIFIQR="WIFI:T:WPA;S:${WIFISSID};P:${WIFIPASS};;"
 | 
			
		||||
	    qrencode -s 8 -o - $WIFIQR | feh --title "pass: QR-WIFI" -
 | 
			
		||||
	else
 | 
			
		||||
| 
						 | 
				
			
			@ -80,8 +89,8 @@ case ${option} in
 | 
			
		|||
	    pass show -q1 ${SECRET}
 | 
			
		||||
	fi
 | 
			
		||||
	;;
 | 
			
		||||
    "OTP" )
 | 
			
		||||
	ydotool type --next-delay 300 $(rbw code ${SECRET})
 | 
			
		||||
    OTP )
 | 
			
		||||
	xdotool type $(rbw code "${SECRET}")
 | 
			
		||||
	;;
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,7 +37,8 @@ else
 | 
			
		|||
    echo not running
 | 
			
		||||
    machine=$(hostname)
 | 
			
		||||
    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
 | 
			
		||||
        nyxt
 | 
			
		||||
    fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										8
									
								
								systemd/user/aw-qt.service
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								systemd/user/aw-qt.service
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,8 @@
 | 
			
		|||
[Unit]
 | 
			
		||||
Description=ActivityWatch Service - Automatic Time Tracker
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
ExecStart=/usr/bin/aw-qt
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=default.target
 | 
			
		||||
| 
						 | 
				
			
			@ -87,7 +87,7 @@ binding_screenshot_interactive = <super> KEY_PRINT
 | 
			
		|||
binding_terminal = <super> KEY_ENTER
 | 
			
		||||
binding_pass = <super> KEY_P
 | 
			
		||||
command_agenda = emacsclient -e '(chris/org-agenda)'
 | 
			
		||||
command_browser = qblof
 | 
			
		||||
command_browser = fflof
 | 
			
		||||
command_dolphin = dolphin
 | 
			
		||||
command_emacs = emacslof
 | 
			
		||||
command_kanshi = kanshi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue