All kinds of idk changes with idk stuff!
This commit is contained in:
		
							parent
							
								
									9e5f0ad759
								
							
						
					
					
						commit
						131bb57ac3
					
				
					 25 changed files with 245 additions and 68 deletions
				
			
		| 
						 | 
				
			
			@ -20,6 +20,8 @@ window:
 | 
			
		|||
  #dimensions:
 | 
			
		||||
  #  columns: 0
 | 
			
		||||
  #  lines: 0
 | 
			
		||||
  opacity: 0.70
 | 
			
		||||
  dynamic_title: true
 | 
			
		||||
 | 
			
		||||
  # Window position (changes require restart)
 | 
			
		||||
  #
 | 
			
		||||
| 
						 | 
				
			
			@ -252,9 +254,11 @@ font:
 | 
			
		|||
  #indexed_colors: []
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
transparent_background_colors: true
 | 
			
		||||
draw_bold_text_with_bright_colors: true
 | 
			
		||||
 | 
			
		||||
colors:
 | 
			
		||||
  transparent_background_colors: true
 | 
			
		||||
 | 
			
		||||
  primary:
 | 
			
		||||
    background: '#282a36'
 | 
			
		||||
| 
						 | 
				
			
			@ -318,7 +322,6 @@ colors:
 | 
			
		|||
#
 | 
			
		||||
# Window opacity as a floating point number from `0.0` to `1.0`.
 | 
			
		||||
# The value `0.0` is completely transparent and `1.0` is opaque.
 | 
			
		||||
background_opacity: 0.75
 | 
			
		||||
 | 
			
		||||
#selection:
 | 
			
		||||
  #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
 | 
			
		||||
| 
						 | 
				
			
			@ -327,7 +330,6 @@ background_opacity: 0.75
 | 
			
		|||
  #save_to_clipboard: false
 | 
			
		||||
 | 
			
		||||
# Allow terminal applications to change Alacritty's window title.
 | 
			
		||||
window.dynamic_title: true
 | 
			
		||||
 | 
			
		||||
#cursor:
 | 
			
		||||
  # Cursor style
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
Subproject commit 048cf41e0aa5a391948d62e6168d6e54279cf627
 | 
			
		||||
Subproject commit 0fb85341916b6de1c5cd6ddf3e8472292a93a303
 | 
			
		||||
| 
						 | 
				
			
			@ -52,11 +52,11 @@
 | 
			
		|||
(local bling (require "bling"))
 | 
			
		||||
;; (local awestore (require "awestore"))
 | 
			
		||||
 | 
			
		||||
(set naughty.config.defaults.position "top_middle")
 | 
			
		||||
(set naughty.config.defaults.position "bottom_middle")
 | 
			
		||||
(set naughty.config.defaults.margin 10)
 | 
			
		||||
(set naughty.config.defaults.border_width 0)
 | 
			
		||||
(set naughty.config.defaults.hover_timeout 5)
 | 
			
		||||
(set naughty.config.defaults.max_width (dpi 500))
 | 
			
		||||
(set naughty.config.defaults.hover_timeout 3)
 | 
			
		||||
(set naughty.config.defaults.max_width (dpi 700))
 | 
			
		||||
 | 
			
		||||
;; {
 | 
			
		||||
;;  :rule { }
 | 
			
		||||
| 
						 | 
				
			
			@ -87,12 +87,12 @@
 | 
			
		|||
                                                (if (= "syl\n" stdout)
 | 
			
		||||
                                                    (global laptop true)
 | 
			
		||||
                                                    (global laptop false))))
 | 
			
		||||
(local laptop false)
 | 
			
		||||
(local laptop true)
 | 
			
		||||
 | 
			
		||||
;; Table of layouts to cover with awful.layout.inc, order matters.
 | 
			
		||||
(set awful.layout.layouts [
 | 
			
		||||
                           awful.layout.suit.tile
 | 
			
		||||
                           bling.layout.mstab
 | 
			
		||||
                           awful.layout.suit.tile
 | 
			
		||||
                           bling.layout.centered
 | 
			
		||||
                           awful.layout.suit.floating
 | 
			
		||||
                           ;; awful.layout.suit.tile.left
 | 
			
		||||
| 
						 | 
				
			
			@ -111,6 +111,8 @@
 | 
			
		|||
                           ;; awful.layout.suit.corner.se
 | 
			
		||||
                           ])
 | 
			
		||||
 | 
			
		||||
