Uptradtdate
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
9dc5a3e588
commit
8aafcf397c
29
.bashrc
29
.bashrc
|
@ -89,10 +89,6 @@ strlen() {
|
|||
printf '%u\n' "$N"
|
||||
}
|
||||
|
||||
uppweb() {
|
||||
ssh vern.cc 'cd ~/public_html; git pull'
|
||||
}
|
||||
|
||||
caption() {
|
||||
[ -z "$3" ] && {
|
||||
echo "Usage: caption [input] [output] [text...]"
|
||||
|
@ -158,31 +154,6 @@ topbottomvid() {
|
|||
rm /tmp/caption.*.png
|
||||
}
|
||||
|
||||
subcipher() {
|
||||
local COLOR PERM L1 line grep word
|
||||
if [ $# -lt 3 ]; then
|
||||
if [ $# -lt 2 ] || [[ "$1" != "0" && "$1" != "1" ]]; then
|
||||
printf "Usage: [0|1] subcipher file [string...]\n"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
COLOR="$1"
|
||||
shift
|
||||
PERM="$1"
|
||||
shift
|
||||
[ -z "$*" ] && set -- "$(</dev/stdin)"
|
||||
L1="$(head -1 "$PERM")"
|
||||
while read -r line; do
|
||||
tr "${L1^^}${L1}" "${line^^}${line}" <<< "$*"
|
||||
done < "$PERM" | while read -r line; do
|
||||
for word in $line; do
|
||||
[ $COLOR -eq 1 ] && grep="$(grep --color=always -xF "$word" /etc/dictionaries-common/words)"
|
||||
printf %s "${grep:-$word} "
|
||||
done
|
||||
printf '\n'
|
||||
done
|
||||
}
|
||||
|
||||
playcd() {
|
||||
mpv --start=00:00:00.0000000 av://libcdio:/dev/cdrom --cache=yes
|
||||
}
|
||||
|
|
|
@ -426,10 +426,6 @@ strlen() {
|
|||
printf '%u\\n' \"$N\"
|
||||
}
|
||||
|
||||
uppweb() {
|
||||
ssh vern.cc 'cd ~/public_html; git pull'
|
||||
}
|
||||
|
||||
caption() {
|
||||
[ -z \"$3\" ] && {
|
||||
echo \"Usage: caption [input] [output] [text...]\"
|
||||
|
@ -495,32 +491,6 @@ topbottomvid() {
|
|||
rm /tmp/caption.*.png
|
||||
}
|
||||
|
||||
subcipher() {
|
||||
local COLOR PERM L1 line grep word
|
||||
if [ $# -lt 3 ]; then
|
||||
if [ $# -lt 2 ] || [[ \"$1\" != \"0\" && \"$1\" != \"1\" ]]; then
|
||||
printf \"Usage: [0|1] subcipher file [string...]\\n\"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
COLOR=\"$1\"
|
||||
shift
|
||||
PERM=\"$1\"
|
||||
shift
|
||||
[ -z \"$*\" ] && set -- \"$(</dev/stdin)\"
|
||||
L1=\"$(head -1 \"$PERM\")\"
|
||||
while read -r line; do
|
||||
tr \"${L1^^}${L1}\" \"${line^^}${line}\" <<< \"$*\"
|
||||
done < \"$PERM\" | \
|
||||
while read -r line; do
|
||||
for word in $line; do
|
||||
[ $COLOR -eq 1 ] && grep=\"$(grep --color=always -xF \"$word\" /etc/dictionaries-common/words)\"
|
||||
printf %s \"${grep:-$word} \"
|
||||
done
|
||||
printf '\\n'
|
||||
done
|
||||
}
|
||||
|
||||
playcd() {
|
||||
mpv --start=00:00:00.0000000 av://libcdio:/dev/cdrom --cache=yes
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#:use-module (gnu packages base)
|
||||
#:export (%bin:torbrowser
|
||||
%bin:suspend-wrap
|
||||
%bin:suspend
|
||||
%bin:start-pipewire
|
||||
%bin:screenshot
|
||||
%bin:rotate
|
||||
|
@ -35,21 +34,13 @@ EOT" "\nEOF"))
|
|||
#~(begin
|
||||
(system (string-append #$coreutils "/bin/cat << \"EOF\" >" #$output "\n" "\
|
||||
#!/usr/bin/env bash
|
||||
sudo ~/.local/bin/__suspend
|
||||
loginctl suspend
|
||||
while grep -v '\\[' /sys/power/state; do
|
||||
swaylock
|
||||
break
|
||||
done" "\nEOF"))
|
||||
(chmod #$output #o755))))
|
||||
|
||||
(define %bin:suspend
|
||||
(computed-file "bin-suspend"
|
||||
#~(begin
|
||||
(system (string-append #$coreutils "/bin/cat << \"EOF\" >" #$output "\n" "\
|
||||
#!/usr/bin/env bash
|
||||
echo mem > /sys/power/state" "\nEOF"))
|
||||
(chmod #$output #o755))))
|
||||
|
||||
(define %bin:start-pipewire
|
||||
(computed-file "bin-start-pipewire"
|
||||
#~(begin
|
||||
|
@ -150,7 +141,7 @@ esac" "\nEOF"))
|
|||
#!/usr/bin/env bash
|
||||
if ! ps aux | grep -v grep | grep swaylock; then
|
||||
# if [[ $(playerctl status) != \"Playing\" ]]; then
|
||||
# swayidle -w timeout 600 'sudo ~/.local/bin/__suspend' &
|
||||
# swayidle -w timeout 600 'loginctl suspend' &
|
||||
# SUSPEND=$!
|
||||
# fi
|
||||
swayidle -w timeout 15 'swaymsg \"output * dpms off\"' resume 'swaymsg \"output * dpms on\"' &
|
||||
|
|
|
@ -183,7 +183,6 @@
|
|||
`(".local/bin/rotate" ,%bin:rotate)
|
||||
`(".local/bin/screenshot" ,%bin:screenshot)
|
||||
`(".local/bin/start-pipewire" ,%bin:start-pipewire)
|
||||
`(".local/bin/__suspend" ,%bin:suspend)
|
||||
`(".local/bin/suspend" ,%bin:suspend-wrap)
|
||||
`(".local/bin/torbrowser" ,%bin:torbrowser)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
if ! ps aux | grep -v grep | grep swaylock; then
|
||||
# if [[ $(playerctl status) != "Playing" ]]; then
|
||||
# swayidle -w timeout 600 'sudo ~/.local/bin/__suspend' &
|
||||
# swayidle -w timeout 600 'loginctl suspend' &
|
||||
# SUSPEND=$!
|
||||
# fi
|
||||
swayidle -w timeout 15 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' &
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
sudo ~/.local/bin/__suspend
|
||||
loginctl suspend
|
||||
while grep -v '\[' /sys/power/state; do
|
||||
swaylock
|
||||
break
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
(plain-file "sudoers" "\
|
||||
root ALL=(ALL) ALL
|
||||
%wheel ALL=(ALL) ALL
|
||||
Cmnd_Alias WITHOUTPW = /home/cobra/.local/bin/__suspend, /home/cobra/.local/bin/beep, /run/current-system/profile/sbin/halt, /run/current-system/profile/sbin/reboot
|
||||
Cmnd_Alias WITHOUTPW = /home/cobra/.local/bin/beep, /run/current-system/profile/sbin/halt, /run/current-system/profile/sbin/reboot
|
||||
Defaults!WITHOUTPW !authenticate
|
||||
"))
|
||||
|
||||
|
@ -23,7 +23,8 @@ Defaults!WITHOUTPW !authenticate
|
|||
(kernel-loadable-modules (list v4l2loopback-linux-module))
|
||||
(kernel-arguments '("intel_iommu=on"
|
||||
"kvm.ignore_msrs=1"
|
||||
"log_buf_len=1M"))
|
||||
"log_buf_len=1M"
|
||||
"iomem=relaxed"))
|
||||
(keyboard-layout (keyboard-layout "us" "altgr-intl"))
|
||||
(bootloader
|
||||
(bootloader-configuration
|
||||
|
|
|
@ -1,10 +1,31 @@
|
|||
(define-module (cobra packages)
|
||||
#:use-module (guix)
|
||||
#:use-module (guix build-system font)
|
||||
#:use-module (guix build-system python)
|
||||
#:use-module (guix build-system pyproject)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (gnu packages gl))
|
||||
#:use-module (gnu packages base)
|
||||
#:use-module (gnu packages bioinformatics)
|
||||
#:use-module (gnu packages check)
|
||||
#:use-module (gnu packages compression)
|
||||
#:use-module (gnu packages docker)
|
||||
#:use-module (gnu packages engineering)
|
||||
#:use-module (gnu packages gl)
|
||||
#:use-module (gnu packages libffi)
|
||||
#:use-module (gnu packages libusb)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (gnu packages protobuf)
|
||||
#:use-module (gnu packages python-build)
|
||||
#:use-module (gnu packages python-check)
|
||||
#:use-module (gnu packages python-crypto)
|
||||
#:use-module (gnu packages python-web)
|
||||
#:use-module (gnu packages python-xyz)
|
||||
#:use-module (gnu packages security-token)
|
||||
#:use-module (gnu packages serialization)
|
||||
#:use-module (gnu packages time)
|
||||
)
|
||||
|
||||
(define-public mesa-i915
|
||||
(package (inherit mesa)
|
||||
|
@ -25,6 +46,7 @@
|
|||
"-Dbuild-tests=true"
|
||||
"-Dllvm=enabled")))))
|
||||
|
||||
|
||||
;; Taken and modified from issue #44575
|
||||
|
||||
(define-public font-nerd-fonts-fira-code
|
||||
|
|
Loading…
Reference in New Issue