1
0
Fork 0

Compare commits

...

22 Commits

Author SHA1 Message Date
urosm c082d41f0a update scripts
rewrite `fuzzel_find_and_open.sh`
remove `fuzzel_open_file.sh`
2023-08-23 11:11:59 +02:00
urosm 2fb8f17e80 add README 2023-08-23 11:11:59 +02:00
urosm 952b70d96c add `pandoc` data 2023-08-23 11:11:59 +02:00
urosm 1ded2948bf add scripts 2023-08-23 11:11:59 +02:00
urosm 7063865996 add `python` config 2023-08-23 11:11:59 +02:00
urosm f64ad1225e add `user-dirs.dirs` 2023-08-23 11:11:59 +02:00
urosm 3d3a3d8539 add `mimeapps.list` 2023-08-23 11:11:59 +02:00
urosm 794a1b6597 add `mpv` config 2023-08-23 11:11:59 +02:00
urosm 211cbc6bc9 add `zathura` config 2023-08-23 11:11:59 +02:00
urosm 10bd26e6ae add `fontconfig` config 2023-08-23 11:11:59 +02:00
urosm 1f066d3b3c add `mako` config 2023-08-23 11:11:59 +02:00
urosm 8e1940b168 add `fuzzel` config 2023-08-23 11:11:59 +02:00
urosm 531e3f881c add `foot` config 2023-08-23 11:11:59 +02:00
urosm 8de7bf29c1 add `swaylock` config 2023-08-23 11:11:59 +02:00
urosm e3ee0176ff add `swayidle` config 2023-08-23 11:11:59 +02:00
urosm 63d86199f1 add `sway` config 2023-08-23 11:11:59 +02:00
urosm e99c5ceaae add `wireguard` config 2023-08-23 11:11:59 +02:00
urosm 06124505e5 add `NetworkManager` config 2023-08-23 11:11:59 +02:00
urosm 2377265e6e add `apt` config 2023-08-23 11:11:59 +02:00
urosm 9697213597 add `sudo` config 2023-08-23 11:11:59 +02:00
urosm d4283aa754 add `readline` config 2023-08-23 11:11:59 +02:00
urosm 9e5b4d6e01 add `.bashrc` 2023-08-23 11:11:56 +02:00
45 changed files with 10478 additions and 0 deletions

72
.bashrc 100644
View File

@ -0,0 +1,72 @@
# check interactive
case $- in
*i*) ;;
*) return ;;
esac
# history
shopt -s histappend
HISTCONTROL=ignoreboth
HISTSIZE=1000
HISTFILESIZE=2000
# prompt
r="\[\e[00m\]"
b="\[\e[01m\]"
c4="\[\e[34m\]"
c7="\[\e[37m\]"
PS1="${b}\u@\h:$c4\w$c7\$$r "
unset e r b c4 c5 c7
# title
PS1="\[\e]0;\u@\h: \w\a\]$PS1"
# functions
# stat
st() {
find "${1-.}" -maxdepth 1 -printf '%m %u %g %y %P\n' |
sort -V -k 4,5 | column -t -N 'i,u,g,t,n' -l 5 -R 'i,u' -d
}
# aliases
# exit
alias q="exit"
alias :q="exit"
# grep
alias grep="grep --color"
# ls
alias ls="ls --color"
alias ll="ls -AFv1 --group-directories-first"
# nvim
alias :e="nvim"
# bash completion
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# osc 7
osc7_cwd() {
local strlen=${#PWD}
local encoded=""
local pos c o
for ((pos = 0; pos < strlen; pos++)); do
c=${PWD:$pos:1}
case "$c" in
[-/:_.!\'\(\)~[:alnum:]]) o="${c}" ;;
*) printf -v o '%%%02X' "'${c}" ;;
esac
encoded+="${o}"
done
printf '\e]7;file://%s%s\e\\' "${HOSTNAME}" "${encoded}"
}
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }osc7_cwd

View File

@ -0,0 +1,24 @@
# from dot.git
[connection]
id=eduroam
type=wifi
[wifi]
mode=infrastructure
ssid=eduroam
[wifi-security]
key-mgmt=wpa-eap
[802-1x]
domain-suffix-match=eduroam.uni-lj.si
eap=peap;
identity=<identity>
password=<password>
phase2-auth=mschapv2
[ipv4]
method=auto
[ipv6]
method=auto