;; (set mstab_tabbar_height 500)
 | 
			
		||||
 | 
			
		||||
;; Menu
 | 
			
		||||
;; Create a launcher widget and a main menu
 | 
			
		||||
(global myawesomemenu [
 | 
			
		||||
| 
						 | 
				
			
			@ -169,7 +171,7 @@
 | 
			
		|||
     (awful.tag [ "   " "   " "   " "   " ] s (. awful.layout.layouts 1))
 | 
			
		||||
 | 
			
		||||
     ;; Make buffers on all sides so that tiled clients aren't pushed to edges
 | 
			
		||||
     (set s.padding (dpi 10))
 | 
			
		||||
     (set s.padding (dpi 0))
 | 
			
		||||
 | 
			
		||||
     ;; Create a promptbox for each screen
 | 
			
		||||
     (set s.mypromptbox (awful.widget.prompt))
 | 
			
		||||
| 
						 | 
				
			
			@ -358,6 +360,23 @@
 | 
			
		|||
                          :widget wibox.container.margin
 | 
			
		||||
                          :right (dpi 5)})
 | 
			
		||||
 | 
			
		||||
     (set s.brighttext (awful.widget.watch "light" 15))
 | 
			
		||||
     (set s.brightspace (wibox.widget.textbox "  "))
 | 
			
		||||
     (set s.brighticon (wibox.widget.textbox " ﯧ"))
 | 
			
		||||
     (set s.brightwidget {1 {1 {1 (wibox.widget {
 | 
			
		||||
                                                 1 s.brighticon
 | 
			
		||||
                                                 2 s.brighttext
 | 
			
		||||
                                                 3 s.brightspace
 | 
			
		||||
                                                 :layout wibox.layout.fixed.horizontal})
 | 
			
		||||
                              :widget wibox.container.margin
 | 
			
		||||
                              :left (dpi 5)}
 | 
			
		||||
                           :widget wibox.container.background
 | 
			
		||||
                           :shape gears.shape.rounded_bar
 | 
			
		||||
                           :bg beautiful.transparent
 | 
			
		||||
                             :fg beautiful.base0B}
 | 
			
		||||
                          :widget wibox.container.margin
 | 
			
		||||
                          :right (dpi 5)})
 | 
			
		||||
 | 
			
		||||
     (set s.volumetext (awful.widget.watch "pamixer --get-volume-human" 0.5))
 | 
			
		||||
     (set s.mictext (awful.widget.watch "pamixer --default-source --get-volume-human" 1))
 | 
			
		||||
     (set s.volumeicon (wibox.widget.textbox "  "))
 | 
			
		||||
