push things i missed
This commit is contained in:
parent
46906bd0fb
commit
a280dab811
6 changed files with 128 additions and 17 deletions
|
@ -533,19 +533,23 @@ awful.widget.watch(
|
|||
local duration = tonumber(stdout:match("duration (.-)\n"))
|
||||
local position = tonumber(stdout:match("position (.-)\n"))
|
||||
|
||||
if duration == -1 and stdout:find("stream ") then
|
||||
local stream = stdout:match("stream (.-)\n"):gsub("^%s*(.-)%s*$", "%1")
|
||||
|
||||
nowplaying = stream .. " [" .. format_time(position) .. "]"
|
||||
if status == "stopped" then
|
||||
nowplaying = "[stopped]"
|
||||
else
|
||||
local artist = stdout:match("tag artist (.-)\n"):gsub("^%s*(.-)%s*$", "%1")
|
||||
local title = stdout:match("tag title (.-)\n"):gsub("^%s*(.-)%s*$", "%1")
|
||||
if duration == -1 and stdout:find("stream ") then
|
||||
local stream = stdout:match("stream (.-)\n"):gsub("^%s*(.-)%s*$", "%1")
|
||||
|
||||
nowplaying = artist .. " - " .. title .. " [" .. format_time(position) .. "/" .. format_time(duration) .. "]"
|
||||
end
|
||||
nowplaying = stream .. " [" .. format_time(position) .. "]"
|
||||
else
|
||||
local artist = stdout:match("tag artist (.-)\n"):gsub("^%s*(.-)%s*$", "%1")
|
||||
local title = stdout:match("tag title (.-)\n"):gsub("^%s*(.-)%s*$", "%1")
|
||||
|
||||
if status == "stopped" or status == "paused" then
|
||||
nowplaying = nowplaying .. " [" .. status .. "]"
|
||||
nowplaying = artist .. " - " .. title .. " [" .. format_time(position) .. "/" .. format_time(duration) .. "]"
|
||||
end
|
||||
|
||||
if status == "paused" then
|
||||
nowplaying = nowplaying .. " [" .. status .. "]"
|
||||
end
|
||||
end
|
||||
|
||||
widget:set_markup(markup(beautiful.widget_music, gears.string.xml_escape(nowplaying)))
|
||||
|
@ -1319,7 +1323,8 @@ awful.rules.rules = {
|
|||
"Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size.
|
||||
"Wpa_gui",
|
||||
"veromix",
|
||||
"xtightvncviewer"
|
||||
"xtightvncviewer",
|
||||
"scrcpy",
|
||||
},
|
||||
|
||||
-- Note that the name property shown in xprop might be set slightly after creation of the client
|
||||
|
|
|
@ -23,14 +23,17 @@ run pipewire
|
|||
run picom --config ~/.config/picom.conf
|
||||
run xscreensaver -no-splash
|
||||
|
||||
run xmousepasteblock
|
||||
#run xmousepasteblock
|
||||
run xbindkeys -p
|
||||
|
||||
run flameshot
|
||||
run gpick
|
||||
|
||||
run radeon-profile
|
||||
|
||||
# manual pgrep because env vars
|
||||
if ! pgrep "nicotine" ; then
|
||||
notify-send "autostart: starting nicotine"
|
||||
env GTK_CSD=0 LD_PRELOAD=/usr/lib/libgtk3-nocsd.so.0 nicotine &
|
||||
gtk3-nocsd nicotine &
|
||||
else
|
||||
notify-send "autostart: nicotine already running"
|
||||
fi
|
||||
|
|
3
linux/.local/bin/cmus-status.sh
Executable file
3
linux/.local/bin/cmus-status.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
cmusfm "$@" &
|
||||
cmus-notify.sh "$@" &
|
3
linux/.local/bin/prettier-nano
Executable file
3
linux/.local/bin/prettier-nano
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
prettier --config ~/.prettierrc --write $1
|
37
linux/.local/bin/screenie-min
Executable file
37
linux/.local/bin/screenie-min
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
|
||||
# screenie - capture a screenshot and use elixiremanager to send to
|
||||
# elixi.re. uses flameshot as a drop-in replacement for kshare's "editing
|
||||
# before sending" mechanic
|
||||
|
||||
# based off lynnesbian's sshotr.sh,
|
||||
# https://gist.github.com/Lynnesbian/203e2a90a312cd02880f8e5762c01797
|
||||
|
||||
# this:
|
||||
# - uses ~/Screenshots as a folder to store them all
|
||||
# - requires notify-send, elixiremanager.sh requires it as well, so.
|
||||
# - uses flameshot, more @ https://github.com/lupoDharkael/flameshot
|
||||
# - On latest versions of flameshot, the Return key has been changed. You
|
||||
# want to set the return key to copy image, rather than upload to imgur.
|
||||
# - NOTE: press enter after doing a screenshot, instead of saving, for all
|
||||
# of this to work
|
||||
|
||||
# change this if wanted
|
||||
screenshot_folder="$HOME/Screenshots"
|
||||
|
||||
# set this to the path for elixiremanager.sh
|
||||
elixiremanager="$HOME/.local/bin/elixiremanager.sh"
|
||||
|
||||
mkdir -p "$screenshot_folder"
|
||||
date_str=$(date +'%Y-%m-%d-%H_%M_%S')
|
||||
target="$screenshot_folder/screenie-$date_str.png"
|
||||
|
||||
flameshot gui -r > "$target"
|
||||
|
||||
if [ ! -s "$target" ]; then
|
||||
notify-send "screenshot aborted, skipping sending"
|
||||
else
|
||||
aplay "$HOME/.local/bin/assets/capture.wav" 1>/dev/null 2>/dev/null &
|
||||
notify-send -t 5000 "screenie: sending: $target"
|
||||
echo "$target"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue