Compare commits
No commits in common. "61e5074af37849a983a3eb31ed2479c6c600e979" and "1d85769bc7fab79f2603ca93ed2673bd49d72132" have entirely different histories.
61e5074af3
...
1d85769bc7
4 changed files with 0 additions and 99 deletions
|
@ -1,54 +0,0 @@
|
||||||
# i3status configuration file.
|
|
||||||
# see "man i3status" for documentation.
|
|
||||||
|
|
||||||
# It is important that this file is edited as UTF-8.
|
|
||||||
# The following line should contain a sharp s:
|
|
||||||
# ß
|
|
||||||
# If the above line is not correctly displayed, fix your editor first!
|
|
||||||
|
|
||||||
general {
|
|
||||||
colors = false
|
|
||||||
interval = 5
|
|
||||||
output_format = "i3bar"
|
|
||||||
}
|
|
||||||
|
|
||||||
#order += "ipv6"
|
|
||||||
order += "wireless _first_"
|
|
||||||
order += "ethernet _first_"
|
|
||||||
order += "battery all"
|
|
||||||
#order += "disk /"
|
|
||||||
#order += "load"
|
|
||||||
#order += "memory"
|
|
||||||
order += "tztime local"
|
|
||||||
|
|
||||||
wireless _first_ {
|
|
||||||
format_up = "WiFi"
|
|
||||||
format_down = "sin WiFi"
|
|
||||||
}
|
|
||||||
|
|
||||||
ethernet _first_ {
|
|
||||||
format_up = "Eth %ip"
|
|
||||||
format_down = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
battery all {
|
|
||||||
format = "%status %percentage"
|
|
||||||
}
|
|
||||||
|
|
||||||
disk "/" {
|
|
||||||
format = "%avail"
|
|
||||||
}
|
|
||||||
|
|
||||||
load {
|
|
||||||
format = "%1min"
|
|
||||||
}
|
|
||||||
|
|
||||||
memory {
|
|
||||||
format = "%used | %available"
|
|
||||||
threshold_degraded = "1G"
|
|
||||||
format_degraded = "MEMORY < %available"
|
|
||||||
}
|
|
||||||
|
|
||||||
tztime local {
|
|
||||||
format = "%A %m/%d %H:%M"
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
sub-font=Inter
|
|
||||||
sub-blur=10
|
|
||||||
slang=eng,spa
|
|
||||||
save-position-on-quit=yes
|
|
||||||
hwdec=vaapi
|
|
|
@ -1,34 +0,0 @@
|
||||||
mp.add_key_binding("y", "fzf", function ()
|
|
||||||
local pl = mp.get_property_native("playlist")
|
|
||||||
if not pl then return end
|
|
||||||
|
|
||||||
local input_path = os.tmpname()
|
|
||||||
local input_file = io.open(input_path, "w")
|
|
||||||
for i, v in pairs(pl) do
|
|
||||||
local desc = v.filename
|
|
||||||
if v.title then desc = v.title end
|
|
||||||
input_file:write(i-1 .. ": " .. desc .. "\n")
|
|
||||||
end
|
|
||||||
input_file:close()
|
|
||||||
|
|
||||||
local output_path = os.tmpname()
|
|
||||||
os.execute("footclient bash -i -c 'cat "..input_path.." | fzf --no-sort > "..output_path.."'")
|
|
||||||
|
|
||||||
local output_file = io.open(output_path, "r")
|
|
||||||
local line = output_file:read("*l")
|
|
||||||
output_file:close()
|
|
||||||
os.remove(output_path)
|
|
||||||
|
|
||||||
if line then
|
|
||||||
local index = string.match(line, "%d+")
|
|
||||||
mp.commandv("playlist-play-index", index)
|
|
||||||
end
|
|
||||||
|
|
||||||
os.remove(input_path)
|
|
||||||
end)
|
|
||||||
|
|
||||||
mp.observe_property("media-title", "native", function (name, value)
|
|
||||||
if value then
|
|
||||||
print("Playing: " .. value)
|
|
||||||
end
|
|
||||||
end)
|
|
|
@ -1,14 +1,8 @@
|
||||||
source ~/.profile
|
source ~/.profile
|
||||||
if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then
|
if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then
|
||||||
doas mkdir -p /run/user
|
|
||||||
doas chmod 777 /run/user
|
|
||||||
XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
|
||||||
mkdir -p "$XDG_RUNTIME_DIR"
|
|
||||||
chmod 700 "$XDG_RUNTIME_DIR"
|
|
||||||
mkdir -p "$HOME/.local/share/sway"
|
mkdir -p "$HOME/.local/share/sway"
|
||||||
log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
|
log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
|
||||||
exec env \
|
exec env \
|
||||||
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
|
|
||||||
XDG_CURRENT_DESKTOP=sway \
|
XDG_CURRENT_DESKTOP=sway \
|
||||||
XDG_SESSION_DESKTOP=sway \
|
XDG_SESSION_DESKTOP=sway \
|
||||||
dbus-run-session sway >"$log" 2>&1
|
dbus-run-session sway >"$log" 2>&1
|
||||||
|
|
Loading…
Reference in a new issue