| 
						 | 
				
			
			@ -512,15 +531,15 @@
 | 
			
		|||
     (set s.myrightwidgets {
 | 
			
		||||
                            1 {
 | 
			
		||||
                               :layout wibox.layout.fixed.horizontal
 | 
			
		||||
                               1 s.pingwidget
 | 
			
		||||
                               2 s.netwidget
 | 
			
		||||
                               3 s.mailwidget
 | 
			
		||||
                               4 s.memwidget
 | 
			
		||||
                               5 s.cpuwidget
 | 
			
		||||
                               6 s.volumewidget
 | 
			
		||||
                               7 (if laptop s.batterywidget s.myemptywidget)
 | 
			
		||||
                               8 (if (= s.index 1) s.mysystray)
 | 
			
		||||
                               9 s.mylayoutbox
 | 
			
		||||
                               ;;1 s.pingwidget
 | 
			
		||||
                               1 s.brightwidget
 | 
			
		||||
                               2 s.mailwidget
 | 
			
		||||
                               3 s.memwidget
 | 
			
		||||
                               4 s.cpuwidget
 | 
			
		||||
                               5 s.volumewidget
 | 
			
		||||
                               6 (if laptop s.batterywidget s.myemptywidget)
 | 
			
		||||
                               7 (if (= s.index 1) s.mysystray)
 | 
			
		||||
                               8 s.mylayoutbox
 | 
			
		||||
                               }
 | 
			
		||||
                            :widget wibox.container.margin
 | 
			
		||||
                            :top (dpi 1)
 | 
			
		||||
| 
						 | 
				
			
			@ -528,7 +547,7 @@
 | 
			
		|||
                            })
 | 
			
		||||
 | 
			
		||||
     (local yoffset (dpi 45)) ;; variables to be used for placing the wibox
 | 
			
		||||
     (local xoffset (dpi 26))
 | 
			
		||||
     (local xoffset (dpi 16))
 | 
			
		||||
     ;; Create the wibox
 | 
			
		||||
     (set s.mywibox (wibox {;; since we are using a wibox we have a lot we need to set
 | 
			
		||||
                            ;; as opposed to what we normally need to do with a wibar
 | 
			
		||||
| 
						 | 
				
			
			@ -537,7 +556,7 @@
 | 
			
		|||
                            :y (- s.geometry.height yoffset)
 | 
			
		||||
                            :height (dpi 33)
 | 
			
		||||
                            :width (- s.geometry.width (* xoffset 2))
 | 
			
		||||
                            :ontop false
 | 
			
		||||
                            :ontop true
 | 
			
		||||
                            :stretch false
 | 
			
		||||
                            :type "dock"
 | 
			
		||||
                            :shape gears.shape.rounded_bar
 | 
			
		||||
| 
						 | 
				
			
			@ -546,7 +565,7 @@
 | 
			
		|||
                            :opacity 0.9
 | 
			
		||||
                            :screen s }))
 | 
			
		||||
 | 
			
		||||
     (: s.mywibox :struts { :bottom (dpi 40) })
 | 
			
		||||
     (: s.mywibox :struts { :bottom (dpi 50) })
 | 
			
		||||
 | 
			
		||||
     ;; Add widgets to the wibox
 | 
			
		||||
     (: s.mywibox :setup {
 | 
			
		||||
| 
						 | 
				
			
			@ -671,29 +690,14 @@
 | 
			
		|||
 | 
			
		||||
     (: c :activate [])))
 | 
			
		||||
 | 
			
		||||
(client.connect_signal "property::maximized"
 | 
			
		||||
                       (fn [c]
 | 
			
		||||
                           (let [s c.screen]
 | 
			
		||||
                             (set s.mywibox (wibox {;; since we are using a wibox we have a lot we need to set
 | 
			
		||||
                                                    ;; as opposed to what we normally need to do with a wibar
 | 
			
		||||
                                                    :position "bottom"
 | 
			
		||||
                                                    :x 0
 | 
			
		||||
                                                    :y s.geometry.height
 | 
			
		||||
                                                    :height (dpi 33)
 | 
			
		||||
                                                    :width s.geometry.width
 | 
			
		||||
                                                    :ontop false
 | 
			
		||||
                                                    :stretch false
 | 
			
		||||
                                                    :type "dock"
 | 
			
		||||
                                                    :shape gears.shape.rectangle
 | 
			
		||||
                                                    :bg beautiful.bg_normal
 | 
			
		||||
                                                    :fg beautiful.fg_normal
 | 
			
		||||
                                                    :opacity 0.9})))))
 | 
			
		||||
 | 
			
		||||
;; make fullscreen clients no longer rounded windows
 | 
			
		||||
;; make fullscreen clients no longer rounded and back afterwards
 | 
			
		||||
(client.connect_signal "property::fullscreen"
 | 
			
		||||
                       (fn [c]
 | 
			
		||||
                           (set c.shape (fn [cr w h]
 | 
			
		||||
                                            (gears.shape.rectangle cr w h)))))
 | 
			
		||||
                         (if c.fullscreen
 | 
			
		||||
                             (set c.shape (fn [cr w h]
 | 
			
		||||
                                            (gears.shape.rectangle cr w h)))
 | 
			
		||||
                             (set c.shape (fn [cr w h]
 | 
			
		||||
                                            (gears.shape.rounded_rect cr w h (dpi 15)))))))
 | 
			
		||||
 | 
			
		||||
(client.connect_signal "focus" (fn [c] (set c.border_color beautiful.border_focus)))
 | 
			
		||||
(client.connect_signal "unfocus" (fn [c] (set c.border_color beautiful.border_normal)))
 | 
			
		||||
| 
						 | 
				
			
			@ -716,4 +720,3 @@
 | 
			
		|||
(awful.spawn.once "nm-applet")
 | 
			
		||||
(awful.spawn.once "xcape -e 'Super_L=Super_L|Control_L|Escape'")
 | 
			
		||||
(awful.spawn.once "xcape -e 'Alt_L=Super_L|W'")
 | 
			
		||||
