Compare commits
13 Commits
91e12f9304
...
f3f083709b
Author | SHA1 | Date |
---|---|---|
urosm | f3f083709b | |
urosm | 28bc64c50d | |
urosm | 3539ee24a5 | |
urosm | 18498f4c7b | |
urosm | 20a24daf99 | |
urosm | 72427ec684 | |
urosm | fcfbc69e97 | |
urosm | 11220e33ce | |
urosm | 58895abe4d | |
urosm | 2673a9188e | |
urosm | 8197b64794 | |
urosm | 2f906005e5 | |
urosm | a9225eef8b |
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<fontconfig>
|
||||
<match>
|
||||
<edit name="pixelsize"><double>18</double></edit>
|
||||
</match>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer><family>Agave</family></prefer>
|
||||
</alias>
|
||||
</fontconfig>
|
|
@ -0,0 +1,24 @@
|
|||
[colors]
|
||||
foreground=e3e0e1
|
||||
background=292526
|
||||
regular0=292526
|
||||
regular1=ff404f
|
||||
regular2=00a147
|
||||
regular3=e06e00
|
||||
regular4=6185ff
|
||||
regular5=ff3e8b
|
||||
regular6=0095d7
|
||||
regular7=e3e0e1
|
||||
bright0=958a8d
|
||||
bright1=ffb3b6
|
||||
bright2=00e46a
|
||||
bright3=ffb598
|
||||
bright4=b8c3ff
|
||||
bright5=ffb1c5
|
||||
bright6=92ccff
|
||||
bright7=f4f3f3
|
||||
|
||||
[search-bindings]
|
||||
find-prev=Control+Shift+n
|
||||
find-next=Control+n
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
[main]
|
||||
icons-enabled=no
|
||||
width=72
|
||||
|
||||
[colors]
|
||||
background=e3e0e1ff
|
||||
text=292526ff
|
||||
match=ff3e8bff
|
||||
selection=e3e0e1ff
|
||||
selection-text=6185ffff
|
||||
selection-match=ff3e8bff
|
||||
border=6185ffff
|
||||
|
||||
[border]
|
||||
radius=0
|
|
@ -0,0 +1,13 @@
|
|||
background-color=#e3e0e1
|
||||
text-color=#6185ff
|
||||
border-size=1
|
||||
border-color=#6185ff
|
||||
icons=0
|
||||
format=%s\n%b
|
||||
default-timeout=5000
|
||||
anchor=bottom-right
|
||||
|
||||
[urgency=critical]
|
||||
text-color=#ff404f
|
||||
border-color=#ff404f
|
||||
default-timeout=0
|
|
@ -0,0 +1,19 @@
|
|||
[Default Applications]
|
||||
application/pdf=org.pwmt.zathura.desktop
|
||||
text/english=nvim.desktop
|
||||
text/plain=nvim.desktop
|
||||
text/x-makefile=nvim.desktop
|
||||
text/x-c++hdr=nvim.desktop
|
||||
text/x-c++src=nvim.desktop
|
||||
text/x-chdr=nvim.desktop
|
||||
text/x-csrc=nvim.desktop
|
||||
text/x-java=nvim.desktop
|
||||
text/x-moc=nvim.desktop
|
||||
text/x-pascal=nvim.desktop
|
||||
text/x-tcl=nvim.desktop
|
||||
text/x-tex=nvim.desktop
|
||||
application/x-shellscript=nvim.desktop
|
||||
text/x-c=nvim.desktop
|
||||
text/x-c++=nvim.desktop
|
||||
x-scheme-handler/http=firefox-esr.desktop
|
||||
x-scheme-handler/https=firefox-esr.desktop
|
|
@ -0,0 +1,10 @@
|
|||
UP ignore
|
||||
DOWN ignore
|
||||
LEFT repeatable playlist-prev
|
||||
RIGHT repeatable playlist-next
|
||||
|
||||
MBTN_RIGHT script-binding drag-to-pan
|
||||
MBTN_LEFT script-binding pan-follows-cursor
|
||||
MBTN_LEFT_DBL ignore
|
||||
WHEEL_UP script-message cursor-centric-zoom 0.1
|
||||
WHEEL_DOWN script-message cursor-centric-zoom -0.1
|
|
@ -0,0 +1,8 @@
|
|||
# window
|
||||
image-display-duration=inf
|
||||
|
||||
# osd
|
||||
osd-level=0
|
||||
|
||||
# gpu renderer options
|
||||
background="#292526"
|
|
@ -0,0 +1,282 @@
|
|||
local opts = {
|
||||
drag_to_pan_margin = 50,
|
||||
drag_to_pan_move_if_full_view = false,
|
||||
|
||||
pan_follows_cursor_margin = 50,
|
||||
|
||||
cursor_centric_zoom_margin = 50,
|
||||
cursor_centric_zoom_auto_center = true,
|
||||
cursor_centric_zoom_dezoom_if_full_view = false,
|
||||
}
|
||||
local options = require 'mp.options'
|
||||
local msg = require 'mp.msg'
|
||||
local assdraw = require 'mp.assdraw'
|
||||
|
||||
options.read_options(opts, nil, function() end)
|
||||
|
||||
function clamp(value, low, high)
|
||||
if value <= low then
|
||||
return low
|
||||
elseif value >= high then
|
||||
return high
|
||||
else
|
||||
return value
|
||||
end
|
||||
end
|
||||
|
||||
local cleanup = nil -- function set up by drag-to-pan/pan-follows cursor and must be called to clean lingering state
|
||||
|
||||
function drag_to_pan_handler(table)
|
||||
if cleanup then
|
||||
cleanup()
|
||||
cleanup = nil
|
||||
end
|
||||
if table["event"] == "down" then
|
||||
local dim = mp.get_property_native("osd-dimensions")
|
||||
if not dim then return end
|
||||
local mouse_pos_origin, video_pan_origin = {}, {}
|
||||
local moved = false
|
||||
mouse_pos_origin[1], mouse_pos_origin[2] = mp.get_mouse_pos()
|
||||
video_pan_origin[1] = mp.get_property_number("video-pan-x")
|
||||
video_pan_origin[2] = mp.get_property_number("video-pan-y")
|
||||
local video_size = { dim.w - dim.ml - dim.mr, dim.h - dim.mt - dim.mb }
|
||||
local margin = opts.drag_to_pan_margin
|
||||
local move_up = true
|
||||
local move_lateral = true
|
||||
if not opts.drag_to_pan_move_if_full_view then
|
||||
if dim.ml >= 0 and dim.mr >= 0 then
|
||||
move_lateral = false
|
||||
end
|
||||
if dim.mt >= 0 and dim.mb >= 0 then
|
||||
move_up = false
|
||||
end
|
||||
end
|
||||
if not move_up and not move_lateral then return end
|
||||
local idle = function()
|
||||
if moved then
|
||||
local mX, mY = mp.get_mouse_pos()
|
||||
local pX = video_pan_origin[1]
|
||||
local pY = video_pan_origin[2]
|
||||
if move_lateral then
|
||||
pX = video_pan_origin[1] + (mX - mouse_pos_origin[1]) / video_size[1]
|
||||
if 2 * margin > dim.ml + dim.mr then
|
||||
pX = clamp(pX,
|
||||
(-margin + dim.w / 2) / video_size[1] - 0.5,
|
||||
(margin - dim.w / 2) / video_size[1] + 0.5)
|
||||
else
|
||||
pX = clamp(pX,
|
||||
(margin - dim.w / 2) / video_size[1] + 0.5,
|
||||
(-margin + dim.w / 2) / video_size[1] - 0.5)
|
||||
end
|
||||
end
|
||||
if move_up then
|
||||
pY = video_pan_origin[2] + (mY - mouse_pos_origin[2]) / video_size[2]
|
||||
if 2 * margin > dim.mt + dim.mb then
|
||||
pY = clamp(pY,
|
||||
(-margin + dim.h / 2) / video_size[2] - 0.5,
|
||||
(margin - dim.h / 2) / video_size[2] + 0.5)
|
||||
else
|
||||
pY = clamp(pY,
|
||||
(margin - dim.h / 2) / video_size[2] + 0.5,
|
||||
(-margin + dim.h / 2) / video_size[2] - 0.5)
|
||||
end
|
||||
end
|
||||
mp.command("no-osd set video-pan-x " .. clamp(pX, -3, 3) .. "; no-osd set video-pan-y " .. clamp(pY, -3, 3))
|
||||
moved = false
|
||||
end
|
||||
end
|
||||
mp.register_idle(idle)
|
||||
mp.add_forced_key_binding("mouse_move", "image-viewer-mouse-move", function() moved = true end)
|
||||
cleanup = function()
|
||||
mp.remove_key_binding("image-viewer-mouse-move")
|
||||
mp.unregister_idle(idle)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function pan_follows_cursor_handler(table)
|
||||
if cleanup then
|
||||
cleanup()
|
||||
cleanup = nil
|
||||
end
|
||||
if table["event"] == "down" then
|
||||
local dim = mp.get_property_native("osd-dimensions")
|
||||
if not dim then return end
|
||||
local video_size = { dim.w - dim.ml - dim.mr, dim.h - dim.mt - dim.mb }
|
||||
local moved = true
|
||||
local idle = function()
|
||||
if moved then
|
||||
local mX, mY = mp.get_mouse_pos()
|
||||
local x = math.min(1, math.max(-2 * mX / dim.w + 1, -1))
|
||||
local y = math.min(1, math.max(-2 * mY / dim.h + 1, -1))
|
||||
local command = ""
|
||||
local margin = opts.pan_follows_cursor_margin
|
||||
if dim.ml + dim.mr < 0 then
|
||||
command = command ..
|
||||
"no-osd set video-pan-x " .. clamp(x * (2 * margin - dim.ml - dim.mr) / (2 * video_size[1]), -3, 3) .. ";"
|
||||
elseif mp.get_property_number("video-pan-x") ~= 0 then
|
||||
command = command .. "no-osd set video-pan-x " .. "0;"
|
||||
end
|
||||
if dim.mt + dim.mb < 0 then
|
||||
command = command ..
|
||||
"no-osd set video-pan-y " .. clamp(y * (2 * margin - dim.mt - dim.mb) / (2 * video_size[2]), -3, 3) .. ";"
|
||||
elseif mp.get_property_number("video-pan-y") ~= 0 then
|
||||
command = command .. "no-osd set video-pan-y " .. "0;"
|
||||
end
|
||||
if command ~= "" then
|
||||
mp.command(command)
|
||||
end
|
||||
moved = false
|
||||
end
|
||||
end
|
||||
mp.register_idle(idle)
|
||||
mp.add_forced_key_binding("mouse_move", "image-viewer-mouse-move", function() moved = true end)
|
||||
cleanup = function()
|
||||
mp.remove_key_binding("image-viewer-mouse-move")
|
||||
mp.unregister_idle(idle)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function cursor_centric_zoom_handler(amt)
|
||||
local zoom_inc = tonumber(amt)
|
||||
if not zoom_inc or zoom_inc == 0 then return end
|
||||
local dim = mp.get_property_native("osd-dimensions")
|
||||
if not dim then return end
|
||||
|
||||
local margin = opts.cursor_centric_zoom_margin
|
||||
|
||||
local video_size = { dim.w - dim.ml - dim.mr, dim.h - dim.mt - dim.mb }
|
||||
|
||||
-- the size in pixels of the (in|de)crement
|
||||
local diff_width = (2 ^ zoom_inc - 1) * video_size[1]
|
||||
local diff_height = (2 ^ zoom_inc - 1) * video_size[2]
|
||||
if not opts.cursor_centric_zoom_dezoom_if_full_view and
|
||||
zoom_inc < 0 and
|
||||
video_size[1] + diff_width + 2 * margin <= dim.w and
|
||||
video_size[2] + diff_height + 2 * margin <= dim.h
|
||||
then
|
||||
-- the zoom decrement is too much, reduce it such that the full image is visible, no more, no less
|
||||
-- in addition, this should take care of trying too zoom out while everything is already visible
|
||||
local new_zoom_inc_x = math.log((dim.w - 2 * margin) / video_size[1]) / math.log(2)
|
||||
local new_zoom_inc_y = math.log((dim.h - 2 * margin) / video_size[2]) / math.log(2)
|
||||
local new_zoom_inc = math.min(0, math.min(new_zoom_inc_x, new_zoom_inc_y))
|
||||
zoom_inc = new_zoom_inc
|
||||
diff_width = (2 ^ zoom_inc - 1) * video_size[1]
|
||||
diff_height = (2 ^ zoom_inc - 1) * video_size[2]
|
||||
end
|
||||
local new_width = video_size[1] + diff_width
|
||||
local new_height = video_size[2] + diff_height
|
||||
|
||||
local mouse_pos_origin = {}
|
||||
mouse_pos_origin[1], mouse_pos_origin[2] = mp.get_mouse_pos()
|
||||
local new_pan_x, new_pan_y
|
||||
|
||||
-- some additional constraints:
|
||||
-- if image can be fully visible (in either direction), set pan to 0
|
||||
-- if border would show on either side, then prefer adjusting the pan even if not cursor-centric
|
||||
local auto_c = opts.cursor_centric_zoom_auto_center
|
||||
if auto_c and video_size[1] + diff_width + 2 * margin <= dim.w then
|
||||
new_pan_x = 0
|
||||
else
|
||||
local pan_x = mp.get_property("video-pan-x")
|
||||
local rx = (dim.ml + video_size[1] / 2 - mouse_pos_origin[1]) / (video_size[1] / 2)
|
||||
new_pan_x = (pan_x * video_size[1] + rx * diff_width / 2) / new_width
|
||||
if auto_c then
|
||||
new_pan_x = clamp(new_pan_x, (dim.w - 2 * margin) / (2 * new_width) - 0.5,
|
||||
-(dim.w - 2 * margin) / (2 * new_width) + 0.5)
|
||||
end
|
||||
end
|
||||
|
||||
if auto_c and video_size[2] + diff_height + 2 * margin <= dim.h then
|
||||
new_pan_y = 0
|
||||
else
|
||||
local pan_y = mp.get_property("video-pan-y")
|
||||
local ry = (dim.mt + video_size[2] / 2 - mouse_pos_origin[2]) / (video_size[2] / 2)
|
||||
new_pan_y = (pan_y * video_size[2] + ry * diff_height / 2) / new_height
|
||||
if auto_c then
|
||||
new_pan_y = clamp(new_pan_y, (dim.h - 2 * margin) / (2 * new_height) - 0.5,
|
||||
-(dim.h - 2 * margin) / (2 * new_height) + 0.5)
|
||||
end
|
||||
end
|
||||
|
||||
local zoom_origin = mp.get_property("video-zoom")
|
||||
mp.command("no-osd set video-zoom " ..
|
||||
zoom_origin + zoom_inc ..
|
||||
"; no-osd set video-pan-x " .. clamp(new_pan_x, -3, 3) .. "; no-osd set video-pan-y " .. clamp(new_pan_y, -3, 3))
|
||||
end
|
||||
|
||||
function align_border(x, y)
|
||||
local dim = mp.get_property_native("osd-dimensions")
|
||||
if not dim then return end
|
||||
local video_size = { dim.w - dim.ml - dim.mr, dim.h - dim.mt - dim.mb }
|
||||
local x, y = tonumber(x), tonumber(y)
|
||||
local command = ""
|
||||
if x then
|
||||
command = command .. "no-osd set video-pan-x " .. clamp(-x * (dim.ml + dim.mr) / (2 * video_size[1]), -3, 3) .. ";"
|
||||
end
|
||||
if y then
|
||||
command = command .. "no-osd set video-pan-y " .. clamp(-y * (dim.mt + dim.mb) / (2 * video_size[2]), -3, 3) .. ";"
|
||||
end
|
||||
if command ~= "" then
|
||||
mp.command(command)
|
||||
end
|
||||
end
|
||||
|
||||
function pan_image(axis, amount, zoom_invariant, image_constrained)
|
||||
amount = tonumber(amount)
|
||||
if not amount or amount == 0 or axis ~= "x" and axis ~= "y" then return end
|
||||
if zoom_invariant == "yes" then
|
||||
amount = amount / 2 ^ mp.get_property_number("video-zoom")
|
||||
end
|
||||
local prop = "video-pan-" .. axis
|
||||
local old_pan = mp.get_property_number(prop)
|
||||
if image_constrained == "yes" then
|
||||
local dim = mp.get_property_native("osd-dimensions")
|
||||
if not dim then return end
|
||||
local margin =
|
||||
(axis == "x" and amount > 0) and dim.ml
|
||||
or (axis == "x" and amount < 0) and dim.mr
|
||||
or (amount > 0) and dim.mt
|
||||
or (amount < 0) and dim.mb
|
||||
local vid_size = (axis == "x") and (dim.w - dim.ml - dim.mr) or (dim.h - dim.mt - dim.mb)
|
||||
local pixels_moved = math.abs(amount) * vid_size
|
||||
-- the margin is already visible, no point going further
|
||||
if margin >= 0 then
|
||||
return
|
||||
elseif margin + pixels_moved > 0 then
|
||||
amount = -(math.abs(amount) / amount) * margin / vid_size
|
||||
end
|
||||
end
|
||||
mp.set_property_number(prop, old_pan + amount)
|
||||
end
|
||||
|
||||
function rotate_video(amt)
|
||||
local rot = mp.get_property_number("video-rotate")
|
||||
rot = (rot + amt) % 360
|
||||
mp.set_property_number("video-rotate", rot)
|
||||
end
|
||||
|
||||
function reset_pan_if_visible()
|
||||
local dim = mp.get_property_native("osd-dimensions")
|
||||
if not dim then return end
|
||||
local command = ""
|
||||
if (dim.ml + dim.mr >= 0) then
|
||||
command = command .. "no-osd set video-pan-x 0" .. ";"
|
||||
end
|
||||
if (dim.mt + dim.mb >= 0) then
|
||||
command = command .. "no-osd set video-pan-y 0" .. ";"
|
||||
end
|
||||
if command ~= "" then
|
||||
mp.command(command)
|
||||
end
|
||||
end
|
||||
|
||||
mp.add_key_binding(nil, "drag-to-pan", drag_to_pan_handler, { complex = true })
|
||||
mp.add_key_binding(nil, "pan-follows-cursor", pan_follows_cursor_handler, { complex = true })
|
||||
mp.add_key_binding(nil, "cursor-centric-zoom", cursor_centric_zoom_handler)
|
||||
mp.add_key_binding(nil, "align-border", align_border)
|
||||
mp.add_key_binding(nil, "pan-image", pan_image)
|
||||
mp.add_key_binding(nil, "rotate-video", rotate_video)
|
||||
mp.add_key_binding(nil, "reset-pan-if-visible", reset_pan_if_visible)
|
||||
mp.add_key_binding(nil, "force-print-filename", force_print_filename)
|
|
@ -0,0 +1,25 @@
|
|||
import os
|
||||
import atexit
|
||||
import readline
|
||||
|
||||
if "PYTHONHISTFILE" in os.environ:
|
||||
histfile = os.path.expanduser(os.environ["PYTHONHISTFILE"])
|
||||
elif "XDG_STATE_HOME" in os.environ:
|
||||
histfile = os.path.join(os.path.expanduser(
|
||||
os.environ["XDG_STATE_HOME"]), "python", "python_history")
|
||||
else:
|
||||
histfile = os.path.join(os.path.expanduser("~"), ".python_history")
|
||||
|
||||
|
||||
histfile = os.path.abspath(histfile)
|
||||
_dir, _ = os.path.split(histfile)
|
||||
os.makedirs(_dir, exist_ok=True)
|
||||
|
||||
|
||||
try:
|
||||
readline.read_history_file(histfile)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
|
||||
atexit.register(readline.write_history_file, histfile)
|
|
@ -16,8 +16,8 @@ set $email thunderbird
|
|||
# menus
|
||||
set $drun fuzzel
|
||||
set $mountmenu fuzzel_mount.sh
|
||||
set $findmenu fuzzel_find_file.sh
|
||||
set $openmenu fuzzel_open_file.sh
|
||||
set $findmenu fuzzel_find_and_open.sh
|
||||
set $websearchmenu fuzzel_duckduckgo_lucky.sh
|
||||
set $wifimenu $term_float nmtui
|
||||
|
||||
# colors
|
||||
|
@ -54,8 +54,8 @@ bindsym $mod+shift+w exec $email
|
|||
bindsym $mod+space exec $drun
|
||||
bindsym $mod+home exec $wifimenu
|
||||
bindsym $mod+insert exec $mountmenu
|
||||
bindsym $mod+e exec $openmenu
|
||||
bindsym $mod+shift+e exec $findmenu
|
||||
bindsym $mod+e exec $findmenu
|
||||
bindsym $mod+shift+e exec $websearchmenu
|
||||
|
||||
# notifications
|
||||
bindsym $mod+slash exec notify-send -e -h string:x-canonical-private-synchronous:status "$(date)" "Battery: $(cat /sys/class/power_supply/BAT0/capacity)%"
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
XDG_DOCUMENTS_DIR="$HOME/doc"
|
||||
XDG_DOWNLOAD_DIR="$HOME/net"
|
||||
XDG_DESKTOP_DIR="$HOME/net"
|
||||
XDG_MUSIC_DIR="$HOME/net"
|
||||
XDG_PICTURES_DIR="$HOME/net"
|
||||
XDG_PUBLICSHARE_DIR="$HOME/net"
|
||||
XDG_TEMPLATES_DIR="$HOME/net"
|
||||
XDG_VIDEOS_DIR="$HOME/net"
|
|
@ -0,0 +1,30 @@
|
|||
set selection-clipboard clipboard
|
||||
set completion-bg "#e3e0e1"
|
||||
set completion-fg "#ff3e8b"
|
||||
set completion-group-bg "#e3e0e1"
|
||||
set completion-group-fg "#6185ff"
|
||||
set completion-highlight-bg "#ff3e8b"
|
||||
set completion-highlight-fg "#e3e0e1"
|
||||
set default-fg "#e3e0e1"
|
||||
set default-bg "#292526"
|
||||
set inputbar-bg "#292526"
|
||||
set inputbar-fg "#6185ff"
|
||||
set notification-bg "#292526"
|
||||
set notification-fg "#6185ff"
|
||||
set notification-error-bg "#292526"
|
||||
set notification-error-fg "#ff404f"
|
||||
set notification-warning-bg "#292526"
|
||||
set notification-warning-fg "#e06e00"
|
||||
set statusbar-bg "#292526"
|
||||
set statusbar-fg "#ff3e8b"
|
||||
set highlight-color "#6185ff"
|
||||
set highlight-fg "#00ff00" # find out what this does
|
||||
set highlight-active-color "#ff3e8b"
|
||||
set recolor-darkcolor "#e3e0e1"
|
||||
set recolor-lightcolor "#292526"
|
||||
set render-loading-bg "#292526"
|
||||
set render-loading-fg "#6185ff"
|
||||
set index-fg "#ff3e8b"
|
||||
set index-bg "#e3e0e1"
|
||||
set index-active-fg "#e3e0e1"
|
||||
set index-active-bg "#ff3e8b"
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/sh
|
||||
#
|
||||
# fuzzel_duckduckgo_lucky.sh
|
||||
#
|
||||
# Search on duckduckgo.com and open first result.
|
||||
|
||||
search=$(/usr/bin/fuzzel --dmenu --prompt "duckduckgo.com: ") || exit
|
||||
url="https://duckduckgo.com/?q=!+$(printf %s "$search" | tr " " "+")"
|
||||
|
||||
exec xdg-open "$url"
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/sh
|
||||
#
|
||||
# fuzzel_find_and_open.sh
|
||||
#
|
||||
# Search for file and open it. Requires fuzzel, find and xdg-open.
|
||||
|
||||
args=$(/usr/bin/fuzzel --dmenu --prompt "$ find ") || exit
|
||||
# shellcheck disable=SC2086
|
||||
selection=$(find $args | /usr/bin/fuzzel --dmenu --prompt "$ xdg-open ")
|
||||
|
||||
if [ -n "$selection" ]; then
|
||||
exec /usr/bin/xdg-open "$selection"
|
||||
fi
|
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/sh
|
||||
#
|
||||
# fuzzel_mount.sh
|
||||
#
|
||||
# Mount devices. Requires fuzzel and udisksctl.
|
||||
|
||||
LSBLK_PART_TYPE="part"
|
||||
LSBLK_LIST=$(lsblk -Ppo name,type,mountpoint)
|
||||
|
||||
while read -r line; do
|
||||
while read -r keyval; do
|
||||
eval "$keyval"
|
||||
done <<- EOF
|
||||
$line
|
||||
EOF
|
||||
|
||||
expr "$NAME" : "/dev/sda." && continue
|
||||
[ "$TYPE" = "$LSBLK_PART_TYPE" ] || continue
|
||||
|
||||
if [ -n "$MOUNTPOINT" ]; then
|
||||
option_list=$(printf %s\\n "udisksctl unmount -b $NAME" "$option_list")
|
||||
else
|
||||
option_list=$(printf %s\\n "udisksctl mount -b $NAME" "$option_list")
|
||||
fi
|
||||
|
||||
done <<- EOF
|
||||
$LSBLK_LIST
|
||||
EOF
|
||||
|
||||
selection=$(printf %s "$option_list" | fuzzel --dmenu --prompt "$ ")
|
||||
|
||||
if [ -n "$selection" ]; then
|
||||
# TODO: notification and error reporting
|
||||
exec $selection
|
||||
fi
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,604 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="sl-SI">
|
||||
<info>
|
||||
<translator>
|
||||
<name>Kristof Ostir</name>
|
||||
</translator>
|
||||
<translator>
|
||||
<name>ratek1</name>
|
||||
</translator>
|
||||
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
|
||||
<updated>2014-11-06T09:41:02+00:00</updated>
|
||||
</info>
|
||||
<style-options punctuation-in-quote="false"/>
|
||||
<date form="text">
|
||||
<date-part name="day" form="numeric" suffix=". "/>
|
||||
<date-part name="month" suffix=" "/>
|
||||
<date-part name="year"/>
|
||||
</date>
|
||||
<date form="numeric">
|
||||
<date-part name="day" form="numeric" suffix=". "/>
|
||||
<date-part name="month" form="numeric" suffix=". "/>
|
||||
<date-part name="year"/>
|
||||
</date>
|
||||
<terms>
|
||||
<term name="advance-online-publication">advance online publication</term>
|
||||
<term name="album">album</term>
|
||||
<term name="audio-recording">audio recording</term>
|
||||
<term name="film">film</term>
|
||||
<term name="henceforth">henceforth</term>
|
||||
<term name="loc-cit">loc. cit.</term> <!-- like ibid., the abbreviated form is the regular form -->
|
||||
<term name="no-place">no place</term>
|
||||
<term name="no-place" form="short">n.p.</term>
|
||||
<term name="no-publisher">no publisher</term> <!-- sine nomine -->
|
||||
<term name="no-publisher" form="short">n.p.</term>
|
||||
<term name="on">on</term>
|
||||
<term name="op-cit">op. cit.</term> <!-- like ibid., the abbreviated form is the regular form -->
|
||||
<term name="original-work-published">original work published</term>
|
||||
<term name="personal-communication">osebna komunikacija</term>
|
||||
<term name="podcast">podcast</term>
|
||||
<term name="podcast-episode">podcast episode</term>
|
||||
<term name="preprint">preprint</term>
|
||||
<term name="radio-broadcast">radio broadcast</term>
|
||||
<term name="radio-series">radio series</term>
|
||||
<term name="radio-series-episode">radio series episode</term>
|
||||
<term name="special-issue">special issue</term>
|
||||
<term name="special-section">special section</term>
|
||||
<term name="television-broadcast">television broadcast</term>
|
||||
<term name="television-series">television series</term>
|
||||
<term name="television-series-episode">television series episode</term>
|
||||
<term name="video">video</term>
|
||||
<term name="working-paper">working paper</term>
|
||||
<term name="accessed">pridobljeno</term>
|
||||
<term name="and">in</term>
|
||||
<term name="and others">in drugi</term>
|
||||
<term name="anonymous">anonimni</term>
|
||||
<term name="anonymous" form="short">anon.</term>
|
||||
<term name="at">pri</term>
|
||||
<term name="available at">dostopno na</term>
|
||||
<term name="by"></term>
|
||||
<term name="circa">približno</term>
|
||||
<term name="circa" form="short">prib.</term>
|
||||
<term name="cited">citirano</term>
|
||||
<term name="edition">
|
||||
<single>izdaja</single>
|
||||
<multiple>izdaje</multiple>
|
||||
</term>
|
||||
<term name="edition" form="short">izd.</term>
|
||||
<term name="et-al">idr.</term>
|
||||
<term name="forthcoming">pred izidom</term>
|
||||
<term name="from">s</term>
|
||||
<term name="ibid">isto</term>
|
||||
<term name="in">v</term>
|
||||
<term name="in press">v tisku</term>
|
||||
<term name="internet">internet</term>
|
||||
<term name="letter">pismo</term>
|
||||
<term name="no date">brez datuma</term>
|
||||
<term name="no date" form="short">b. d.</term>
|
||||
<term name="online">na spletu</term>
|
||||
<term name="presented at">predstavljeno na</term>
|
||||
<term name="reference">
|
||||
<single>referenca</single>
|
||||
<multiple>reference</multiple>
|
||||
</term>
|
||||
<term name="reference" form="short">
|
||||
<single>ref.</single>
|
||||
<multiple>ref.</multiple>
|
||||
</term>
|
||||
<term name="retrieved">pridobljeno</term>
|
||||
<term name="scale">merilo</term>
|
||||
<term name="version">različica</term>
|
||||
|
||||
<!-- LONG ITEM TYPE FORMS -->
|
||||
<term name="article">preprint</term>
|
||||
<term name="article-journal">journal article</term>
|
||||
<term name="article-magazine">magazine article</term>
|
||||
<term name="article-newspaper">newspaper article</term>
|
||||
<term name="bill">bill</term>
|
||||
<!-- book is in the list of locator terms -->
|
||||
<term name="broadcast">broadcast</term>
|
||||
<!-- chapter is in the list of locator terms -->
|
||||
<term name="classic">classic</term>
|
||||
<term name="collection">collection</term>
|
||||
<term name="dataset">dataset</term>
|
||||
<term name="document">document</term>
|
||||
<term name="entry">entry</term>
|
||||
<term name="entry-dictionary">dictionary entry</term>
|
||||
<term name="entry-encyclopedia">encyclopedia entry</term>
|
||||
<term name="event">event</term>
|
||||
<!-- figure is in the list of locator terms -->
|
||||
<term name="graphic">graphic</term>
|
||||
<term name="hearing">hearing</term>
|
||||
<term name="interview">intervju</term>
|
||||
<term name="legal_case">legal case</term>
|
||||
<term name="legislation">legislation</term>
|
||||
<term name="manuscript">manuscript</term>
|
||||
<term name="map">map</term>
|
||||
<term name="motion_picture">video recording</term>
|
||||
<term name="musical_score">musical score</term>
|
||||
<term name="pamphlet">pamphlet</term>
|
||||
<term name="paper-conference">conference paper</term>
|
||||
<term name="patent">patent</term>
|
||||
<term name="performance">performance</term>
|
||||
<term name="periodical">periodical</term>
|
||||
<term name="personal_communication">osebna komunikacija</term>
|
||||
<term name="post">post</term>
|
||||
<term name="post-weblog">blog post</term>
|
||||
<term name="regulation">regulation</term>
|
||||
<term name="report">report</term>
|
||||
<term name="review">review</term>
|
||||
<term name="review-book">book review</term>
|
||||
<term name="software">software</term>
|
||||
<term name="song">audio recording</term>
|
||||
<term name="speech">presentation</term>
|
||||
<term name="standard">standard</term>
|
||||
<term name="thesis">thesis</term>
|
||||
<term name="treaty">treaty</term>
|
||||
<term name="webpage">webpage</term>
|
||||
|
||||
<!-- SHORT ITEM TYPE FORMS -->
|
||||
<term name="article-journal" form="short">journal art.</term>
|
||||
<term name="article-magazine" form="short">mag. art.</term>
|
||||
<term name="article-newspaper" form="short">newspaper art.</term>
|
||||
<!-- book is in the list of locator terms -->
|
||||
<!-- chapter is in the list of locator terms -->
|
||||
<term name="document" form="short">doc.</term>
|
||||
<!-- figure is in the list of locator terms -->
|
||||
<term name="graphic" form="short">graph.</term>
|
||||
<term name="interview" form="short">interv.</term>
|
||||
<term name="manuscript" form="short">MS</term>
|
||||
<term name="motion_picture" form="short">video rec.</term>
|
||||
<term name="report" form="short">rep.</term>
|
||||
<term name="review" form="short">rev.</term>
|
||||
<term name="review-book" form="short">bk. rev.</term>
|
||||
<term name="song" form="short">audio rec.</term>
|
||||
|
||||
<!-- HISTORICAL ERA TERMS -->
|
||||
<term name="ad">n. št.</term>
|
||||
<term name="bc">pr. n. št.</term>
|
||||
<term name="bce">BCE</term>
|
||||
<term name="ce">CE</term>
|
||||
|
||||
<!-- PUNCTUATION -->
|
||||
<term name="open-quote">„</term>
|
||||
<term name="close-quote">“</term>
|
||||
<term name="open-inner-quote">‚</term>
|
||||
<term name="close-inner-quote">‘</term>
|
||||
<term name="page-range-delimiter">–</term>
|
||||
<term name="colon">:</term>
|
||||
<term name="comma">,</term>
|
||||
<term name="semicolon">;</term>
|
||||
|
||||
<!-- ORDINALS -->
|
||||
<term name="ordinal">.</term>
|
||||
|
||||
<!-- LONG ORDINALS -->
|
||||
<term name="long-ordinal-01">prva</term>
|
||||
<term name="long-ordinal-02">druga</term>
|
||||
<term name="long-ordinal-03">tretja</term>
|
||||
<term name="long-ordinal-04">četrta</term>
|
||||
<term name="long-ordinal-05">peta</term>
|
||||
<term name="long-ordinal-06">šesta</term>
|
||||
<term name="long-ordinal-07">sedma</term>
|
||||
<term name="long-ordinal-08">osma</term>
|
||||
<term name="long-ordinal-09">deveta</term>
|
||||
<term name="long-ordinal-10">deseta</term>
|
||||
|
||||
<!-- LONG LOCATOR FORMS -->
|
||||
<term name="act">
|
||||
<single>act</single>
|
||||
<multiple>acts</multiple>
|
||||
</term>
|
||||
<term name="appendix">
|
||||
<single>appendix</single>
|
||||
<multiple>appendices</multiple>
|
||||
</term>
|
||||
<term name="article-locator">
|
||||
<single>article</single>
|
||||
<multiple>articles</multiple>
|
||||
</term>
|
||||
<term name="canon">
|
||||
<single>canon</single>
|
||||
<multiple>canons</multiple>
|
||||
</term>
|
||||
<term name="elocation">
|
||||
<single>location</single>
|
||||
<multiple>locations</multiple>
|
||||
</term>
|
||||
<term name="equation">
|
||||
<single>equation</single>
|
||||
<multiple>equations</multiple>
|
||||
</term>
|
||||
<term name="rule">
|
||||
<single>rule</single>
|
||||
<multiple>rules</multiple>
|
||||
</term>
|
||||
<term name="scene">
|
||||
<single>scene</single>
|
||||
<multiple>scenes</multiple>
|
||||
</term>
|
||||
<term name="table">
|
||||
<single>table</single>
|
||||
<multiple>tables</multiple>
|
||||
</term>
|
||||
<term name="timestamp"> <!-- generally blank -->
|
||||
<single></single>
|
||||
<multiple></multiple>
|
||||
</term>
|
||||
<term name="title-locator">
|
||||
<single>title</single>
|
||||
<multiple>titles</multiple>
|
||||
</term>
|
||||
<term name="book">
|
||||
<single>knjiga</single>
|
||||
<multiple>knjige</multiple>
|
||||
</term>
|
||||
<term name="chapter">
|
||||
<single>poglavje</single>
|
||||
<multiple>poglavja</multiple>
|
||||
</term>
|
||||
<term name="column">
|
||||
<single>stolpec</single>
|
||||
<multiple>stolpci</multiple>
|
||||
</term>
|
||||
<term name="figure">
|
||||
<single>slika</single>
|
||||
<multiple>slike</multiple>
|
||||
</term>
|
||||
<term name="folio">
|
||||
<single>folio</single>
|
||||
<multiple>folii</multiple>
|
||||
</term>
|
||||
<term name="issue">
|
||||
<single>številka</single>
|
||||
<multiple>številke</multiple>
|
||||
</term>
|
||||
<term name="line">
|
||||
<single>vrstica</single>
|
||||
<multiple>vrstice</multiple>
|
||||
</term>
|
||||
<term name="note">
|
||||
<single>opomba</single>
|
||||
<multiple>opombe</multiple>
|
||||
</term>
|
||||
<term name="opus">
|
||||
<single>opus</single>
|
||||
<multiple>opusi</multiple>
|
||||
</term>
|
||||
<term name="page">
|
||||
<single>stran</single>
|
||||
<multiple>strani</multiple>
|
||||
</term>
|
||||
<term name="number-of-pages">
|
||||
<single>stran</single>
|
||||
<multiple>strani</multiple>
|
||||
</term>
|
||||
<term name="paragraph">
|
||||
<single>odstavek</single>
|
||||
<multiple>odstavki</multiple>
|
||||
</term>
|
||||
<term name="part">
|
||||
<single>del</single>
|
||||
<multiple>deli</multiple>
|
||||
</term>
|
||||
<term name="section">
|
||||
<single>odsek</single>
|
||||
<multiple>odseki</multiple>
|
||||
</term>
|
||||
<term name="sub-verbo">
|
||||
<single>sub verbo</single>
|
||||
<multiple>sub verbis</multiple>
|
||||
</term>
|
||||
<term name="verse">
|
||||
<single>verz</single>
|
||||
<multiple>verzi</multiple>
|
||||
</term>
|
||||
<term name="volume">
|
||||
<single>letnik</single>
|
||||
<multiple>letniki</multiple>
|
||||
</term>
|
||||
|
||||
<!-- SHORT LOCATOR FORMS -->
|
||||
<term name="appendix" form="short">
|
||||
<single>app.</single>
|
||||
<multiple>apps.</multiple>
|
||||
</term>
|
||||
<term name="article-locator" form="short">
|
||||
<single>art.</single>
|
||||
<multiple>arts.</multiple>
|
||||
</term>
|
||||
<term name="elocation" form="short">
|
||||
<single>loc.</single>
|
||||
<multiple>locs.</multiple>
|
||||
</term>
|
||||
<term name="equation" form="short">
|
||||
<single>eq.</single>
|
||||
<multiple>eqs.</multiple>
|
||||
</term>
|
||||
<term name="rule" form="short">
|
||||
<single>r.</single>
|
||||
<multiple>rr.</multiple>
|
||||
</term>
|
||||
<term name="scene" form="short">
|
||||
<single>sc.</single>
|
||||
<multiple>scs.</multiple>
|
||||
</term>
|
||||
<term name="table" form="short">
|
||||
<single>tbl.</single>
|
||||
<multiple>tbls.</multiple>
|
||||
</term>
|
||||
<term name="timestamp" form="short"> <!-- generally blank -->
|
||||
<single></single>
|
||||
<multiple></multiple>
|
||||
</term>
|
||||
<term name="title-locator" form="short">
|
||||
<single>tit.</single>
|
||||
<multiple>tits.</multiple>
|
||||
</term>
|
||||
<term name="book" form="short">knj.</term>
|
||||
<term name="chapter" form="short">pogl.</term>
|
||||
<term name="column" form="short">stolp.</term>
|
||||
<term name="figure" form="short">sl.</term>
|
||||
<term name="folio" form="short">fol.</term>
|
||||
<term name="issue" form="short">št.</term>
|
||||
<term name="line" form="short">vrst.</term>
|
||||
<term name="note" form="short">op.</term>
|
||||
<term name="opus" form="short">opus</term>
|
||||
<term name="page" form="short">
|
||||
<single>str.</single>
|
||||
<multiple>str.</multiple>
|
||||
</term>
|
||||
<term name="number-of-pages" form="short">
|
||||
<single>str.</single>
|
||||
<multiple>str.</multiple>
|
||||
</term>
|
||||
<term name="paragraph" form="short">odst.</term>
|
||||
<term name="part" form="short">del</term>
|
||||
<term name="section" form="short">ods.</term>
|
||||
<term name="sub-verbo" form="short">
|
||||
<single>s. v.</single>
|
||||
<multiple>s. v.</multiple>
|
||||
</term>
|
||||
<term name="verse" form="short">
|
||||
<single>v.</single>
|
||||
<multiple>v.</multiple>
|
||||
</term>
|
||||
<term name="volume" form="short">
|
||||
<single>let.</single>
|
||||
<multiple>let.</multiple>
|
||||
</term>
|
||||
|
||||
<!-- SYMBOL LOCATOR FORMS -->
|
||||
<term name="paragraph" form="symbol">
|
||||
<single>¶</single>
|
||||
<multiple>¶¶</multiple>
|
||||
</term>
|
||||
<term name="section" form="symbol">
|
||||
<single>§</single>
|
||||
<multiple>§§</multiple>
|
||||
</term>
|
||||
|
||||
<!-- LONG ROLE FORMS -->
|
||||
<term name="chair">
|
||||
<single>chair</single>
|
||||
<multiple>chairs</multiple>
|
||||
</term>
|
||||
<term name="compiler">
|
||||
<single>compiler</single>
|
||||
<multiple>compilers</multiple>
|
||||
</term>
|
||||
<term name="contributor">
|
||||
<single>contributor</single>
|
||||
<multiple>contributors</multiple>
|
||||
</term>
|
||||
<term name="curator">
|
||||
<single>curator</single>
|
||||
<multiple>curators</multiple>
|
||||
</term>
|
||||
<term name="executive-producer">
|
||||
<single>executive producer</single>
|
||||
<multiple>executive producers</multiple>
|
||||
</term>
|
||||
<term name="guest">
|
||||
<single>guest</single>
|
||||
<multiple>guests</multiple>
|
||||
</term>
|
||||
<term name="host">
|
||||
<single>host</single>
|
||||
<multiple>hosts</multiple>
|
||||
</term>
|
||||
<term name="narrator">
|
||||
<single>narrator</single>
|
||||
<multiple>narrators</multiple>
|
||||
</term>
|
||||
<term name="organizer">
|
||||
<single>organizer</single>
|
||||
<multiple>organizers</multiple>
|
||||
</term>
|
||||
<term name="performer">
|
||||
<single>performer</single>
|
||||
<multiple>performers</multiple>
|
||||
</term>
|
||||
<term name="producer">
|
||||
<single>producer</single>
|
||||
<multiple>producers</multiple>
|
||||
</term>
|
||||
<term name="script-writer">
|
||||
<single>writer</single>
|
||||
<multiple>writers</multiple>
|
||||
</term>
|
||||
<term name="series-creator">
|
||||
<single>series creator</single>
|
||||
<multiple>series creators</multiple>
|
||||
</term>
|
||||
<term name="director">
|
||||
<single>režiser</single>
|
||||
<multiple>režiserji</multiple>
|
||||
</term>
|
||||
<term name="editor">
|
||||
<single>urednik</single>
|
||||
<multiple>uredniki</multiple>
|
||||
</term>
|
||||
<term name="editorial-director">
|
||||
<single>glavni urednik</single>
|
||||
<multiple>glavni uredniki</multiple>
|
||||
</term>
|
||||
<term name="illustrator">
|
||||
<single>ilustrator</single>
|
||||
<multiple>ilustratorji</multiple>
|
||||
</term>
|
||||
<term name="translator">
|
||||
<single>prevajalec</single>
|
||||
<multiple>prevajalci</multiple>
|
||||
</term>
|
||||
<term name="editortranslator">
|
||||
<single>urednik & prevajalec</single>
|
||||
<multiple>uredniki & prevajalci</multiple>
|
||||
</term>
|
||||
|
||||
<!-- SHORT ROLE FORMS -->
|
||||
<term name="compiler" form="short">
|
||||
<single>comp.</single>
|
||||
<multiple>comps.</multiple>
|
||||
</term>
|
||||
<term name="contributor" form="short">
|
||||
<single>contrib.</single>
|
||||
<multiple>contribs.</multiple>
|
||||
</term>
|
||||
<term name="curator" form="short">
|
||||
<single>cur.</single>
|
||||
<multiple>curs.</multiple>
|
||||
</term>
|
||||
<term name="executive-producer" form="short">
|
||||
<single>exec. prod.</single>
|
||||
<multiple>exec. prods.</multiple>
|
||||
</term>
|
||||
<term name="narrator" form="short">
|
||||
<single>narr.</single>
|
||||
<multiple>narrs.</multiple>
|
||||
</term>
|
||||
<term name="organizer" form="short">
|
||||
<single>org.</single>
|
||||
<multiple>orgs.</multiple>
|
||||
</term>
|
||||
<term name="performer" form="short">
|
||||
<single>perf.</single>
|
||||
<multiple>perfs.</multiple>
|
||||
</term>
|
||||
<term name="producer" form="short">
|
||||
<single>prod.</single>
|
||||
<multiple>prods.</multiple>
|
||||
</term>
|
||||
<term name="script-writer" form="short">
|
||||
<single>writ.</single>
|
||||
<multiple>writs.</multiple>
|
||||
</term>
|
||||
<term name="series-creator" form="short">
|
||||
<single>cre.</single>
|
||||
<multiple>cres.</multiple>
|
||||
</term>
|
||||
<term name="director" form="short">
|
||||
<single>rež.</single>
|
||||
<multiple>rež.</multiple>
|
||||
</term>
|
||||
<term name="editor" form="short">
|
||||
<single>ur.</single>
|
||||
<multiple>ur.</multiple>
|
||||
</term>
|
||||
<term name="editorial-director" form="short">
|
||||
<single>gl. ur.</single>
|
||||
<multiple>gl. ur.</multiple>
|
||||
</term>
|
||||
<term name="illustrator" form="short">
|
||||
<single>ilus.</single>
|
||||
<multiple>ilus.</multiple>
|
||||
</term>
|
||||
<term name="translator" form="short">
|
||||
<single>prev.</single>
|
||||
<multiple>prev.</multiple>
|
||||
</term>
|
||||
<term name="editortranslator" form="short">
|
||||
<single>ur. & prev.</single>
|
||||
<multiple>ur. & prev.</multiple>
|
||||
</term>
|
||||
|
||||
<!-- VERB ROLE FORMS -->
|
||||
<term name="chair" form="verb">chaired by</term>
|
||||
<term name="compiler" form="verb">compiled by</term>
|
||||
<term name="contributor" form="verb">with</term>
|
||||
<term name="curator" form="verb">curated by</term>
|
||||
<term name="executive-producer" form="verb">executive produced by</term>
|
||||
<term name="guest" form="verb">with guest</term>
|
||||
<term name="host" form="verb">hosted by</term>
|
||||
<term name="narrator" form="verb">narrated by</term>
|
||||
<term name="organizer" form="verb">organized by</term>
|
||||
<term name="performer" form="verb">performed by</term>
|
||||
<term name="producer" form="verb">produced by</term>
|
||||
<term name="script-writer" form="verb">written by</term>
|
||||
<term name="series-creator" form="verb">created by</term>
|
||||
<term name="container-author" form="verb"></term>
|
||||
<term name="director" form="verb">režiral</term>
|
||||
<term name="editor" form="verb">uredil</term>
|
||||
<term name="editorial-director" form="verb">uredil</term>
|
||||
<term name="illustrator" form="verb">ilustriral</term>
|
||||
<term name="interviewer" form="verb">intervjuval</term>
|
||||
<term name="recipient" form="verb">za</term>
|
||||
<term name="reviewed-author" form="verb">od</term>
|
||||
<term name="translator" form="verb">prevedel</term>
|
||||
<term name="editortranslator" form="verb">uredil & prevedel</term>
|
||||
|
||||
<!-- SHORT VERB ROLE FORMS -->
|
||||
<term name="compiler" form="verb-short">comp. by</term>
|
||||
<term name="contributor" form="verb-short">w.</term>
|
||||
<term name="curator" form="verb-short">cur. by</term>
|
||||
<term name="executive-producer" form="verb-short">exec. prod. by</term>
|
||||
<term name="guest" form="verb-short">w. guest</term>
|
||||
<term name="host" form="verb-short">hosted by</term>
|
||||
<term name="narrator" form="verb-short">narr. by</term>
|
||||
<term name="organizer" form="verb-short">org. by</term>
|
||||
<term name="performer" form="verb-short">perf. by</term>
|
||||
<term name="producer" form="verb-short">prod. by</term>
|
||||
<term name="script-writer" form="verb-short">writ. by</term>
|
||||
<term name="series-creator" form="verb-short">cre. by</term>
|
||||
<term name="director" form="verb-short">rež.</term>
|
||||
<term name="editor" form="verb-short">ured.</term>
|
||||
<term name="editorial-director" form="verb-short">ured.</term>
|
||||
<term name="illustrator" form="verb-short">ilus.</term>
|
||||
<term name="translator" form="verb-short">prev.</term>
|
||||
<term name="editortranslator" form="verb-short">ured. & prev. by</term>
|
||||
|
||||
<!-- LONG MONTH FORMS -->
|
||||
<term name="month-01">januar</term>
|
||||
<term name="month-02">februar</term>
|
||||
<term name="month-03">marec</term>
|
||||
<term name="month-04">april</term>
|
||||
<term name="month-05">maj</term>
|
||||
<term name="month-06">junij</term>
|
||||
<term name="month-07">julij</term>
|
||||
<term name="month-08">avgust</term>
|
||||
<term name="month-09">september</term>
|
||||
<term name="month-10">oktober</term>
|
||||
<term name="month-11">november</term>
|
||||
<term name="month-12">december</term>
|
||||
|
||||
<!-- SHORT MONTH FORMS -->
|
||||
<term name="month-01" form="short">jan.</term>
|
||||
<term name="month-02" form="short">feb.</term>
|
||||
<term name="month-03" form="short">mar.</term>
|
||||
<term name="month-04" form="short">apr.</term>
|
||||
<term name="month-05" form="short">maj</term>
|
||||
<term name="month-06" form="short">jun.</term>
|
||||
<term name="month-07" form="short">jul.</term>
|
||||
<term name="month-08" form="short">avg.</term>
|
||||
<term name="month-09" form="short">sep.</term>
|
||||
<term name="month-10" form="short">okt.</term>
|
||||
<term name="month-11" form="short">nov.</term>
|
||||
<term name="month-12" form="short">dec.</term>
|
||||
|
||||
<!-- SEASONS -->
|
||||
<term name="season-01">pomlad</term>
|
||||
<term name="season-02">poletje</term>
|
||||
<term name="season-03">jesen</term>
|
||||
<term name="season-04">zima</term>
|
||||
</terms>
|
||||
</locale>
|
|
@ -0,0 +1,2 @@
|
|||
citeproc: true
|
||||
csl: chicago-fullnote-bibliography-sl
|
|
@ -0,0 +1,2 @@
|
|||
citeproc: true
|
||||
csl: chicago-fullnote-bibliography
|
|
@ -0,0 +1,2 @@
|
|||
to: docx
|
||||
reference-doc: ${USERDATA}/reference.docx
|
|
@ -0,0 +1,2 @@
|
|||
to: html
|
||||
standalone: true
|
|
@ -0,0 +1,2 @@
|
|||
to: odt
|
||||
reference-doc: ${USERDATA}/reference.odt
|
|
@ -0,0 +1,8 @@
|
|||
to: pdf
|
||||
metadata:
|
||||
indent: true
|
||||
linestretch: 1.5
|
||||
papersize: a4
|
||||
fontfamily: tgtermes
|
||||
fontsize: 12pt
|
||||
colorlinks: false
|
|
@ -0,0 +1,2 @@
|
|||
citeproc: true
|
||||
csl: chicago-syllabus-sl
|
|
@ -0,0 +1,2 @@
|
|||
citeproc: true
|
||||
csl: chicago-syllabus
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,107 @@
|
|||
quickstart
|
||||
|
||||
sudo apt install git
|
||||
cd
|
||||
git init
|
||||
git remote add origin gitea@git.kompot.si:urosm/dot.git
|
||||
git pull
|
||||
git checkout main -f
|
||||
|
||||
|
||||
locales
|
||||
|
||||
sudo dpkg-reconfigure locales
|
||||
|
||||
|
||||
utils
|
||||
|
||||
sudo apt install screen
|
||||
sudo apt install rsync
|
||||
sudo apt install udisks2
|
||||
|
||||
|
||||
networking
|
||||
|
||||
sudo apt install network-manager
|
||||
sudo apt install openssh-server
|
||||
|
||||
|
||||
firewall
|
||||
|
||||
sudo apt install ufw
|
||||
sudo ufw allow "SSH"
|
||||
sudo ufw allow 1194/udp
|
||||
sudo ufw enable
|
||||
|
||||
|
||||
neovim
|
||||
|
||||
sudo apt install ninja-build gettext cmake unzip curl
|
||||
git clone --depth 1 --branch v0.9.1 https://github.com/neovim/neovim
|
||||
cd neovim
|
||||
make CMAKE_BUILD_TYPE=Release
|
||||
sudo make install
|
||||
|
||||
|
||||
lua-language-server
|
||||
|
||||
sudo apt install ninja-build g++
|
||||
git clone --depth 1 --branch 3.6.25 https://github.com/luals/lua-language-server
|
||||
./make.sh
|
||||
|
||||
|
||||
shell scripting
|
||||
sudo apt install shellcheck
|
||||
sudo apt install shfmt
|
||||
|
||||
|
||||
sway
|
||||
|
||||
sudo apt install --no-install-recommends sway
|
||||
sudo apt install swayidle swaylock
|
||||
sudo apt install mako-notifier libnotify-bin
|
||||
sudo apt install foot
|
||||
sudo apt install fuzzel
|
||||
sudo apt install grimshot
|
||||
sudo apt install light wlsunset
|
||||
sudo apt install fonts-agave
|
||||
|
||||
|
||||
audio
|
||||
|
||||
sudo apt install pipewire-audio
|
||||
systemctl --user enable --now wireplumber.service
|
||||
|
||||
|
||||
web and media
|
||||
|
||||
sudo apt install firefox-esr
|
||||
sudo apt install thunderbird
|
||||
sudo apt install mpv
|
||||
sudo apt install zathura
|
||||
|
||||
|
||||
writing
|
||||
|
||||
sudo apt install pandoc
|
||||
sudo apt install texlive-latex-recommended texlive-fonts-extra
|
||||
|
||||
|
||||
office
|
||||
|
||||
sudo apt install libreoffice libreoffice-gtk3
|
||||
sudo apt install libreoffice-l10n-sl
|
||||
|
||||
|
||||
printing and scanning
|
||||
|
||||
sudo apt install cups
|
||||
sudo apt install simple-scan
|
||||
sudo apt install imagemagick
|
||||
sudo apt install ocrmypdf
|
||||
sudo apt install tesseract-ocr-slv
|
||||
|
||||
|
||||
remote desktop
|
||||
|
||||
sudo apt install remmina
|
Loading…
Reference in New Issue