18 changed files with 290 additions and 32 deletions
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh |
||||
|
||||
# Example for $XDG_CONFIG_HOME/sxiv/exec/image-info |
||||
# Called by sxiv(1) whenever an image gets loaded. |
||||
# The output is displayed in sxiv's status bar. |
||||
# Arguments: |
||||
# $1: path to image file |
||||
# $2: image width |
||||
# $3: image height |
||||
|
||||
s=" " # field separator |
||||
|
||||
exec 2>/dev/null |
||||
|
||||
filename=$(basename -- "$1") |
||||
filesize=$(du -Hh -- "$1" | cut -f 1) |
||||
geometry="${2}x${3}" |
||||
|
||||
echo "${filesize}${s}${geometry}${s}${filename}" |
||||
|
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh |
||||
|
||||
# $XDG_CONFIG_HOME/sxiv/exec/key-handler |
||||
# |
||||
# Called by sxiv(1) after the external prefix key (C-x by default) is pressed. |
||||
# The next key combo is passed as its first argument. Passed via stdin are the |
||||
# images to act upon, one path per line: all marked images, if in thumbnail |
||||
# mode and at least one image has been marked, otherwise the current image. |
||||
# sxiv(1) blocks until this script terminates. It then checks which images |
||||
# have been modified and reloads them. |
||||
# |
||||
# The key combo argument has the following form: "[C-][M-][S-]KEY", |
||||
# where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X |
||||
# keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix. |
||||
|
||||
case "$1" in |
||||
"C-d") tr '\n' '\0' | xargs -IF -0 rm -v F;; |
||||
esac |
||||
|
@ -0,0 +1,92 @@
@@ -0,0 +1,92 @@
|
||||
# Copy this to ~/.config/skippy-xd/skippy-xd.rc and edit it to your liking |
||||
# |
||||
# Notes: |
||||
# |
||||
# - colors can be anything XAllocNamedColor can handle |
||||
# (like "black" or "#000000") |
||||
# |
||||
# - distance is a relative number, and is scaled according to the scale |
||||
# factor applied to windows |
||||
# |
||||
# - fonts are Xft font descriptions |
||||
# |
||||
# - booleans are "true" or anything but "true" (-> false) |
||||
# |
||||
# - opacity is an integer in the range of 0-255 |
||||
# |
||||
# - brighness is a floating point number (with 0.0 as neutral) |
||||
# |
||||
# - if the update frequency is a negative value, the mini-windows will only |
||||
# be updated when they're explicitly rendered (like, when they gain or |
||||
# lose focus). |
||||
# |
||||
# - the 'shadowText' option can be a color or 'none', in which case the |
||||
# drop-shadow effect is disabled |
||||
# |
||||
# - Picture specification: |
||||
# [WIDTHxHEIGHT] [orig|scale|scalek|tile] [left|mid|right] [left|mid|right] |
||||
# [COLOR|#FFFFFFFF] [PATH] |
||||
# |
||||
# Examples: |
||||
# background = 500x400 tile right mid #FF0000 /home/richard/screenshots/256.png |
||||
# background = orig mid mid #FF000080 |
||||
# |
||||
# - Bindings in [bindings] section can bind to "no" (do nothing), "focus" |
||||
# (focus to window), "iconify", "shade-ewmh" (toggle window shade state), |
||||
# "close-icccm" (close window with ICCCM method), "close-ewmh" (close |
||||
# window with EWMH method), or "destroy" (forcefully destroy the window). |
||||
# |
||||
|
||||
[general] |
||||
distance = 50 |
||||
useNetWMFullscreen = true |
||||
ignoreSkipTaskbar = true |
||||
updateFreq = 10.0 |
||||
lazyTrans = false |
||||
pipePath = /tmp/skippy-xd-fifo |
||||
movePointerOnStart = true |
||||
movePointerOnSelect = true |
||||
movePointerOnRaise = true |
||||
switchDesktopOnActivate = true |
||||
useNameWindowPixmap = false |
||||
forceNameWindowPixmap = false |
||||
includeFrame = true |
||||
allowUpscale = true |
||||
showAllDesktops = true |
||||
showUnmapped = true |
||||
preferredIconSize = 48 |
||||
clientDisplayModes = thumbnail icon filled none |
||||
iconFillSpec = orig mid mid #00FFFF |
||||
fillSpec = orig mid mid #FFFFFF |
||||
background = scale mid mid #FFFFFF /home/maks/.shellrc/etc/wm/img/wallpaper.GenuineIntel.jpg |
||||
|
||||
[xinerama] |
||||
showAll = true |
||||
|
||||
[normal] |
||||
tint = black |
||||
tintOpacity = 0 |
||||
opacity = 200 |
||||
|
||||
[highlight] |
||||
tint = #101020 |
||||
tintOpacity = 64 |
||||
opacity = 255 |
||||
|
||||
[tooltip] |
||||
show = true |
||||
followsMouse = true |
||||
offsetX = 20 |
||||
offsetY = 20 |
||||
align = left |
||||
border = #ffffff |
||||
background = #404040 |
||||
opacity = 128 |
||||
text = #ffffff |
||||
textShadow = black |
||||
font = fixed-11:weight=bold |
||||
|
||||
[bindings] |
||||
miwMouse1 = focus |
||||
miwMouse2 = close-ewmh |
||||
miwMouse3 = iconify |
@ -0,0 +1,92 @@
@@ -0,0 +1,92 @@
|
||||
# Copy this to ~/.config/skippy-xd/skippy-xd.rc and edit it to your liking |
||||
# |
||||
# Notes: |
||||
# |
||||
# - colors can be anything XAllocNamedColor can handle |
||||
# (like "black" or "#000000") |
||||
# |
||||
# - distance is a relative number, and is scaled according to the scale |
||||
# factor applied to windows |
||||
# |
||||
# - fonts are Xft font descriptions |
||||
# |
||||
# - booleans are "true" or anything but "true" (-> false) |
||||
# |
||||
# - opacity is an integer in the range of 0-255 |
||||
# |
||||
# - brighness is a floating point number (with 0.0 as neutral) |
||||
# |
||||
# - if the update frequency is a negative value, the mini-windows will only |
||||
# be updated when they're explicitly rendered (like, when they gain or |
||||
# lose focus). |
||||
# |
||||
# - the 'shadowText' option can be a color or 'none', in which case the |
||||
# drop-shadow effect is disabled |
||||
# |
||||
# - Picture specification: |
||||
# [WIDTHxHEIGHT] [orig|scale|scalek|tile] [left|mid|right] [left|mid|right] |
||||
# [COLOR|#FFFFFFFF] [PATH] |
||||
# |
||||
# Examples: |
||||
# background = 500x400 tile right mid #FF0000 /home/richard/screenshots/256.png |
||||
# background = orig mid mid #FF000080 |
||||
# |
||||
# - Bindings in [bindings] section can bind to "no" (do nothing), "focus" |
||||
# (focus to window), "iconify", "shade-ewmh" (toggle window shade state), |
||||
# "close-icccm" (close window with ICCCM method), "close-ewmh" (close |
||||
# window with EWMH method), or "destroy" (forcefully destroy the window). |
||||
# |
||||
|
||||
[general] |
||||
distance = 50 |
||||
useNetWMFullscreen = true |
||||
ignoreSkipTaskbar = true |
||||
updateFreq = 10.0 |
||||
lazyTrans = false |
||||
pipePath = /tmp/skippy-xd-fifo |
||||
movePointerOnStart = true |
||||
movePointerOnSelect = true |
||||
movePointerOnRaise = true |
||||
switchDesktopOnActivate = true |
||||
useNameWindowPixmap = false |
||||
forceNameWindowPixmap = false |
||||
includeFrame = true |
||||
allowUpscale = true |
||||
showAllDesktops = false |
||||
showUnmapped = true |
||||
preferredIconSize = 48 |
||||
clientDisplayModes = thumbnail icon filled none |
||||
iconFillSpec = orig mid mid #00FFFF |
||||
fillSpec = orig mid mid #FFFFFF |
||||
background = scale mid mid #FFFFFF /home/maks/.shellrc/etc/wm/img/wallpaper.GenuineIntel.jpg |
||||
|
||||
[xinerama] |
||||
showAll = true |
||||
|
||||
[normal] |
||||
tint = black |
||||
tintOpacity = 0 |
||||
opacity = 200 |
||||
|
||||
[highlight] |
||||
tint = #101020 |
||||
tintOpacity = 64 |
||||
opacity = 255 |
||||
|
||||
[tooltip] |
||||
show = true |
||||
followsMouse = true |
||||
offsetX = 20 |
||||
offsetY = 20 |
||||
align = left |
||||
border = #ffffff |
||||
background = #404040 |
||||
opacity = 128 |
||||
text = #ffffff |
||||
textShadow = black |
||||
font = fixed-11:weight=bold |
||||
|
||||
[bindings] |
||||
miwMouse1 = focus |
||||
miwMouse2 = close-ewmh |
||||
miwMouse3 = iconify |
Loading…
Reference in new issue