View File

@ -0,0 +1 @@
APT::AutoRemove::SuggestsImportant "false";

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,8 @@
# window
image-display-duration=inf
# osd
osd-level=0
# gpu renderer options
background="#292526"

View File

@ -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)

View File

@ -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)

View File

@ -0,0 +1,28 @@
$include /etc/inputrc
# vi mode
set editing-mode vi
set show-mode-in-prompt on
set vi-ins-mode-string "\1\e[01;31m\2+\1\e[0m\2"
set vi-cmd-mode-string "\1\e[01m\2:\1\e[0m\2"
set keyseq-timeout 50
# history search
$if mode=vi
set keymap vi-command
"j": history-search-forward
"k": history-search-backward
set keymap vi-insert
"\e[A": history-search-backward
"\e[B": history-search-forward
$endif
# faster completion
"\t":menu-complete
"\e[Z":menu-complete-backward
set show-all-if-ambiguous on
# color
set colored-stats on
set visible-stats on

View File

@ -0,0 +1,2 @@
# from dot.git
Defaults !admin_flag

246
.config/sway/config 100644
View File

@ -0,0 +1,246 @@
# logo key
set $mod Mod4
# home row direction keys
set $left h
set $down j
set $up k
set $right l
# apps
set $term footclient
set $term_float footclient --app-id=foot_float
set $browser firefox
set $email thunderbird
# menus
set $drun fuzzel
set $mountmenu fuzzel_mount.sh
set $findmenu fuzzel_find_and_open.sh
set $wifimenu $term_float nmtui
# colors
set $bg #292526
set $dimmed #6185ff
set $accent #ff3e8b
set $error #ff404f
# TODO: figure out how this is viable
# set $xkb_layout_mode "keyboard layout: (g)b (s)i"
# bindsym alt+shift mode $xkb_layout_mode
#
# mode $xkb_layout_mode {
# bindsym g input "type:keyboard" xkb_layout gb, mode default
# bindsym s input "type:keyboard" xkb_layout si, mode default
# }
seat * hide_cursor 5000
# output
output * bg $bg solid_color
# key bindings
# start terminal
bindsym $mod+return exec $term
bindsym $mod+shift+return exec $term_float
bindsym $mod+t exec foot
# start browser
bindsym $mod+w exec $browser
bindsym $mod+shift+w exec $email
# start menus
bindsym $mod+space exec $drun
bindsym $mod+home exec $wifimenu
bindsym $mod+insert exec $mountmenu
bindsym $mod+e exec $findmenu
# notifications
bindsym $mod+slash exec notify-send -e -h string:x-canonical-private-synchronous:status "$(date)" "Battery: $(cat /sys/class/power_supply/BAT0/capacity)%"
bindsym $mod+x exec makoctl dismiss
bindsym $mod+shift+x exec makoctl dismiss -a
bindsym $mod+z exec makoctl restore
# kill window
bindsym $mod+q kill
# move focus
bindsym $mod+$up focus up
bindsym $mod+$down focus down
bindsym $mod+$left focus left
bindsym $mod+$right focus right
# move focused window
bindsym $mod+shift+$up move up
bindsym $mod+shift+$down move down
bindsym $mod+shift+$left move left
bindsym $mod+shift+$right move right
# switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
bindsym $mod+next workspace next
bindsym $mod+prior workspace prev
# move focused to workspace
bindsym $mod+shift+1 move container to workspace number 1, workspace number 1
bindsym $mod+shift+2 move container to workspace number 2, workspace number 2
bindsym $mod+shift+3 move container to workspace number 3, workspace number 3
bindsym $mod+shift+4 move container to workspace number 4, workspace number 4
bindsym $mod+shift+5 move container to workspace number 5, workspace number 5
bindsym $mod+shift+6 move container to workspace number 6, workspace number 6
bindsym $mod+shift+7 move container to workspace number 7, workspace number 7
bindsym $mod+shift+8 move container to workspace number 8, workspace number 8
bindsym $mod+shift+9 move container to workspace number 9, workspace number 9
bindsym $mod+shift+0 move container to workspace number 10, workspace number 10
bindsym $mod+shift+next move container to workspace next, workspace next
bindsym $mod+shift+prior move container to workspace prev, workspace prev
# resize
set $resize_mode "resize"
bindsym $mod+r mode $resize_mode
mode $resize_mode {
bindsym $left resize shrink width
bindsym $down resize grow height
bindsym $up resize shrink height
bindsym $right resize grow width
bindsym $mod+$left resize shrink width 25 px
bindsym $mod+$down resize grow height 25 px
bindsym $mod+$up resize shrink height 25 px
bindsym $mod+$right resize grow width 25 px
bindsym escape mode default
bindsym $mod+escape mode default
bindsym $mod+r mode default
}
# layout
bindsym $mod+d layout toggle tabbed split
bindsym $mod+f fullscreen toggle
bindsym $mod+shift+f floating toggle
bindsym $mod+g focus mode_toggle
bindsym $mod+shift+g sticky toggle
# scratchpad
bindsym $mod+period move to scratchpad
bindsym $mod+shift+period scratchpad show
# floating
for_window [window_type="dialog"] floating enable
for_window [window_type="utility"] floating enable
for_window [window_type="toolbar"] floating enable
for_window [window_type="splash"] floating enable
for_window [window_type="menu"] floating enable
for_window [window_type="dropdown_menu"] floating enable
for_window [window_type="popup_menu"] floating enable
for_window [window_type="tooltip"] floating enable
for_window [window_type="notification"] floating enable
# rules
for_window [title="About Mozilla Firefox"] floating enable
for_window [app_id="foot_float"] floating enable
for_window [app_id="foot"] inhibit_idle focus
# laptop
bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+;\
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-;\
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle;\
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
bindsym XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle;\
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_source "$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)"
bindsym XF86MonBrightnessUp exec brightnessctl set "+1%";\
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
bindsym XF86MonBrightnessDown exec brightnessctl set "1%-";\
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
bindsym shift+XF86MonBrightnessUp exec brightnessctl set "+10%";\
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
bindsym shift+XF86MonBrightnessDown exec brightnessctl set "10%-";\
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
# screenshots
bindsym print exec grimshot save screen
# session
set $session_mode "session: (r)eload (l)ock (q)uit (s)uspend re(b)oot (p)oweroff"
bindsym $mod+escape mode $session_mode
mode $session_mode {
bindsym r reload, mode default
bindsym l exec swaylock, mode default
bindsym q exit, mode default
bindsym s exec systemctl suspend, mode default
bindsym b exec systemctl reboot, mode default
bindsym p exec systemctl poweroff, mode default
bindsym escape mode default
bindsym $mod+escape mode default
}
# border
default_border none
default_floating_border normal 1
set $border_mode "border: (n)one (t)itle (p)ixel"
bindsym $mod+b mode $border_mode
mode $border_mode {
bindsym n border none, mode default
bindsym t border normal 1, mode default
bindsym p border pixel 1, mode default
bindsym escape mode default
bindsym $mod+escape mode default
bindsym $mod+b mode default
}
# class border background text indicator child_border
client.focused $accent $accent $bg $error $accent
client.focused_inactive $dimmed $dimmed $bg $bg $dimmed
client.unfocused $dimmed $dimmed $bg $bg $dimmed
client.urgent $error $error $bg $error $error
# statusbar
bar colors {
background $bg
statusline $dimmed
separator $dimmed
# border background text
focused_workspace $bg $bg $accent
active_workspace $dimmed $bg $dimmed
inactive_workspace $bg $bg $dimmed
urgent_workspace $bg $bg $error
}
}
set $bar_mode "bar: (d)ock (h)ide (i)nvisible (o)verlay"
bindsym $mod+shift+b mode $bar_mode, bar mode dock
mode $bar_mode {
bindsym d bar mode dock, mode default
bindsym h bar mode hide, mode default
bindsym i bar mode invisible, mode default
bindsym o bar mode overlay, mode default
bindsym escape mode default
bindsym $mod+escape mode default
bindsym $mod+shift+b mode default
}
# autostart
exec swayidle
exec wlsunset -l 45 -L 15
exec mako
exec foot --server
# xwayland
xwayland disable
# include
include ~/.config/sway/`hostname`

