Alucard

Untitled

Mar 30th, 2026
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.65 KB | None | 0 0
  1. # Swayimg configuration file.
  2. # vim: filetype=dosini
  3.  
  4. # This file contains the default configuration.
  5. # The viewer searches for the config file in the following locations:
  6. # 1. $XDG_CONFIG_HOME/swayimg/config
  7. # 2. $HOME/.config/swayimg/config
  8. # 3. $XDG_CONFIG_DIRS/swayimg/config
  9. # 4. /etc/xdg/swayimg/config
  10.  
  11. # Any of these options can be overridden using the --config argument
  12. # on the command line, for instance:
  13. # $ swayimg --config="general.mode=gallery"
  14.  
  15. ################################################################################
  16. # General configuration
  17. ################################################################################
  18. [general]
  19. # Mode at startup (viewer/slideshow/gallery)
  20. mode = viewer
  21. # Window size (fullscreen/image, or absolute size)
  22. size = fullscreen
  23. # Sway/Hyprland only: Window position (auto or absolute coordinates, e.g. 10,20)
  24. position = auto
  25. # Sway/Hyprland only: create floating window above the currently focused one
  26. overlay = yes
  27. # Use window decoration (yes/no)
  28. decoration = no
  29. # Action performed by SIGUSR1 signal (same format as for key bindings)
  30. sigusr1 = reload
  31. # Action performed by SIGUSR2 signal (same format as for key bindings)
  32. sigusr2 = next_file
  33. # Application ID and window class name
  34. app_id = swayimg
  35.  
  36. ################################################################################
  37. # DRM mode settings
  38. ################################################################################
  39. [drm]
  40. # Path to DRM device, e.g. /dev/dri/card1
  41. path = auto
  42. # Connector name, e.g. DP-1
  43. connector = auto
  44. # Display resolution and frequency, e.g. 1920x1080@60
  45. mode = auto
  46.  
  47. ################################################################################
  48. # Viewer mode configuration
  49. ################################################################################
  50. [viewer]
  51. # Window background color (auto/extend/mirror/RGBA)
  52. window = #1e1e2eff
  53. # Background for transparent images (grid/RGBA)
  54. transparency = #1e1e2eff
  55. # Default image scale (optimal/width/height/fit/fill/real/keep)
  56. scale = optimal
  57. # Initial image position on the window (center/top/bottom/free/...)
  58. position = center
  59. # Anti-aliasing mode (none/box/bilinear/bicubic/mks13)
  60. antialiasing = mks13
  61. # Loop image list: jump to first image when end of list is reached (yes/no)
  62. loop = yes
  63. # Number of previously viewed images to store in cache
  64. history = 1
  65. # Number of preloaded images (read ahead)
  66. preload = 1
  67.  
  68. ################################################################################
  69. # Slideshow mode configuration
  70. ################################################################################
  71. [slideshow]
  72. # Slideshow image display time (seconds)
  73. time = 3
  74. # Window background color (auto/extend/mirror/RGBA)
  75. window = #1e1e2eff
  76. # Background for transparent images (grid/RGBA)
  77. transparency = #1e1e2eff
  78. # Default image scale (optimal/width/height/fit/fill/real)
  79. scale = optimal
  80. # Initial image position on the window (center/top/bottom/free/...)
  81. position = center
  82. # Anti-aliasing mode (none/box/bilinear/bicubic/mks13)
  83. antialiasing = mks13
  84.  
  85. ################################################################################
  86. # Gallery mode configuration
  87. ################################################################################
  88. [gallery]
  89. # Height and width of each thumbnail (pixels)
  90. size = 200
  91. # Scale of the selected tile (float)
  92. selected_scale = 1.15
  93. # Thumbnail aspect ratio (fit/fill/keep)
  94. aspect = fill
  95. # Padding between thumbnails (pixels)
  96. padding = 5
  97. # Background color of the selected tile (RGBA)
  98. select = #404040ff
  99. # Background color of non-selected tiles (RGBA)
  100. background = #202020ff
  101. # Border color of the selected tile (RGBA)
  102. border_color = #aaaaaaff
  103. # Border width of the selected tile (pixels)
  104. border_width = 5
  105. # Background color of the window (RGBA)
  106. window = #00000000
  107. # Max number of invisible thumbnails stored in memory cache
  108. cache = 100
  109. # Load not only visible but also adjacent thumbnails
  110. preload = no
  111. # Enable/disable storing thumbnails in persistent storage (yes/no)
  112. pstore = no
  113. # Anti-aliasing mode for thumbnails (none/box/bilinear/bicubic/mks13)
  114. antialiasing = mks13
  115.  
  116. ################################################################################
  117. # Image list configuration
  118. ################################################################################
  119. [list]
  120. # Default order (none/alpha/numeric/mtime/size/random)
  121. order = alpha
  122. # Reverse order (yes/no)
  123. reverse = no
  124. # Read directories recursively (yes/no)
  125. recursive = no
  126. # Add files from the same directory as the first file (yes/no)
  127. all = yes
  128. # Enable file system monitoring for adding new images to the list (yes/no)
  129. fsmon = no
  130.  
  131. ################################################################################
  132. # Font configuration
  133. ################################################################################
  134. [font]
  135. # Font name
  136. name = Inter
  137. # Font size (pt)
  138. size = 12
  139. # Font color (RGBA)
  140. color = #ca9ee6ff
  141. # Shadow color (RGBA)
  142. shadow = #000000d0
  143. # Background color (RGBA)
  144. background = #00000000
  145.  
  146. ################################################################################
  147. # Image meta info scheme (format, size, EXIF, etc.)
  148. ################################################################################
  149. [info]
  150. # Show on startup (yes/no)
  151. show = yes
  152. # Text padding from window edges
  153. padding = 5
  154. # Timeout to hide info (seconds, 0 to always show)
  155. info_timeout = 5
  156. # Timeout to hide status message (seconds)
  157. status_timeout = 3
  158.  
  159. # Display scheme for viewer mode (position = content)
  160. [info.viewer]
  161. top_left = +name,+format,+filesize,+imagesize,+exif
  162. top_right = index
  163. bottom_left = scale,frame
  164. bottom_right = status
  165.  
  166. # Display scheme for slideshow mode (position = content)
  167. [info.slideshow]
  168. top_left = none
  169. top_right = none
  170. bottom_left = none
  171. bottom_right = dir,status
  172.  
  173. # Display scheme for gallery mode (position = content)
  174. [info.gallery]
  175. top_left = none
  176. top_right = index
  177. bottom_left = none
  178. bottom_right = name,status
  179.  
  180. ################################################################################
  181. # Viewer mode key binding configuration: key = action [parameters]
  182. ################################################################################
  183. [keys.viewer]
  184. F1 = help
  185. Home = first_file
  186. End = last_file
  187. Prior = prev_file
  188. Next = next_file
  189. Space = next_file
  190. Shift+r = rand_file
  191. Shift+d = prev_dir
  192. d = next_dir
  193. Shift+o = prev_frame
  194. o = next_frame
  195. c = skip_file
  196. s = mode slideshow
  197. n = animation
  198. f = fullscreen
  199. Return = mode gallery
  200. Left = step_left 10
  201. Right = step_right 10
  202. Up = step_up 10
  203. Down = step_down 10
  204. Equal = zoom +10
  205. Plus = zoom +10
  206. Minus = zoom -10
  207. w = zoom width
  208. Shift+w = zoom height
  209. z = zoom fit
  210. Shift+z = zoom fill
  211. 0 = zoom real
  212. BackSpace = zoom optimal
  213. k = zoom keep
  214. Alt+s = zoom
  215. Alt+p = position
  216. bracketleft = rotate_left
  217. bracketright = rotate_right
  218. m = flip_vertical
  219. Shift+m = flip_horizontal
  220. a = antialiasing
  221. r = reload
  222. i = info
  223. Shift+Delete = exec rm -f '%' && echo "File removed: %"; skip_file
  224. Escape = exit
  225. q = exit
  226. # Mouse related
  227. ScrollLeft = step_right 5
  228. ScrollRight = step_left 5
  229. ScrollUp = step_up 5
  230. ScrollDown = step_down 5
  231. Ctrl+ScrollUp = zoom +10 mouse
  232. Ctrl+ScrollDown = zoom -10 mouse
  233. Shift+ScrollUp = prev_file
  234. Shift+ScrollDown = next_file
  235. Alt+ScrollUp = prev_frame
  236. Alt+ScrollDown = next_frame
  237. MouseLeft = drag
  238. MouseSide = prev_file
  239. MouseExtra = next_file
  240.  
  241. ################################################################################
  242. # Slideshow mode key binding configuration: key = action [parameters]
  243. ################################################################################
  244. [keys.slideshow]
  245. F1 = help
  246. Home = first_file
  247. End = last_file
  248. Prior = prev_file
  249. Next = next_file
  250. Shift+r = rand_file
  251. Shift+d = prev_dir
  252. d = next_dir
  253. Space = pause
  254. i = info
  255. f = fullscreen
  256. Return = mode
  257. Escape = exit
  258. q = exit
  259.  
  260. ################################################################################
  261. # Gallery mode key binding configuration: key = action [parameters]
  262. ################################################################################
  263. [keys.gallery]
  264. F1 = help
  265. Home = first_file
  266. End = last_file
  267. Left = step_left
  268. Right = step_right
  269. Up = step_up
  270. Down = step_down
  271. Prior = page_up
  272. Next = page_down
  273. c = skip_file
  274. s = mode slideshow
  275. f = fullscreen
  276. Return = mode viewer
  277. a = antialiasing
  278. r = reload
  279. i = info
  280. Equal = thumb +20
  281. Plus = thumb +20
  282. Minus = thumb -20
  283. Shift+Delete = exec rm -f '%' && echo "File removed: %"; skip_file
  284. Escape = exit
  285. q = exit
  286. # Mouse related
  287. ScrollLeft = step_right
  288. ScrollRight = step_left
  289. ScrollUp = step_up
  290. ScrollDown = step_down
  291. Ctrl+ScrollUp = thumb +20
  292. Ctrl+ScrollDown = thumb -20
  293. MouseLeft = mode viewer
  294.  
Advertisement
Add Comment
Please, Sign In to add comment