;; (awful.spawn.once "latte-dock")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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 "fflof"))
 | 
			
		||||
                     (awful.key [modkey] "b" (fn [] (awful.spawn "qblof"))
 | 
			
		||||
                                {:description "launch browser" :group "apps"})
 | 
			
		||||
                     ;; rofi
 | 
			
		||||
                     (awful.key [] "Menu" (fn [] (awful.spawn "/home/chris/.config/rofi/launchers-git/launcher.sh"))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -182,6 +182,9 @@
 | 
			
		|||
                                  "Arandr"
 | 
			
		||||
                                  "gcr-prompter"
 | 
			
		||||
                                  "ffplay"
 | 
			
		||||
                                  "Junction"
 | 
			
		||||
                                  "junction"
 | 
			
		||||
                                  "pinentry-qt"
 | 
			
		||||
                                  ]
 | 
			
		||||
                          :name [
 | 
			
		||||
                                 "Event Tester"
 | 
			
		||||
| 
						 | 
				
			
			@ -192,7 +195,11 @@
 | 
			
		|||
                          :role [
 | 
			
		||||
                                 "pop-up"
 | 
			
		||||
                                 "GtkFileChooserDialog"
 | 
			
		||||
                                 ]}
 | 
			
		||||
                                 ]
 | 
			
		||||
                          :instance [
 | 
			
		||||
                                     "junction"
 | 
			
		||||
                                     "Junction"
 | 
			
		||||
                                     ]}
 | 
			
		||||
               :properties {
 | 
			
		||||
                            :floating true
 | 
			
		||||
                            :raise true
 | 
			
		||||
| 
						 | 
				
			
			@ -216,6 +223,12 @@
 | 
			
		|||
                                 "OpenLP"
 | 
			
		||||
                                 ]
 | 
			
		||||
                          }
 | 
			
		||||
               :except_any {
 | 
			
		||||
                            :name [
 | 
			
		||||
                                   "Configure OpenLP"
 | 
			
		||||
                                   "OpenLP - "
 | 
			
		||||
                                   ]
 | 
			
		||||
                            }
 | 
			
		||||
               :properties {
 | 
			
		||||
                            :fullscreen true
 | 
			
		||||
                            :raise true
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,6 +10,7 @@ local gears = require('gears')
 | 
			
		|||
local gfs = require("gears.filesystem")
 | 
			
		||||
local themes_path = gfs.get_themes_dir()
 | 
			
		||||
local wallpaperdir = "/home/chris/Pictures/wallpapers/"
 | 
			
		||||
local bling = require "bling"
 | 
			
		||||
 | 
			
		||||
local theme = {}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -122,11 +123,10 @@ theme.mstab_dont_resize_slaves = false       -- whether the tabbed stack windows
 | 
			
		|||
-- If you want a custom value. Set it to the number of pixels (int)
 | 
			
		||||
 | 
			
		||||
theme.mstab_tabbar_height = 400
 | 
			
		||||
theme.tabbar_radius = 40
 | 
			
		||||
theme.tabbar_bg_normal = theme.bg_normal
 | 
			
		||||
theme.tabbar_fg_normal = theme.fg_normal
 | 
			
		||||
theme.tabbar_bg_focus = theme.bg_focus
 | 
			
		||||
theme.tabbar_fg_focus = theme.fg_focus
 | 
			
		||||
-- theme.tabbar_bg_normal = theme.bg_normal
 | 
			
		||||
-- theme.tabbar_fg_normal = theme.fg_normal
 | 
			
		||||
-- theme.tabbar_bg_focus = theme.bg_focus
 | 
			
		||||
-- theme.tabbar_fg_focus = theme.fg_focus
 | 
			
		||||
theme.mstab_border_radius = 50              -- border radius of the tabbar
 | 
			
		||||
 | 
			
		||||
theme.mstab_bar_padding = "default"         -- how much padding there should be between clients and your tabbar
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -213,6 +213,7 @@ alias mpf "mpv --profile=fast"
 | 
			
		|||
alias suspend "systemctl suspend"
 | 
			
		||||
alias ec "emacsclient -t"
 | 
			
		||||
alias ecc "emacsclient -c"
 | 
			
		||||
alias mkdir "mkdir -pv"
 | 
			
		||||
 | 
			
		||||
### Start X at login
 | 
			
		||||
if status is-login
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,8 @@
 | 
			
		|||
# Suppress built-in key bindings, and specify them explicitly in this
 | 
			
		||||
# config file.
 | 
			
		||||
suppress_default_binds = true
 | 
			
		||||
width = 1920
 | 
			
		||||
height = 1080
 | 
			
		||||
 | 
			
		||||
[aliases]
 | 
			
		||||
# Define aliases here. Any arguments passed to an alias are appended to the
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ osc=no
 | 
			
		|||
vo=gpu
 | 
			
		||||
af=scaletempo2
 | 
			
		||||
autofit=90%
 | 
			
		||||
geometry=90%:90%
 | 
			
		||||
geometry=80%:80%
 | 
			
		||||
# input-ipc-server="/tmp/mpvsocket"
 | 
			
		||||
hwdec=auto
 | 
			
		||||
rtsp-transport=udp
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,3 +12,5 @@
 | 
			
		|||
  ((VISIBLE-IN-STATUS-P NIL)))
 | 
			
		||||