View File

@ -0,0 +1,10 @@
# input
input "type:keyboard" {
xkb_layout gb,si
xkb_options caps:escape,grp:alt_shift_toggle
}
input "type:touchpad" {
tap enabled
}

View File

@ -0,0 +1,11 @@
# clamshell
set $laptop LVDS-1
bindswitch --reload --locked lid:on output $laptop disable
bindswitch --reload --locked lid:off output $laptop enable
# input
input "type:keyboard" {
xkb_layout us,si
xkb_options caps:escape,grp:alt_shift_toggle
xkb_numlock enabled
}

View File

@ -0,0 +1,3 @@
timeout 300 'swaylock'
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
before-sleep 'swaylock'

View File

@ -0,0 +1,32 @@
show-failed-attempts
daemonize
color=292526
bs-hl-color=00000000
caps-lock-bs-hl-color=00000000
caps-lock-key-hl-color=00000000
font=monospace
inside-color=00000000
inside-clear-color=00000000
inside-caps-lock-color=00000000
inside-ver-color=00000000
inside-wrong-color=00000000
key-hl-color=00000000
layout-bg-color=00000000
layout-border-color=00000000
layout-text-color=6185ff
line-color=00000000
line-clear-color=00000000
line-caps-lock-color=00000000
line-ver-color=00000000
line-wrong-color=00000000
ring-color=00000000
ring-clear-color=00000000
ring-caps-lock-color=00000000
ring-ver-color=00000000
ring-wrong-color=00000000
separator-color=00000000
text-color=6185ff
text-clear-color=6185ff
text-caps-lock-color=6185ff
text-ver-color=ff3e8b
text-wrong-color=ff404f

View File

@ -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"

View File

@ -0,0 +1,15 @@
quickstart
sudo apt install wireguard-tools
serverside configuration
sudo sysctl -w net.ipv4.ip_forward=1
sudo sed -i "s/^#net.ipv4.ip_forward = 1/net.ipv4.ip_forward = 1/" /etc/sysctl.conf
generating keys
wg genkey > client.key
wg pubkey < client.key > client.pub

View File

@ -0,0 +1,9 @@
[Interface]
Address = 10.200.200.2/32
PrivateKey = <client private key>
[Peer]
PublicKey = <server public key>
Endpoint = <server ip>:1194
AllowedIPs = 0.0.0.0/0, ::/0

View File

@ -0,0 +1,15 @@
[Interface]
Address = 10.200.200.1/24
ListenPort = 1194
PrivateKey = <server private key>
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o <interface name> -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o i -j ACCEPT; iptables -t nat -D POSTROUTING -o <interface name> -j MASQUERADE
[Peer]
PublicKey = <client public key>
AllowedIPs = 10.200.200.2/32
[Peer]
PublicKey = <client public key>
AllowedIPs = 10.200.200.3/32

View File

@ -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"

View File

@ -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" &

View File

@ -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

View File

@ -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

View File

@ -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 &amp; prevajalec</single>
<multiple>uredniki &amp; 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. &amp; prev.</single>
<multiple>ur. &amp; 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 &amp; 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. &amp; 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>

View File

@ -0,0 +1,2 @@
citeproc: true
csl: chicago-fullnote-bibliography-sl

View File

@ -0,0 +1,2 @@
citeproc: true
csl: chicago-fullnote-bibliography

View File

@ -0,0 +1,2 @@
to: docx
reference-doc: ${USERDATA}/reference.docx

View File

@ -0,0 +1,2 @@
to: html
standalone: true

View File

@ -0,0 +1,2 @@
to: odt
reference-doc: ${USERDATA}/reference.odt

View File

@ -0,0 +1,8 @@
to: pdf
metadata:
indent: true
linestretch: 1.5
papersize: a4
fontfamily: tgtermes
fontsize: 12pt
colorlinks: false

View File

@ -0,0 +1,2 @@
citeproc: true
csl: chicago-syllabus-sl

View File

@ -0,0 +1,2 @@
citeproc: true
csl: chicago-syllabus

Binary file not shown.

Binary file not shown.

107
README 100644
View File

@ -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