Standardise across machines; add genuinely-customised app config
Two passes, both aimed at a consistent experience rather than a faithful
snapshot of each machine's accidents.
Standardisation. Audited every host-layer config present on more than one
machine and asked whether the difference was intent or drift:
- mpv was byte-identical; swayimg differed only because system76 still
had the shipped default and the work laptop had the real config; bob
differed by one setting the work laptop was simply missing.
- user-dirs.dirs disagreed with BOTH machines and with zshenv, which has
said $HOME/downloads all along. Standardised on that.
- mimeapps.list is now the union of both machines' associations.
- swaync's config and style are shared; only wallust's generated
colors.css stays per host, alongside hypr's and waybar's.
All of the above moved to common/.
Dropped as pure state rather than config: gtk-2.0 (file-chooser geometry),
pavucontrol.ini (window size), zoom.conf (a per-install random_key) and
zoomus.conf (panel widths). gtk-3.0 stays per host — its bookmarks encode
the two different home directories.
App config. GIMP, inkscape, FreeCAD, cura, OrcaSlicer, LightBurn and OBS
all hold real settings, so a curated subset of each is now tracked:
settings, keybindings and user content, but not session state, tool
options, device lists or window geometry. kicad is skipped — both library
tables hold a single entry, i.e. untouched defaults.
Content lives once in common/ even when only one machine has the app; the
host configs decide who gets the link. That is the distinction that lets
53% of link sources be shared while the NAS still does not get GIMP.
Two exclusions on credential grounds: obs-studio/plugin_config holds a
websocket server_password, and gh is dropped entirely because `gh auth
login` writes a token into hosts.yml — now also blocked by name.
This commit is contained in:
1 parent
1f906acd80
commit
a2dc43d665
66 files changed
+8623
-569
No files matched your search
@@ -1 +0,0 @@
|
||||
{}
|
||||
@@ -1,75 +0,0 @@
|
||||
{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"logo": {
|
||||
"source": "~/.config/fastfetch/ubuntu.png",
|
||||
"type": "kitty-direct",
|
||||
"height": 10,
|
||||
"width": 20,
|
||||
"padding": {
|
||||
"top": 1
|
||||
}
|
||||
},
|
||||
"display": {
|
||||
"separator": " -> "
|
||||
},
|
||||
"modules": [
|
||||
"break",
|
||||
{
|
||||
"type": "title",
|
||||
"keyWidth": 10,
|
||||
"format": " {6}{7}{8}"
|
||||
},
|
||||
{
|
||||
"type": "custom",
|
||||
"format": " ─────────────────────────── "
|
||||
},
|
||||
{
|
||||
"type": "kernel",
|
||||
"key": " ",
|
||||
"keyColor": "yellow"
|
||||
},
|
||||
{
|
||||
"type": "wm",
|
||||
"key": " ",
|
||||
"keyColor": "blue"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"key": " ",
|
||||
"keyColor": "yellow"
|
||||
},
|
||||
{
|
||||
"type": "terminal",
|
||||
"key": " ",
|
||||
"keyColor": "blue"
|
||||
},
|
||||
/*
|
||||
{
|
||||
"type": "packages",
|
||||
"key": " ",
|
||||
"keyColor": "yellow"
|
||||
},
|
||||
*/
|
||||
{
|
||||
"type": "memory",
|
||||
"key": " ",
|
||||
"keyColor": "magenta",
|
||||
// format: used / total
|
||||
"format": "{1} / {2}"
|
||||
},
|
||||
{
|
||||
"type": "uptime",
|
||||
"key": " ",
|
||||
"keyColor": "green"
|
||||
},
|
||||
{
|
||||
"type": "custom",
|
||||
"format": " ─────────────────────────── "
|
||||
},
|
||||
{
|
||||
"type": "custom",
|
||||
"format": " \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m \u001b[90m "
|
||||
},
|
||||
"break",
|
||||
]
|
||||
}
|
||||
@@ -1,73 +0,0 @@
|
||||
{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"logo": {
|
||||
"height": 5,
|
||||
"width": 10,
|
||||
"padding": {
|
||||
"top": 1
|
||||
}
|
||||
},
|
||||
"display": {
|
||||
"separator": " -> "
|
||||
},
|
||||
"modules": [
|
||||
"break",
|
||||
{
|
||||
"type": "title",
|
||||
"keyWidth": 10,
|
||||
"format": " {6}{7}{8}"
|
||||
},
|
||||
{
|
||||
"type": "custom",
|
||||
"format": " ─────────────────────────── "
|
||||
},
|
||||
{
|
||||
"type": "kernel",
|
||||
"key": " ",
|
||||
"keyColor": "yellow"
|
||||
},
|
||||
{
|
||||
"type": "wm",
|
||||
"key": " ",
|
||||
"keyColor": "blue"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"key": " ",
|
||||
"keyColor": "yellow"
|
||||
},
|
||||
{
|
||||
"type": "terminal",
|
||||
"key": " ",
|
||||
"keyColor": "blue"
|
||||
},
|
||||
/*
|
||||
{
|
||||
"type": "packages",
|
||||
"key": " ",
|
||||
"keyColor": "yellow"
|
||||
},
|
||||
*/
|
||||
{
|
||||
"type": "memory",
|
||||
"key": " ",
|
||||
"keyColor": "magenta",
|
||||
// format: used / total
|
||||
"format": "{1} / {2}"
|
||||
},
|
||||
{
|
||||
"type": "uptime",
|
||||
"key": " ",
|
||||
"keyColor": "green"
|
||||
},
|
||||
{
|
||||
"type": "custom",
|
||||
"format": " ─────────────────────────── "
|
||||
},
|
||||
{
|
||||
"type": "custom",
|
||||
"format": " \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m \u001b[90m "
|
||||
},
|
||||
"break",
|
||||
]
|
||||
}
|
||||
@@ -1,112 +0,0 @@
|
||||
{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"logo": {
|
||||
//"source": "~/.config/fastfetch/nixos.png",
|
||||
//"type": "kitty-direct",
|
||||
"height": 15,
|
||||
"width": 30,
|
||||
"padding": {
|
||||
"top": 1
|
||||
}
|
||||
},
|
||||
"display": {
|
||||
"separator": " ➜ "
|
||||
},
|
||||
|
||||
"modules": [
|
||||
"break",
|
||||
{
|
||||
"type": "os",
|
||||
"key": " DISTRO",
|
||||
"keyColor": "31",
|
||||
},
|
||||
{
|
||||
"type": "kernel",
|
||||
"key": " ├ ",
|
||||
"keyColor": "31",
|
||||
},
|
||||
{
|
||||
"type": "packages",
|
||||
"key": " ├ ",
|
||||
"keyColor": "31",
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"key": " └ ",
|
||||
"keyColor": "31",
|
||||
},
|
||||
"break",
|
||||
{
|
||||
"type": "wm",
|
||||
"key": " DE/WM",
|
||||
"keyColor": "32",
|
||||
},
|
||||
{
|
||||
"type": "wmtheme",
|
||||
"key": " ├ ",
|
||||
"keyColor": "32",
|
||||
},
|
||||
{
|
||||
"type": "icons",
|
||||
"key": " ├ ",
|
||||
"keyColor": "32",
|
||||
},
|
||||
{
|
||||
"type": "cursor",
|
||||
"key": " ├ ",
|
||||
"keyColor": "32",
|
||||
},
|
||||
{
|
||||
"type": "terminal",
|
||||
"key": " ├ ",
|
||||
"keyColor": "32",
|
||||
},
|
||||
{
|
||||
"type": "terminalfont",
|
||||
"key": " └ ",
|
||||
"keyColor": "32",
|
||||
},
|
||||
"break",
|
||||
{
|
||||
"type": "host",
|
||||
"format": "{2}",
|
||||
"key": " SYSTEM",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "cpu",
|
||||
"format": "{1} ({3}) @ {7} GHz",
|
||||
"key": " ├ ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "gpu",
|
||||
"format": "{2}",
|
||||
"key": " ├ ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "memory",
|
||||
"key": " ├ ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "swap",
|
||||
"key": " ├ ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "disk",
|
||||
"key": " ├ ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "display",
|
||||
"key": " └ ",
|
||||
"compactType": "original-with-refresh-rate",
|
||||
"keyColor": "33",
|
||||
},
|
||||
"break",
|
||||
"break",
|
||||
]
|
||||
}
|
||||
@@ -1,128 +0,0 @@
|
||||
|
||||
{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"logo": {
|
||||
"padding": {
|
||||
"top": 1
|
||||
}
|
||||
},
|
||||
"display": {
|
||||
"separator": " "
|
||||
},
|
||||
"modules": [
|
||||
"break",
|
||||
{
|
||||
"type": "os",
|
||||
"key": " DISTRO",
|
||||
"keyColor": "yellow"
|
||||
},
|
||||
{
|
||||
"type": "kernel",
|
||||
"key": "│ ├",
|
||||
"keyColor": "yellow"
|
||||
},
|
||||
{
|
||||
"type": "packages",
|
||||
"key": "│ ├",
|
||||
"keyColor": "yellow"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"key": "│ └",
|
||||
"keyColor": "yellow"
|
||||
},
|
||||
{
|
||||
"type": "wm",
|
||||
"key": " DE/WM",
|
||||
"keyColor": "blue"
|
||||
},
|
||||
{
|
||||
"type": "wmtheme",
|
||||
"key": "│ ├",
|
||||
"keyColor": "blue"
|
||||
},
|
||||
{
|
||||
"type": "icons",
|
||||
"key": "│ ├",
|
||||
"keyColor": "blue"
|
||||
},
|
||||
{
|
||||
"type": "cursor",
|
||||
"key": "│ ├",
|
||||
"keyColor": "blue",
|
||||
},
|
||||
{
|
||||
"type": "terminalfont",
|
||||
"key": "│ ├",
|
||||
"keyColor": "blue",
|
||||
},
|
||||
{
|
||||
"type": "terminal",
|
||||
"key": "│ └",
|
||||
"keyColor": "blue"
|
||||
},
|
||||
{
|
||||
"type": "host",
|
||||
"key": " SYSTEM",
|
||||
"keyColor": "green"
|
||||
},
|
||||
{
|
||||
"type": "cpu",
|
||||
"key": "│ ├",
|
||||
"keyColor": "green"
|
||||
},
|
||||
{
|
||||
"type": "gpu",
|
||||
"key": "│ ├",
|
||||
"format": "{2}",
|
||||
"keyColor": "green"
|
||||
},
|
||||
{
|
||||
"type": "display",
|
||||
"key": "│ ├",
|
||||
"keyColor": "green",
|
||||
"compactType": "original-with-refresh-rate"
|
||||
},
|
||||
{
|
||||
"type": "memory",
|
||||
"key": "│ ├",
|
||||
"keyColor": "green"
|
||||
},
|
||||
{
|
||||
"type": "swap",
|
||||
"key": "│ ├",
|
||||
"keyColor": "green"
|
||||
},
|
||||
{
|
||||
"type": "uptime",
|
||||
"key": "│ ├",
|
||||
"keyColor": "green"
|
||||
},
|
||||
{
|
||||
"type": "display",
|
||||
"key": "│ └",
|
||||
"keyColor": "green"
|
||||
},
|
||||
{
|
||||
"type": "sound",
|
||||
"key": " AUDIO",
|
||||
"format": "{2}",
|
||||
"keyColor": "magenta"
|
||||
},
|
||||
{
|
||||
"type": "player",
|
||||
"key": "│ ├",
|
||||
"keyColor": "magenta"
|
||||
},
|
||||
{
|
||||
"type": "media",
|
||||
"key": "│ └",
|
||||
"keyColor": "magenta"
|
||||
},
|
||||
{
|
||||
"type": "custom",
|
||||
"format": "\u001b[90m \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m \u001b[38m \u001b[39m \u001b[39m \u001b[38m \u001b[37m \u001b[36m \u001b[35m \u001b[34m \u001b[33m \u001b[32m \u001b[31m \u001b[90m "
|
||||
},
|
||||
"break",
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 138 KiB |
@@ -1,17 +0,0 @@
|
||||
# The current version of the config schema
|
||||
version: 1
|
||||
# What protocol to use when performing git operations. Supported values: ssh, https
|
||||
git_protocol: https
|
||||
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
|
||||
editor:
|
||||
# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled
|
||||
prompt: enabled
|
||||
# A pager program to send command output to, e.g. "less". If blank, will refer to environment. Set the value to "cat" to disable the pager.
|
||||
pager:
|
||||
# Aliases allow you to create nicknames for gh commands
|
||||
aliases:
|
||||
co: pr checkout
|
||||
# The path to a unix socket through which send HTTP connections. If blank, HTTP traffic will be handled by net/http.DefaultTransport.
|
||||
http_unix_socket:
|
||||
# What web browser gh should use when opening URLs. If blank, will refer to environment.
|
||||
browser:
|
||||
@@ -1,5 +0,0 @@
|
||||
github.com:
|
||||
git_protocol: ssh
|
||||
users:
|
||||
connor-johnstone:
|
||||
user: connor-johnstone
|
||||
@@ -1,11 +0,0 @@
|
||||
[Filechooser Settings]
|
||||
LocationMode=path-bar
|
||||
ShowHidden=false
|
||||
ShowSizeColumn=true
|
||||
GeometryX=31
|
||||
GeometryY=0
|
||||
GeometryWidth=948
|
||||
GeometryHeight=647
|
||||
SortColumn=name
|
||||
SortOrder=ascending
|
||||
StartupMode=recent
|
||||
@@ -1,6 +0,0 @@
|
||||
[Default Applications]
|
||||
x-scheme-handler/sc-1a5d6cc5d5f07e3e=/home/connorjohnstone/.local/share/applications/connectwisecontrol-1a5d6cc5d5f07e3e.desktop
|
||||
x-scheme-handler/claude-cli=claude-code-url-handler.desktop
|
||||
|
||||
[Added Associations]
|
||||
application/pdf=org.pwmt.zathura-pdf-poppler.desktop;
|
||||
@@ -1,8 +0,0 @@
|
||||
[window]
|
||||
width=1896
|
||||
height=1121
|
||||
sinkInputType=1
|
||||
sourceOutputType=1
|
||||
sinkType=0
|
||||
sourceType=1
|
||||
showVolumeMeters=1
|
||||
@@ -1,149 +0,0 @@
|
||||
-- General config
|
||||
swayimg.set_mode("viewer") -- mode at startup
|
||||
swayimg.enable_antialiasing(true) -- anti-aliasing
|
||||
swayimg.enable_decoration(true) -- window title/buttons/borders
|
||||
swayimg.enable_overlay(false) -- window overlay mode
|
||||
swayimg.enable_exif_orientation(true) -- image orientation by EXIF
|
||||
swayimg.set_dnd_button("MouseRight") -- drag-and-drop mouse button
|
||||
|
||||
-- Image list configuration
|
||||
swayimg.imagelist.set_order("numeric") -- list order
|
||||
swayimg.imagelist.enable_reverse(false) -- reverse order
|
||||
swayimg.imagelist.enable_recursive(false) -- recursive directory reading
|
||||
swayimg.imagelist.enable_adjacent(false) -- add adjacent files from same dir
|
||||
swayimg.imagelist.enable_fsmon(true) -- enable file system monitoring
|
||||
|
||||
-- Text overlay configuration
|
||||
swayimg.text.set_font("FiraCode Nerd Font") -- font name
|
||||
swayimg.text.set_size(24) -- font size in pixels
|
||||
swayimg.text.set_spacing(0) -- line spacing
|
||||
swayimg.text.set_padding(10) -- padding from window edge
|
||||
swayimg.text.set_foreground(0xffcccccc) -- foreground text color
|
||||
swayimg.text.set_background(0x00000000) -- text background color
|
||||
swayimg.text.set_shadow(0x0d000000) -- text shadow color
|
||||
swayimg.text.set_timeout(5) -- layer hide timeout
|
||||
swayimg.text.set_status_timeout(3) -- status message hide timeout
|
||||
|
||||
-- Image viewer mode
|
||||
swayimg.viewer.set_default_scale("optimal") -- default image scale
|
||||
swayimg.viewer.set_default_position("center") -- default image position
|
||||
swayimg.viewer.set_drag_button("MouseLeft") -- mouse button to drag image
|
||||
swayimg.viewer.set_window_background(0xff000000) -- window background color
|
||||
swayimg.viewer.set_image_chessboard(20, 0xff333333, 0xff4c4c4c) -- chessboard
|
||||
swayimg.viewer.enable_centering(true) -- enable automatic centering
|
||||
swayimg.viewer.enable_loop(true) -- enable image list loop mode
|
||||
swayimg.viewer.limit_preload(1) -- number of images to preload
|
||||
swayimg.viewer.limit_history(1) -- number of the history cache
|
||||
swayimg.viewer.set_mark_color(0xff808080) -- mark icon color
|
||||
swayimg.viewer.set_pinch_factor(1.0) -- pinch gesture factor
|
||||
swayimg.viewer.set_text("topleft", { -- top left text block scheme
|
||||
"File: {name}",
|
||||
"Format: {format}",
|
||||
"File size: {sizehr}",
|
||||
"File time: {time}",
|
||||
"EXIF date: {meta.Exif.Photo.DateTimeOriginal}",
|
||||
"EXIF camera: {meta.Exif.Image.Model}"
|
||||
})
|
||||
swayimg.viewer.set_text("topright", { -- top right text block scheme
|
||||
"Image: {list.index} of {list.total}",
|
||||
"Frame: {frame.index} of {frame.total}",
|
||||
"Size: {frame.width}x{frame.height}"
|
||||
})
|
||||
swayimg.viewer.set_text("bottomleft", { -- bottom left text block scheme
|
||||
"Scale: {scale}"
|
||||
})
|
||||
|
||||
-- Key and mouse bindings in viewer mode (example only, not all):
|
||||
|
||||
-- bind Escape key for exit
|
||||
swayimg.viewer.on_key("Escape", function()
|
||||
swayimg.exit()
|
||||
end)
|
||||
-- bind the left arrow key to move the image to the left by 1/10 of the application window size
|
||||
swayimg.viewer.on_key("Left", function()
|
||||
local wnd = swayimg.get_window_size()
|
||||
local pos = swayimg.viewer.get_position()
|
||||
swayimg.viewer.set_abs_position(math.floor(pos.x + wnd.width / 10), pos.y);
|
||||
end)
|
||||
-- bind mouse vertical scroll button with pressed Ctrl to zoom in the image at mouse pointer coordinates
|
||||
swayimg.viewer.on_mouse("Ctrl-ScrollUp", function()
|
||||
local pos = swayimg.get_mouse_pos()
|
||||
local scale = swayimg.viewer.get_scale()
|
||||
scale = scale + scale / 10
|
||||
swayimg.viewer.set_abs_scale(scale, pos.x, pos.y);
|
||||
end)
|
||||
|
||||
|
||||
-- Slide show mode, same config as for viewer mode with the following defaults:
|
||||
swayimg.slideshow.set_timeout(5) -- timeout to switch image
|
||||
swayimg.slideshow.set_default_scale("fit") -- default image scale
|
||||
swayimg.slideshow.set_window_background("auto") -- window background mode
|
||||
swayimg.slideshow.limit_history(0) -- number of the history cache
|
||||
swayimg.slideshow.set_text("topleft", { "{name}" }) -- top left text block scheme
|
||||
|
||||
|
||||
-- Gallery mode
|
||||
swayimg.gallery.set_aspect("fill") -- thumbnail aspect ratio
|
||||
swayimg.gallery.set_thumb_size(200) -- thumbnail size in pixels
|
||||
swayimg.gallery.set_padding_size(5) -- padding between thumbnails
|
||||
swayimg.gallery.set_border_size(5) -- border size for selected thumbnail
|
||||
swayimg.gallery.set_border_color(0xffaaaaaa) -- border color for selected thumbnail
|
||||
swayimg.gallery.set_selected_scale(1.15) -- scale for selected thumbnail
|
||||
swayimg.gallery.set_selected_color(0xff404040) -- background color for selected thumbnail
|
||||
swayimg.gallery.set_unselected_color(0xff202020) -- background color for unselected thumbnail
|
||||
swayimg.gallery.set_window_color(0xff000000) -- window background color
|
||||
swayimg.gallery.set_pinch_factor(100.0) -- pinch gesture factor
|
||||
swayimg.gallery.enable_hover(true) -- enable mouse following
|
||||
swayimg.gallery.limit_cache(100) -- number of thumbnails stored in memory
|
||||
swayimg.gallery.enable_embedded_thumb(true) -- use embedded thumbnails
|
||||
swayimg.gallery.enable_preload(false) -- preloading invisible thumbnails
|
||||
swayimg.gallery.enable_pstore(false) -- enable persistent storage for thumbnails
|
||||
swayimg.gallery.set_text("topleft", { -- top left text block scheme
|
||||
"File: {name}"
|
||||
})
|
||||
swayimg.gallery.set_text("topright", { -- top right text block scheme
|
||||
"{list.index} of {list.total}"
|
||||
})
|
||||
|
||||
-- Key and mouse bindings in gallery mode (example only, not all):
|
||||
|
||||
-- bind Enter key to open image in viewer
|
||||
swayimg.gallery.on_key("Return", function()
|
||||
swayimg.set_mode("viewer")
|
||||
end)
|
||||
-- bind the left arrow key to select thumbnail on the left side
|
||||
swayimg.gallery.on_key("Left", function()
|
||||
swayimg.gallery.switch_image("left")
|
||||
end)
|
||||
|
||||
--
|
||||
-- Other configuration examples
|
||||
--
|
||||
|
||||
-- force set scale mode on window resize (useful for tiling compositors)
|
||||
swayimg.on_window_resize(function()
|
||||
swayimg.viewer.set_fix_scale("optimal")
|
||||
end)
|
||||
|
||||
-- bind the Delete key in slide show mode to delete the current file and display a status message
|
||||
swayimg.slideshow.on_key("Delete", function()
|
||||
local image = swayimg.slideshow.get_image()
|
||||
os.remove(image.path)
|
||||
swayimg.text.set_status("File "..image.path.." removed")
|
||||
end)
|
||||
|
||||
-- set a custom window title in gallery mode
|
||||
swayimg.gallery.on_image_change(function()
|
||||
local image = swayimg.gallery.get_image()
|
||||
swayimg.set_title("Gallery: "..image.path)
|
||||
end)
|
||||
|
||||
-- print paths to all marked files by pressing Ctrl-p in gallery mode
|
||||
swayimg.gallery.on_key("Ctrl-p", function()
|
||||
local entries = swayimg.imagelist.get()
|
||||
for _, entry in ipairs(entries) do
|
||||
if entry.mark then
|
||||
print(entry.path)
|
||||
end
|
||||
end
|
||||
end)
|
||||
@@ -1,148 +0,0 @@
|
||||
-- General config
|
||||
swayimg.set_mode("viewer") -- mode at startup
|
||||
swayimg.enable_antialiasing(true) -- anti-aliasing
|
||||
swayimg.enable_decoration(true) -- window title/buttons/borders
|
||||
swayimg.enable_overlay(false) -- window overlay mode
|
||||
swayimg.enable_exif_orientation(true) -- image orientation by EXIF
|
||||
swayimg.set_dnd_button("MouseRight") -- drag-and-drop mouse button
|
||||
|
||||
-- Image list configuration
|
||||
swayimg.imagelist.set_order("numeric") -- list order
|
||||
swayimg.imagelist.enable_reverse(false) -- reverse order
|
||||
swayimg.imagelist.enable_recursive(false) -- recursive directory reading
|
||||
swayimg.imagelist.enable_adjacent(false) -- add adjacent files from same dir
|
||||
swayimg.imagelist.enable_fsmon(true) -- enable file system monitoring
|
||||
|
||||
-- Text overlay configuration
|
||||
swayimg.text.set_font("FiraCode Nerd Font") -- font name
|
||||
swayimg.text.set_size(12) -- font size in pixels
|
||||
swayimg.text.set_spacing(0) -- line spacing
|
||||
swayimg.text.set_padding(10) -- padding from window edge
|
||||
swayimg.text.set_foreground(0xffcccccc) -- foreground text color
|
||||
swayimg.text.set_background(0x00000000) -- text background color
|
||||
swayimg.text.set_shadow(0x0d000000) -- text shadow color
|
||||
swayimg.text.set_timeout(5) -- layer hide timeout
|
||||
swayimg.text.set_status_timeout(3) -- status message hide timeout
|
||||
|
||||
-- Image viewer mode
|
||||
swayimg.viewer.set_default_scale("optimal") -- default image scale
|
||||
swayimg.viewer.set_default_position("center") -- default image position
|
||||
swayimg.viewer.set_drag_button("MouseLeft") -- mouse button to drag image
|
||||
swayimg.viewer.set_window_background(0xff000000) -- window background color
|
||||
swayimg.viewer.set_image_chessboard(20, 0xff333333, 0xff4c4c4c) -- chessboard
|
||||
swayimg.viewer.enable_centering(true) -- enable automatic centering
|
||||
swayimg.viewer.enable_loop(true) -- enable image list loop mode
|
||||
swayimg.viewer.limit_preload(1) -- number of images to preload
|
||||
swayimg.viewer.limit_history(1) -- number of the history cache
|
||||
swayimg.viewer.set_mark_color(0xff808080) -- mark icon color
|
||||
swayimg.viewer.set_pinch_factor(1.0) -- pinch gesture factor
|
||||
swayimg.viewer.set_text("topleft", { -- top left text block scheme
|
||||
"File: {name}",
|
||||
"Format: {format}",
|
||||
"File size: {sizehr}",
|
||||
"File time: {time}",
|
||||
"EXIF date: {meta.Exif.Photo.DateTimeOriginal}",
|
||||
"EXIF camera: {meta.Exif.Image.Model}"
|
||||
})
|
||||
swayimg.viewer.set_text("topright", { -- top right text block scheme
|
||||
"Image: {list.index} of {list.total}",
|
||||
"Frame: {frame.index} of {frame.total}",
|
||||
"Size: {frame.width}x{frame.height}"
|
||||
})
|
||||
swayimg.viewer.set_text("bottomleft", { -- bottom left text block scheme
|
||||
"Scale: {scale}"
|
||||
})
|
||||
|
||||
-- Key and mouse bindings in viewer mode (example only, not all):
|
||||
|
||||
-- bind Escape key for exit
|
||||
swayimg.viewer.on_key("Escape", function()
|
||||
swayimg.exit()
|
||||
end)
|
||||
swayimg.viewer.on_key("q", function()
|
||||
swayimg.exit()
|
||||
end)
|
||||
swayimg.viewer.on_key("h", function()
|
||||
swayimg.viewer.switch_image("prev")
|
||||
end)
|
||||
swayimg.viewer.on_key("l", function()
|
||||
swayimg.viewer.switch_image("next")
|
||||
end)
|
||||
-- bind mouse vertical scroll button with pressed Ctrl to zoom in the image at mouse pointer coordinates
|
||||
swayimg.viewer.on_mouse("Ctrl-ScrollUp", function()
|
||||
local pos = swayimg.get_mouse_pos()
|
||||
local scale = swayimg.viewer.get_scale()
|
||||
scale = scale + scale / 10
|
||||
swayimg.viewer.set_abs_scale(scale, pos.x, pos.y);
|
||||
end)
|
||||
|
||||
|
||||
-- Slide show mode, same config as for viewer mode with the following defaults:
|
||||
swayimg.slideshow.set_timeout(5) -- timeout to switch image
|
||||
swayimg.slideshow.set_default_scale("fit") -- default image scale
|
||||
swayimg.slideshow.set_window_background("auto") -- window background mode
|
||||
swayimg.slideshow.limit_history(0) -- number of the history cache
|
||||
swayimg.slideshow.set_text("topleft", { "{name}" }) -- top left text block scheme
|
||||
|
||||
|
||||
-- Gallery mode
|
||||
swayimg.gallery.set_aspect("fill") -- thumbnail aspect ratio
|
||||
swayimg.gallery.set_thumb_size(200) -- thumbnail size in pixels
|
||||
swayimg.gallery.set_padding_size(5) -- padding between thumbnails
|
||||
swayimg.gallery.set_border_size(5) -- border size for selected thumbnail
|
||||
swayimg.gallery.set_border_color(0xffaaaaaa) -- border color for selected thumbnail
|
||||
swayimg.gallery.set_selected_scale(1.15) -- scale for selected thumbnail
|
||||
swayimg.gallery.set_selected_color(0xff404040) -- background color for selected thumbnail
|
||||
swayimg.gallery.set_unselected_color(0xff202020) -- background color for unselected thumbnail
|
||||
swayimg.gallery.set_window_color(0xff000000) -- window background color
|
||||
swayimg.gallery.set_pinch_factor(100.0) -- pinch gesture factor
|
||||
swayimg.gallery.enable_hover(true) -- enable mouse following
|
||||
swayimg.gallery.limit_cache(100) -- number of thumbnails stored in memory
|
||||
swayimg.gallery.enable_embedded_thumb(true) -- use embedded thumbnails
|
||||
swayimg.gallery.enable_preload(false) -- preloading invisible thumbnails
|
||||
swayimg.gallery.enable_pstore(false) -- enable persistent storage for thumbnails
|
||||
swayimg.gallery.set_text("topleft", { -- top left text block scheme
|
||||
"File: {name}"
|
||||
})
|
||||
swayimg.gallery.set_text("topright", { -- top right text block scheme
|
||||
"{list.index} of {list.total}"
|
||||
})
|
||||
|
||||
-- Key and mouse bindings in gallery mode (example only, not all):
|
||||
|
||||
-- bind Enter key to open image in viewer
|
||||
swayimg.gallery.on_key("Return", function()
|
||||
swayimg.set_mode("viewer")
|
||||
end)
|
||||
|
||||
--
|
||||
-- Other configuration examples
|
||||
--
|
||||
|
||||
-- force set scale mode on window resize (useful for tiling compositors)
|
||||
swayimg.on_window_resize(function()
|
||||
swayimg.viewer.set_fix_scale("optimal")
|
||||
end)
|
||||
|
||||
-- bind the Delete key in slide show mode to delete the current file and display a status message
|
||||
swayimg.slideshow.on_key("Delete", function()
|
||||
local image = swayimg.slideshow.get_image()
|
||||
os.remove(image.path)
|
||||
swayimg.text.set_status("File "..image.path.." removed")
|
||||
end)
|
||||
|
||||
-- set a custom window title in gallery mode
|
||||
swayimg.gallery.on_image_change(function()
|
||||
local image = swayimg.gallery.get_image()
|
||||
swayimg.set_title("Gallery: "..image.path)
|
||||
end)
|
||||
|
||||
-- print paths to all marked files by pressing Ctrl-p in gallery mode
|
||||
swayimg.gallery.on_key("Ctrl-p", function()
|
||||
local entries = swayimg.imagelist.get()
|
||||
for _, entry in ipairs(entries) do
|
||||
if entry.mark then
|
||||
print(entry.path)
|
||||
end
|
||||
end
|
||||
end)
|
||||
@@ -1,15 +0,0 @@
|
||||
# This file is written by xdg-user-dirs-update
|
||||
# If you want to change or add directories, just edit the line you're
|
||||
# interested in. All local changes will be retained on the next run.
|
||||
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
|
||||
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
|
||||
# absolute path. No other format is supported.
|
||||
#
|
||||
XDG_DESKTOP_DIR="$HOME/"
|
||||
XDG_DOWNLOAD_DIR="$HOME/Downloads"
|
||||
XDG_TEMPLATES_DIR="$HOME/"
|
||||
XDG_PUBLICSHARE_DIR="$HOME/"
|
||||
XDG_DOCUMENTS_DIR="$HOME/"
|
||||
XDG_MUSIC_DIR="$HOME/"
|
||||
XDG_PICTURES_DIR="$HOME/"
|
||||
XDG_VIDEOS_DIR="$HOME/"
|
||||
@@ -1 +0,0 @@
|
||||
{"binaries":["uv","uvx"],"binary_aliases":{},"cdylibs":[],"cstaticlibs":[],"install_layout":"flat","install_prefix":"/home/connorjohnstone/.local/bin","modify_path":true,"provider":{"source":"cargo-dist","version":"0.31.0"},"source":{"app_name":"uv","name":"uv","owner":"astral-sh","release_type":"github"},"version":"0.11.28"}
|
||||
@@ -1,3 +0,0 @@
|
||||
[General]
|
||||
initialize_flag=1
|
||||
random_key="vdMTT5fo/jNYQ34IidotpXAfH9STJX7BbHw0Cixytbw="
|
||||
@@ -1,66 +0,0 @@
|
||||
[General]
|
||||
GeoLocale=system
|
||||
SensitiveInfoMaskOn=true
|
||||
ShowBiDirecSyncNoti=true
|
||||
autoPlayGif=false
|
||||
bForceMaximizeWM=false
|
||||
captureHDCamera=true
|
||||
cefInstanceCountLimit=-1
|
||||
cefRefreshTime=0
|
||||
chatListPanelLastWidth=320
|
||||
com.zoom.client.langid=0
|
||||
conf.webserver=https://zoom.us
|
||||
currentMeetingId=82199284629
|
||||
deviceID=44:F7:9F:DA:68:95
|
||||
disableCef=false
|
||||
disableUsePasskey=false
|
||||
enable.host.auto.grab=true
|
||||
enableAlphaBuffer=true
|
||||
enableCefGpu=false
|
||||
enableCefLog=false
|
||||
enableCefOsrMode=true
|
||||
enableCefTa=false
|
||||
enableCloudSwitch=true
|
||||
enableLog=true
|
||||
enableMiniWindow=true
|
||||
enableQmlCache=true
|
||||
enableScreenSaveGuard=false
|
||||
enableStartMeetingWithRoomSystem=false
|
||||
enableTestMode=false
|
||||
enableUnifywebviewTa=false
|
||||
enablegpucomputeutilization=false
|
||||
fake.version=
|
||||
flashChatTime=0
|
||||
forceEnableTrayIcon=true
|
||||
forceSSOURL=
|
||||
hideCrashReport=false
|
||||
host.auto.grab.interval=10
|
||||
isTransCoding=false
|
||||
legacyAvatarCacheCleaned=1781022922
|
||||
logLevel=info
|
||||
newMeetingWithVideo=true
|
||||
noSandbox=false
|
||||
playSoundForNewMessage=false
|
||||
shareBarTopMargin=0
|
||||
shortcut_as_global_ShortcutID_Screenshot=false
|
||||
shortcut_as_global_ShortcutID_ShowHideFloatingMeetingControls=true
|
||||
showOneTimePTAICTipHubble=false
|
||||
showOneTimeQueriesOptionTip=true
|
||||
showOneTimeSmartRecognitionCoackMark=true
|
||||
showOneTimeTranslationUpSellTip=false
|
||||
showSystemTitlebar=false
|
||||
speaker_volume=255
|
||||
sso_domain=.zoom.us
|
||||
sso_gov_domain=.zoomgov.com
|
||||
system.audio.type=default
|
||||
systemDockMargin=0
|
||||
timeFormat12HoursEnable=true
|
||||
translationFreeTrialTipShowTime=0
|
||||
upcoming_meeting_header_image=
|
||||
useSystemTheme=false
|
||||
userEmailAddress=
|
||||
webview.debug.enable=false
|
||||
xwayland=true
|
||||
|
||||
[AS]
|
||||
showframewindow=true
|
||||
Reference in new issue
Block a user