some changes

master
Alex 2023-03-09 22:54:58 -06:00
parent 123bb38eb8
commit 6ea52a831f
6 changed files with 36 additions and 9 deletions

View File

@ -30,9 +30,9 @@ alias sfe='$EDITOR ~/.config/sfeed/sfeedrc'
alias mpvyl='mpv --ytdl-format=18 ' alias mpvyl='mpv --ytdl-format=18 '
#system power #system power
alias poweroff='sudo poweroff' #alias poweroff='sudo poweroff'
alias reboot='sudo reboot' #alias reboot='sudo reboot'
alias shutdown='sudo shutdown' #alias shutdown='sudo shutdown'
#programs #programs
alias trc="tremc -c @$TRNS_IP:9091" alias trc="tremc -c @$TRNS_IP:9091"

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
img () { img () {
chafa "$1" --size="$2"x"$3" | sed 's/#/\n#/g' chafa "$1" --size="$2"x"$3" --animate=false | sed 's/#/\n#/g'
#chafa --format=symbols "$1" --size="$2"x"$3" #chafa --format=symbols "$1" --size="$2"x"$3"
} }
@ -9,7 +9,7 @@ W="$(($(tput cols)/2 - 10))"
#H="$(tput lines)" #H="$(tput lines)"
fn="$1" fn="$1"
w="$2" w="$(($2 - 5))"
h="$3" h="$3"
x="$4" x="$4"
y="$5" y="$5"
@ -22,7 +22,7 @@ case "$fn" in
*.jpg | *.JPG | *.jpeg) img "$fn" "$w" "$h";; *.jpg | *.JPG | *.jpeg) img "$fn" "$w" "$h";;
*.webp) img "$fn" "$w" "$h";; *.webp) img "$fn" "$w" "$h";;
*.png | *.svg | *.gif) img "$fn" "$w" "$h";; #viu -t "$1" -w "$W" ;; #chafa "$fn" --size="$w"x"$h" ;; *.png | *.svg | *.gif) img "$fn" "$w" "$h";; #viu -t "$1" -w "$W" ;; #chafa "$fn" --size="$w"x"$h" ;;
*.mp4 | *.mkv | *.webm | *.avi | *.mpg | *.mpeg | *.ogv | *.flv | *.wmv | *.WMV) ffmpegthumbnailer -i "$fn" -c jpeg -o - | img - "$w" "$h";; *.mp4 | *.mkv | *.webm | *.avi | *.mpg | *.mpeg | *.ogv | *.flv | *.wmv | *.WMV) ffmpegthumbnailer -s 0 -i "$fn" -c jpeg -o - | img - "$w" "$h";;
*.pdf) pdftotext "$1" -;; *.pdf) pdftotext "$1" -;;
*) bat -f "$1";; #*) highlight -O ansi "$1" || cat "$1";; *) bat -f "$1";; #*) highlight -O ansi "$1" || cat "$1";;
esac esac

View File

@ -477,3 +477,26 @@ def_key "x"
delete_playlist_items delete_playlist_items
def_key "P" def_key "P"
show_playlist show_playlist
def_key "f"
seek_forward
def_key "b"
seek_backward
def_key "f"
seek_forward
def_key "b"
seek_backward
def_key "f"
seek_forward
def_key "b"
seek_backward
def_key "f"
seek_forward
def_key "b"
seek_backward

View File

@ -37,12 +37,17 @@ feeds() {
#feed "VIDS YT MilleniaThinker" "https://www.youtube.com/feeds/videos.xml?channel_id=UC3TUCGI-7rSjvHsE4ONXRww" #feed "VIDS YT MilleniaThinker" "https://www.youtube.com/feeds/videos.xml?channel_id=UC3TUCGI-7rSjvHsE4ONXRww"
#feed "VIDS YT MentalOutlaw" "https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA" #feed "VIDS YT MentalOutlaw" "https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA"
feed "VIDS YT The Bioneer" "https://www.youtube.com/feeds/videos.xml?channel_id=UCIh_TPYPqjJuS_-nOfAIlfg" feed "VIDS YT The Bioneer" "https://www.youtube.com/feeds/videos.xml?channel_id=UCIh_TPYPqjJuS_-nOfAIlfg"
feed "VIDS YT Brody Robertson" "https://www.youtube.com/feeds/videos.xml?channel_id=UCld68syR8Wi-GY_n4CaoJGA"
feed "VIDS YT Hybrid Calisthenics" "https://www.youtube.com/feeds/videos.xml?channel_id=UCeJFgNahi--FKs0oJyeRDEw"
#Bitchute #Bitchute
feed "VIDS BIT Paul Joseph Watson" "https://www.bitchute.com/feeds/rss/channel/pauljosephwatson/" feed "VIDS BIT Paul Joseph Watson" "https://www.bitchute.com/feeds/rss/channel/pauljosephwatson/"
feed "VIDS BIT Liberum Arbitrium" "https://www.bitchute.com/feeds/rss/channel/liberum-arbitrium/" feed "VIDS BIT Liberum Arbitrium" "https://www.bitchute.com/feeds/rss/channel/liberum-arbitrium/"
#feed "VIDS BIT Keith Woods" "https://www.bitchute.com/feeds/rss/channel/keithwoods/" #feed "VIDS BIT Keith Woods" "https://www.bitchute.com/feeds/rss/channel/keithwoods/"
feed "VIDS BIT PaxTube" "https://www.bitchute.com/feeds/rss/channel/paxtube/" feed "VIDS BIT PaxTube" "https://www.bitchute.com/feeds/rss/channel/paxtube/"
#feed "VIDS BIT MisterMetokur" "https://www.bitchute.com/feeds/rss/channel/mistermetokur/" #feed "VIDS BIT MisterMetokur" "https://www.bitchute.com/feeds/rss/channel/mistermetokur/"
#Odysee
feed "VIDS ODSY Keith Woods" "https://odysee.com/$/rss/@keithwoods:e"
#Anime #Anime
#feed "VIDS YT RetroCrush" "https://www.youtube.com/feeds/videos.xml?channel_id=UCPZkYpT5XIUou8sV8zk-3jQ" #feed "VIDS YT RetroCrush" "https://www.youtube.com/feeds/videos.xml?channel_id=UCPZkYpT5XIUou8sV8zk-3jQ"

View File

@ -32,8 +32,7 @@ set $menu bemenu-run | xargs swaymsg exec --
#output HDMI-A-1 bg ~/.config/wall fill #output HDMI-A-1 bg ~/.config/wall fill
#output DP-1 resolution 1920x1080 position 0,0 #output DP-1 resolution 1920x1080 position 0,0
#output DP-1 bg ~/.config/wall fill #output DP-1 bg ~/.config/wall fill
output * bg ~/.config/wall fill output * bg ~/.config/wall fit
output VGA-1 disable
# #

@ -1 +1 @@
Subproject commit ce1055b7ec7f795f7cf724e67a20103d30519fb2 Subproject commit a115ebb0e4ee338de813015a06ea2a277b963b47