(DEFINE-CONFIGURATION NYXT/VI-MODE:USER-VI-NORMAL-MODE
 | 
			
		||||
  ((VISIBLE-IN-STATUS-P NIL)))
 | 
			
		||||
(DEFINE-CONFIGURATION BUFFER
 | 
			
		||||
                      ((CURRENT-ZOOM-RATIO 0.75)))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,10 +27,10 @@ shadow-radius = 38;
 | 
			
		|||
shadow-opacity = 1.0;
 | 
			
		||||
 | 
			
		||||
# The left offset for shadows, in pixels. (defaults to -15)
 | 
			
		||||
shadow-offset-x = -26;
 | 
			
		||||
shadow-offset-x = -20;
 | 
			
		||||
 | 
			
		||||
# The top offset for shadows, in pixels. (defaults to -15)
 | 
			
		||||
shadow-offset-y = -26;
 | 
			
		||||
shadow-offset-y = -20;
 | 
			
		||||
 | 
			
		||||
# Avoid drawing shadows on dock/panel windows. This option is deprecated,
 | 
			
		||||
# you should use the *wintypes* option in your config file instead.
 | 
			
		||||
| 
						 | 
				
			
			@ -87,6 +87,7 @@ shadow-exclude = [
 | 
			
		|||
# be painted in, such as a dock window region. Use
 | 
			
		||||
#    shadow-exclude-reg = "x10+0+0"
 | 
			
		||||
# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
 | 
			
		||||
# shadow-exclude-reg = "x40+20+1436"
 | 
			
		||||
shadow-exclude-reg = "x0+0+0"
 | 
			
		||||
 | 
			
		||||
# Crop shadow of a window fully on a particular Xinerama screen to the screen.
 | 
			
		||||
| 
						 | 
				
			
			@ -266,6 +267,7 @@ blur-background-exclude = [
 | 
			
		|||
  "class_g = 'slop'",
 | 
			
		||||
  "_GTK_FRAME_EXTENTS@:c",
 | 
			
		||||
  "class_g = 'soffice'",
 | 
			
		||||
  "class_g = 'microsoft teams - preview'",
 | 
			
		||||
  "name = 'Display Window'",
 | 
			
		||||
  "name = 'Video'",
 | 
			
		||||
  "name = 'Projection Window'",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
[FileDialog]
 | 
			
		||||
history=@Invalid()
 | 
			
		||||
lastVisited=file:///home/chris/nextcloud/tfc/website/
 | 
			
		||||
lastVisited=file:///home/chris/
 | 
			
		||||
qtVersion=5.15.2
 | 
			
		||||
shortcuts=file:, file:///home/chris, file:///home/chris/storage/tfc
 | 
			
		||||
sidebarWidth=116
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,8 +1,12 @@
 | 
			
		|||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
if [ $(hostname) = "syl" ]; then
 | 
			
		||||
    style="laptop-wayland"
 | 
			
		||||
    #echo "this is hidpi"
 | 
			
		||||
    if [ $XDG_SESSION_TYPE = "x11" ]; then
 | 
			
		||||
        style="laptop"
 | 
			
		||||
    else
 | 
			
		||||
        style="laptop-wayland"
 | 
			
		||||
        #echo "this is hidpi"
 | 
			
		||||
    fi
 | 
			
		||||
else 
 | 
			
		||||
    style="desktop"
 | 
			
		||||
    #echo "this is not hidpi"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,4 +4,4 @@
 | 
			
		|||
# echo 100 - $(mpstat | rg all | cut -d \  -f43) | bc
 | 
			
		||||
cpu="$(mpstat 1 1 | rg Average | awk '{print $3+$4+$5}' | sed 's/\(.*\)/\1%/g')"
 | 
			
		||||
 | 
			
		||||
echo " $cpu | color=#5af78e font='VictorMono Nerd Font' size=11"
 | 
			
		||||
echo " $cpu | color=#ff9f43 font='VictorMono Nerd Font' size=11"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,7 +28,14 @@ list_passwords() {
 | 
			
		|||
passwords=$(rbw list)
 | 
			
		||||
 | 
			
		||||
prompt='search for passwords...'
 | 
			
		||||
SECRET=$(list_passwords | rofi -i -p="${prompt}" -dmenu -theme ~/.config/rofi/launchers-git/$style.rasi)
 | 
			
		||||
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
 | 
			
		||||
      )
 | 
			
		||||
 | 
			
		||||
# Ask whether pass, user or both are required
 | 
			
		||||
options=("Password" \
 | 
			
		||||
| 
						 | 
				
			
			@ -37,7 +44,14 @@ options=("Password" \
 | 
			
		|||
             "QR-Code" \
 | 
			
		||||
	     "OTP")
 | 
			
		||||
 | 
			
		||||
option=$(printf '%s\n' "${options[@]%}" | rofi -i -dmenu -p="..." -theme ~/.config/rofi/launchers-git/$style.rasi)
 | 
			
		||||
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
 | 
			
		||||
      )
 | 
			
		||||
 | 
			
		||||
# echo $option
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										35
									
								
								scripts/mediashout-to-openlp.el
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										35
									
								
								scripts/mediashout-to-openlp.el
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,35 @@
 | 
			
		|||
#!/usr/bin/emacs --script
 | 
			
		||||
;;; mediashout-to-openlp.el --- convert ms text to openlp text  -*- lexical-binding: t; -*-
 | 
			
		||||
 | 
			
		||||
;;;###autoload
 | 
			
		||||
(defun bar ()
 | 
			
		||||
  "Print foo bar."
 | 
			
		||||
  (interactive)
 | 
			
		||||
  (message "Foo Bar!"))
 | 
			
		||||
 | 
			
		||||
;;;; CLI
 | 
			
		||||
 | 
			
		||||
(defun running-as-script-p ()
 | 
			
		||||
  "Return truthy if running as Elisp script."
 | 
			
		||||
  (member "-scriptload" command-line-args))
 | 
			
		||||
 | 
			
		||||
(defun main ()
 | 
			
		||||
  "Entrypoint"
 | 
			
		||||
  (print command-line-args-left)
 | 
			
		||||
 | 
			
		||||
  (find-file (car command-line-args-left))
 | 
			
		||||
  (with-current-buffer
 | 
			
		||||
      (goto-char (point-min))
 | 
			
		||||
    (search-forward "Title: ")
 | 
			
		||||
    (delete-char 7 t)
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  (search-forward "Copyright: ")
 | 
			
		||||
 | 
			
		||||
  (message "Do stuff here"))
 | 
			
		||||
 | 
			
		||||
(when (running-as-script-p)
 | 
			
		||||
  (main))
 | 
			
		||||
 | 
			
		||||
(provide 'mediashout-to-openlp)
 | 
			
		||||
| 
						 | 
				
			
			@ -7,4 +7,4 @@ percent=$(bc -l <<< "100 * $total / $used")
 | 
			
		|||
mem=$(awk -v u=$used -v t=$total -v p=$percent 'BEGIN {printf "%sMi/%sMi %.1f% ", t, u, p}'| awk '{printf $2}')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
echo " $mem | color=#ff9f43 font='VictorMono Nerd Font' size=11"
 | 
			
		||||
echo " $mem | color=#9aedfe font='VictorMono Nerd Font' size=11"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										78
									
								
								scripts/mshout.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										78
									
								
								scripts/mshout.txt
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,78 @@
 | 
			
		|||
Title: A Christmas Hymn
 | 
			
		||||
Author: Frances Johnston
 | 
			
		||||
Copyright: Public Domain
 | 
			
		||||
CCLI: 517860
 | 
			
		||||
Song ID: MS-0001
 | 
			
		||||
Hymnal: 
 | 
			
		||||
Notes: 
 | 
			
		||||
Groups: Public Domain
 | 
			
		||||
PlayOrder: Verse1, Verse2, Verse3
 | 
			
		||||
 | 
			
		||||
Verse 1:
 | 
			
		||||
When Jesus our Savior
 | 
			
		||||
In Bethlehem lowly
 | 
			
		||||
Was born of a virgin
 | 
			
		||||
And cradled in hay;Angels sent from heaven
 | 
			
		||||
With glad song announced Him
 | 
			
		||||
And guided the shepherds
 | 
			
		||||
To the place where He lay.
 | 
			
		||||
 | 
			
		||||
Verse 2:
 | 
			
		||||
Dear Savior, we bring Thee
 | 
			
		||||
Our heart's adoration
 | 
			
		||||
And bow in Thy presence,
 | 
			
		||||
Our wonderful King!
 | 
			
		||||
All heaven re-echoes
 | 
			
		||||
The song of the angels
 | 
			
		||||
And our hearts are joining
 | 
			
		||||
In the carols they sing.
 | 
			
		||||
 | 
			
		||||
Verse 3:
 | 
			
		||||
This same lowly Jesus
 | 
			
		||||
Who lay in the manger
 | 
			
		||||
Now reigns in the glory,
 | 
			
		||||
And prays for me there;
 | 
			
		||||
And one day He's coming,
 | 
			
		||||
His lov'd ones to gather
 | 
			
		||||
To join Him forever
 | 
			
		||||
All His riches to share!
 | 
			
		||||
 | 
			
		||||
Title: A Heart like Thine
 | 
			
		||||
Author: Judson Van DeVenter
 | 
			
		||||
Copyright: Public Domain
 | 
			
		||||
CCLI: 125544
 | 
			
		||||
Song ID: MS-0002
 | 
			
		||||
Hymnal: 
 | 
			
		||||
Notes: 
 | 
			
		||||
Groups: Public Domain
 | 
			
		||||
PlayOrder: Verse1, Verse2, Verse3, Verse4, Chorus1
 | 
			
		||||
 | 
			
		||||
Verse 1:
 | 
			
		||||
Give me a love that knows no ill.
 | 
			
		||||
Give me the grace to do Thy will.
 | 
			
		||||
Pardon and cleanse this soul of mine.
 | 
			
		||||
Give me a heart like Thine.
 | 
			
		||||
 | 
			
		||||
Verse 2:
 | 
			
		||||
Only a joy, a few brief years,
 | 
			
		||||
Only a dream, a vale of tears;
 | 
			
		||||
Vain is this world, I now resign.
 | 
			
		||||
Give me a heart like Thine.
 | 
			
		||||
 | 
			
		||||
Verse 3:
 | 
			
		||||
Open mine eyes that I may see.
 | 
			
		||||
Show me the cross of Calvary.
 | 
			
		||||
There may I go and not repine.
 | 
			
		||||
Give me a heart like Thine.
 | 
			
		||||
 | 
			
		||||
Verse 4:
 | 
			
		||||
Pillow my head upon Thy breast.
 | 
			
		||||
Shelter my soul and give me rest.
 | 
			
		||||
Fill me with love as I recline.
 | 
			
		||||
Give me a heart like Thine.
 | 
			
		||||
 | 
			
		||||
Chorus 1:
 | 
			
		||||
Come to my soul, blessed Jesus.
 | 
			
		||||
Hear me, O Savior divine.
 | 
			
		||||
Open the fountain and cleanse me.
 | 
			
		||||
Give me a heart a heart like Thine.
 | 
			
		||||
| 
						 | 
				
			
			@ -10,6 +10,7 @@ if pgrep -x nyxt > /dev/null; then
 | 
			
		|||
        # echo $emacsrg
 | 
			
		||||
 | 
			
		||||
        if [ -z $nyxtrg ]; then
 | 
			
		||||
            echo regnyxt
 | 
			
		||||
            nyxt
 | 
			
		||||
            exit
 | 
			
		||||
        else
 | 
			
		||||
| 
						 | 
				
			
			@ -34,5 +35,10 @@ if pgrep -x nyxt > /dev/null; then
 | 
			
		|||
    fi
 | 
			
		||||
else
 | 
			
		||||
    echo not running
 | 
			
		||||
    nyxt
 | 
			
		||||
    machine=$(hostname)
 | 
			
		||||
    if [ $machine = "syl" ]; then
 | 
			
		||||
        env GDK_DPI_SCALE=0.5 GDK_SCALE=2 nyxt
 | 
			
		||||
    else
 | 
			
		||||
        nyxt
 | 
			
		||||
    fi
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,7 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
export MOZ_ENABLE_WAYLAND=1
 | 
			
		||||
 | 
			
		||||
exec ydotoold &
 | 
			
		||||
exec systemctl enable --user --now libinput-gestures &
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,9 +6,13 @@ facebookstreamkey=$(kdialog --password "What is the stream key for Facebook?")
 | 
			
		|||
echo $peertubestreamkey
 | 
			
		||||
echo $facebookstreamkey
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
ssh chris@40.122.147.124 sudo sed -i -e "s#luctorcrc.org.*#luctorcrc.org/live/$peertubestreamkey\;#" nginx-restream/data/nginx.conf
 | 
			
		||||
ssh chris@40.122.147.124 sudo sed -i -e "s#/rtmp/.*#/rtmp/$facebookstreamkey\;#" /etc/nginx/nginx.conf
 | 
			
		||||
ssh chris@40.122.147.124 sudo sed -i -e "s#40.122.147.124.*#40.122.147.124:1936/rtmp/$facebookstreamkey\;#" nginx-restream/data/nginx.conf
 | 
			
		||||
# ssh chris@40.122.147.124 'sudo systemctl restart nginx'
 | 
			
		||||
ssh chris@40.122.147.124 sudo docker-compose down && sudo docker-compose up -d
 | 
			
		||||
ssh chris@40.122.147.124 "cd /home/chris/nginx-restream && sudo docker-compose down && sudo docker-compose up -d"
 | 
			
		||||
 | 
			
		||||
if [ $? = 0 ]; then
 | 
			
		||||
    kdialog --title "Success!" --msgbox "All set! Now you can start the stream!"
 | 
			
		||||
else
 | 
			
		||||
    kdialog --error "Sorry there was an error! Find Chris!"
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								scripts/wttr-plasma.60s.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								scripts/wttr-plasma.60s.sh
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
weather=$(curl 'wttr.in/long_island,ks?format=%c%t++%h++%p')
 | 
			
		||||
 | 
			
		||||
echo "$weather | color=#57c7ff font='VictorMono Nerd Font' size=11"
 | 
			
		||||
| 
						 | 
				
			
			@ -56,10 +56,15 @@ unbind v
 | 
			
		|||
 | 
			
		||||
command torrent js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('transadd ' + url))
 | 
			
		||||
 | 
			
		||||
" YTDL
 | 
			
		||||
command ytdl js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('alacritty -e yt-dlp -o ~/Videos/%(title)s.%(ext)s ' + url))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
"" Adding my own bindings
 | 
			
		||||
bind v hint -W mpv
 | 
			
		||||
bind gt hint -W torrent
 | 
			
		||||
bind gv current_url mpv
 | 
			
		||||
bind gV hint ytdl
 | 
			
		||||
bind F hint -w
 | 
			
		||||
bind gy hint -y
 | 
			
		||||
bind gc org-capture
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,7 @@
 | 
			
		|||
    "height": 30, // Waybar height (to be removed for auto height)
 | 
			
		||||
    // "width": 1280, // Waybar width
 | 
			
		||||
    // Choose the order of the modules "custom/wintitle", 
 | 
			
		||||
    "modules-left": ["sway/workspaces", "river/tags", "sway/mode", "sway/window"],
 | 
			
		||||
    "modules-left": ["sway/workspaces", "custom/wintitle", "river/tags", "sway/mode", "sway/window"],
 | 
			
		||||
    "modules-center": ["clock"],
 | 
			
		||||
    "modules-right": ["pulseaudio", "network", "memory", "cpu", "battery", "battery#bat2", "tray"],
 | 
			
		||||
    "margin-top": 0,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			@ -346,7 +346,7 @@ key_focus_right = <super> KEY_L
 | 
			
		|||
key_toggle = <shift> <super> KEY_T
 | 
			
		||||
outer_horiz_gap_size = 20
 | 
			
		||||
outer_vert_gap_size = 20
 | 
			
		||||
tile_by_default = (app_id is "emacs" | app_id is "nyxt")
 | 
			
		||||
tile_by_default = (app_id is "emacs" | app_id is "firefox")
 | 
			
		||||
 | 
			
		||||
[swayfire]
 | 
			
		||||
button_move_activate = <super> BTN_LEFT
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue