Updates
This commit is contained in:
parent
a279fc4923
commit
00d4b17125
@ -94,3 +94,14 @@
|
|||||||
(rocinante-builtinbar--left)
|
(rocinante-builtinbar--left)
|
||||||
(rocinante-builtinbar--center)
|
(rocinante-builtinbar--center)
|
||||||
(rocinante-builtinbar--right)))
|
(rocinante-builtinbar--right)))
|
||||||
|
|
||||||
|
|
||||||
|
(defwindow polkit
|
||||||
|
:geometry (geometry
|
||||||
|
:anchor "center")
|
||||||
|
:focusable true
|
||||||
|
:exclusive false
|
||||||
|
:stacking "overlay"
|
||||||
|
(box :orientation "v"
|
||||||
|
:class "bar root bg outline"
|
||||||
|
"testing"))
|
||||||
|
|||||||
@ -13,6 +13,10 @@ except:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
from gi.repository import Playerctl, GLib
|
from gi.repository import Playerctl, GLib
|
||||||
|
from gi.events import GLibEventLoopPolicy
|
||||||
|
import asyncio
|
||||||
|
|
||||||
|
asyncio.set_event_loop_policy(GLibEventLoopPolicy())
|
||||||
|
|
||||||
title_maxlen = 40
|
title_maxlen = 40
|
||||||
title_end_at = ["(", "-"]
|
title_end_at = ["(", "-"]
|
||||||
@ -56,8 +60,8 @@ class StatusDisplay:
|
|||||||
def show(self):
|
def show(self):
|
||||||
self._init_player()
|
self._init_player()
|
||||||
|
|
||||||
main = GLib.MainLoop()
|
loop = asyncio.get_event_loop()
|
||||||
main.run()
|
loop.run_forever()
|
||||||
|
|
||||||
def _get_status(self, playing=None):
|
def _get_status(self, playing=None):
|
||||||
if self._player:
|
if self._player:
|
||||||
|
|||||||
1
.config/eww/scripts/network.py
Symbolic link
1
.config/eww/scripts/network.py
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
network.py##hostname.gathering-storm
|
||||||
@ -2,6 +2,9 @@
|
|||||||
;; Top-Level Module Definitions ;;
|
;; Top-Level Module Definitions ;;
|
||||||
;;;; ;;;;
|
;;;; ;;;;
|
||||||
|
|
||||||
|
;;; ;;;
|
||||||
|
;; PolKit Auth Window ;;
|
||||||
|
;;; ;;;
|
||||||
|
|
||||||
;;; ;;;
|
;;; ;;;
|
||||||
;; Bars for Rocinante ;;
|
;; Bars for Rocinante ;;
|
||||||
|
|||||||
@ -83,9 +83,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"index": 13,
|
"index": 13,
|
||||||
"name": "edex-ui",
|
"name": "comms",
|
||||||
"exec": "edex-ui",
|
"exec": "zoom",
|
||||||
"program_name": "edex-ui"
|
"program_name": "zoom"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"index": 14,
|
"index": 14,
|
||||||
@ -123,7 +123,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"index": 19,
|
"index": 19,
|
||||||
"name": "project",
|
"name": "internet",
|
||||||
"exec": "firefox",
|
"exec": "firefox",
|
||||||
"args": ["--new-window"],
|
"args": ["--new-window"],
|
||||||
"program_name": "firefox"
|
"program_name": "firefox"
|
||||||
@ -137,11 +137,7 @@
|
|||||||
"--enable-features=UseOzonePlatform",
|
"--enable-features=UseOzonePlatform",
|
||||||
"--ozone-platform=wayland",
|
"--ozone-platform=wayland",
|
||||||
"--enable-gpu-rasterization"
|
"--enable-gpu-rasterization"
|
||||||
],
|
]
|
||||||
"memory_profile": {
|
|
||||||
"high": "800M",
|
|
||||||
"max": "1.2G"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"index": 21,
|
"index": 21,
|
||||||
@ -149,6 +145,18 @@
|
|||||||
"exec": "firefox",
|
"exec": "firefox",
|
||||||
"args": ["--new-window", "https://www.twitch.tv/ferretsoftware"],
|
"args": ["--new-window", "https://www.twitch.tv/ferretsoftware"],
|
||||||
"program_name": "firefox"
|
"program_name": "firefox"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": 22,
|
||||||
|
"name": "encrypted comms",
|
||||||
|
"exec": "signal-desktop",
|
||||||
|
"program_name": "signal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": 23,
|
||||||
|
"name": "steam",
|
||||||
|
"exec": "steam",
|
||||||
|
"program_name": "steam"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"contexts": {
|
"contexts": {
|
||||||
@ -192,19 +200,19 @@
|
|||||||
],
|
],
|
||||||
"groups": {
|
"groups": {
|
||||||
"builtin": {
|
"builtin": {
|
||||||
"workspaces": [21],
|
"workspaces": [21, 22],
|
||||||
"reverse": false
|
"reverse": false
|
||||||
},
|
},
|
||||||
"left": {
|
"left": {
|
||||||
"workspaces": [1, 2, 3, 4, 5],
|
"workspaces": [6, 2, 3, 4, 5],
|
||||||
"reverse": true
|
"reverse": true
|
||||||
},
|
},
|
||||||
"center": {
|
"center": {
|
||||||
"workspaces": [6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
"workspaces": [1, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
||||||
"reverse": false
|
"reverse": false
|
||||||
},
|
},
|
||||||
"right": {
|
"right": {
|
||||||
"workspaces": [16, 17, 18, 19, 20],
|
"workspaces": [16, 17, 19, 18, 20, 13],
|
||||||
"reverse": false
|
"reverse": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -222,7 +230,7 @@
|
|||||||
],
|
],
|
||||||
"groups": {
|
"groups": {
|
||||||
"builtin": {
|
"builtin": {
|
||||||
"workspaces": [6, 7, 8, 9, 10, 11, 18, 20, 14, 15],
|
"workspaces": [1, 7, 8, 9, 10, 13, 18, 20, 14, 15],
|
||||||
"reverse": false
|
"reverse": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -240,7 +248,38 @@
|
|||||||
],
|
],
|
||||||
"groups": {
|
"groups": {
|
||||||
"builtin": {
|
"builtin": {
|
||||||
"workspaces": [6, 7, 8, 9, 10, 11, 18, 5, 14, 15],
|
"workspaces": [1, 7, 8, 9, 23, 22, 18, 5, 14, 15],
|
||||||
|
"reverse": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"spawnpoint": {
|
||||||
|
"primary": "external",
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"names": ["eDP-1"],
|
||||||
|
"group": "builtin",
|
||||||
|
"position": [2560, 0],
|
||||||
|
"eww_windows": ["builtinbar"],
|
||||||
|
"mode": "2560x1600@165Hz scale 1.5 color_profile icc /usr/share/color/icc/colord/BOE_CQ_______NE160QDM_NZ6.icm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"make": "LG Electronics",
|
||||||
|
"model": "LG UltraFine",
|
||||||
|
"serial": "111NTRL2Y030",
|
||||||
|
"group": "external",
|
||||||
|
"position": [0, 0],
|
||||||
|
"eww_windows": ["centerbar"],
|
||||||
|
"mode": "3840x2160@60Hz scale 1.5"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"groups": {
|
||||||
|
"builtin": {
|
||||||
|
"workspaces": [6, 2, 3, 18, 5],
|
||||||
|
"reverse": false
|
||||||
|
},
|
||||||
|
"external": {
|
||||||
|
"workspaces": [1, 7, 8, 9, 23, 22, 19, 20, 14, 15],
|
||||||
"reverse": false
|
"reverse": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@ Description=KDE Connect Daemon
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/lib/kdeconnectd
|
ExecStart=/usr/bin/kdeconnectd
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=sway-session.target
|
||||||
|
|||||||
@ -9,6 +9,9 @@ alias ujournalctl="\journalctl --user"
|
|||||||
|
|
||||||
alias reconf="exec $SHELL"
|
alias reconf="exec $SHELL"
|
||||||
|
|
||||||
|
# Use safeexec to ensure we are using system binaries (required for some AUR packages)
|
||||||
|
alias paru="safeexec paru"
|
||||||
|
|
||||||
alias cp="cp -i --reflink=auto"
|
alias cp="cp -i --reflink=auto"
|
||||||
alias mv="mv -i"
|
alias mv="mv -i"
|
||||||
alias rm="rm -i"
|
alias rm="rm -i"
|
||||||
@ -30,7 +33,7 @@ alias verify='gpg --verify'
|
|||||||
alias bw-personal='BITWARDENCLI_APPDATA_DIR=~/.config/bw-cli-personal bw'
|
alias bw-personal='BITWARDENCLI_APPDATA_DIR=~/.config/bw-cli-personal bw'
|
||||||
|
|
||||||
function didifuckingstutter {
|
function didifuckingstutter {
|
||||||
echo $fg[blue]Apologies, right away.$fg[default]
|
echo $fg[blue]Apologies, milady. Right away.$fg[default]
|
||||||
# Run the last command as root
|
# Run the last command as root
|
||||||
last_cmd=$(fc -ln -1)
|
last_cmd=$(fc -ln -1)
|
||||||
# if last command was emacs, use TRAMP rather than running as root
|
# if last command was emacs, use TRAMP rather than running as root
|
||||||
@ -39,7 +42,7 @@ function didifuckingstutter {
|
|||||||
echo "> $fg[white]$cmd$fg[default]"
|
echo "> $fg[white]$cmd$fg[default]"
|
||||||
$=cmd
|
$=cmd
|
||||||
else
|
else
|
||||||
cmd="sudo $(fc -ln -1)"
|
cmd="sudo zsh -c '$(fc -ln -1)'"
|
||||||
echo "> $fg[white]$cmd$fg[default]"
|
echo "> $fg[white]$cmd$fg[default]"
|
||||||
sudo -p "$fg[red]I'll need your authorization:$fg[default] " $last_cmd
|
sudo -p "$fg[red]I'll need your authorization:$fg[default] " $last_cmd
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -117,7 +117,7 @@ if [[ -v SSH_CLIENT ]]; then
|
|||||||
elif [[ ${TTY} =~ "tty" ]]; then
|
elif [[ ${TTY} =~ "tty" ]]; then
|
||||||
prompt_line2='${serial_host}$pyenv_info_msg_0_ ${pwd}'
|
prompt_line2='${serial_host}$pyenv_info_msg_0_ ${pwd}'
|
||||||
history_line="${serial_host}"
|
history_line="${serial_host}"
|
||||||
elif [[ ${MACHINE_CHASSIS} == "container" ]]; then
|
elif [[ ${MACHINE_CHASSIS} == "container" ]] || [[ ${MACHINE_CHASSIS} == "vm" ]]; then
|
||||||
prompt_line2='${container_host}$pyenv_info_msg_0_ ${pwd}'
|
prompt_line2='${container_host}$pyenv_info_msg_0_ ${pwd}'
|
||||||
history_line="${container_host}"
|
history_line="${container_host}"
|
||||||
else
|
else
|
||||||
|
|||||||
@ -515,27 +515,29 @@ Indent using tabs, render with tab-width of 2.
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
** LSP
|
** LSP
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
;; (use-package lsp-mode
|
|
||||||
;; :ensure t
|
|
||||||
;; :init
|
|
||||||
;; ;; set prefix for lsp-command-keymap (few alternatives - "C-l", "C-c l")
|
|
||||||
;; (setq lsp-keymap-prefix "C-c l")
|
|
||||||
;; :hook ((python-mode . lsp) ;; pip install python-lsp-server pyls-black pyls-isort pyls-mypy
|
|
||||||
;; (elixir-mode . lsp)
|
|
||||||
;; (rust-mode . lsp)
|
|
||||||
;; (java-mode . lsp)
|
|
||||||
;; (php-mode . lsp)
|
|
||||||
;; (typescript-mode . lsp) ;; npm install -g typescript typescript-language-server
|
|
||||||
;; )
|
|
||||||
;; :config (lsp-register-custom-settings
|
|
||||||
;; '(("pyls.plugins.pyls_mypy.enabled" t t)
|
|
||||||
;; ("pyls.plugins.pyls_mypy.live_mode" nil t)
|
|
||||||
;; ("pyls.plugins.pyls_black.enabled" t t)
|
|
||||||
;; ("pyls.plugins.pyls_isort.enabled" t t)))
|
|
||||||
;; :commands lsp)
|
|
||||||
|
|
||||||
(use-package eglot
|
(use-package eglot
|
||||||
:ensure t)
|
:ensure t
|
||||||
|
:defer t
|
||||||
|
:bind (:map eglot-mode-map
|
||||||
|
("C-c C-e" . eglot-rename)
|
||||||
|
("C-." . eglot-code-actions))
|
||||||
|
:hook ((python-mode . eglot-ensure)
|
||||||
|
(python-mode . flyspell-prog-mode)
|
||||||
|
(python-mode . superword-mode)
|
||||||
|
(python-mode . hs-minor-mode))
|
||||||
|
:config
|
||||||
|
(setq-default eglot-workspace-configuration
|
||||||
|
'((:pylsp . (:configurationSources ["flake8"]
|
||||||
|
:plugins (
|
||||||
|
:mccabe (:enabled :json-false)
|
||||||
|
:pyflakes (:enabled :json-false)
|
||||||
|
:flake8 (:enabled :json-false
|
||||||
|
:maxLineLength 88)
|
||||||
|
:ruff (:enabled t :lineLength 88)
|
||||||
|
:pydocstyle (:enabled t :convention "numpy")
|
||||||
|
:yapf (:enabled :json-false)
|
||||||
|
:autopep8 (:enabled :json-false)
|
||||||
|
:black (:enabled t :line_length 88 :cache_config t)))))))
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Languages
|
** Languages
|
||||||
@ -662,7 +664,7 @@ After installing the ~rust-analyzer~ program, the following can be used:
|
|||||||
|
|
||||||
#+RESULTS:
|
#+RESULTS:
|
||||||
|
|
||||||
** Format All The Buffers
|
* Format All The Buffers
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package format-all
|
(use-package format-all
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|||||||
@ -4,7 +4,7 @@ exec </dev/null
|
|||||||
exec > >(systemd-cat -t i3-sensible-launcher -p info)
|
exec > >(systemd-cat -t i3-sensible-launcher -p info)
|
||||||
exec 2> >(systemd-cat -t i3-sensible-launcher -p err)
|
exec 2> >(systemd-cat -t i3-sensible-launcher -p err)
|
||||||
|
|
||||||
pyenv shell system
|
export PATH=$HOME/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
|
||||||
|
|
||||||
ws_data=$(sway_get_focused_workspace)
|
ws_data=$(sway_get_focused_workspace)
|
||||||
current_workspace=$(echo $ws_data | jq -r '.index')
|
current_workspace=$(echo $ws_data | jq -r '.index')
|
||||||
|
|||||||
@ -14,5 +14,5 @@ else
|
|||||||
# VPN is disconnected, so connect
|
# VPN is disconnected, so connect
|
||||||
echo "Connecting to VPN..."
|
echo "Connecting to VPN..."
|
||||||
# pkexec doesn't pass the DISPLAY and XAUTHORITY environment variables, so we need to pass them manually
|
# pkexec doesn't pass the DISPLAY and XAUTHORITY environment variables, so we need to pass them manually
|
||||||
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY TZ=Etc/UTC gpclient connect gp.usu.edu
|
TZ=Etc/UTC sudo /usr/sbin/gpclient --fix-openssl connect gp.usu.edu
|
||||||
fi
|
fi
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user