Skip to content

Instantly share code, notes, and snippets.

View CouldBeThis's full-sized avatar

CouldBeThis CouldBeThis

  • lol nope
View GitHub Profile
@CouldBeThis
CouldBeThis / hugo.md
Last active June 4, 2022 08:50
Hugo commands and info

#hugo notes

from help

Flags:
  -D, --buildDrafts                include content marked as draft
      --cleanDestinationDir        remove files from destination not found in static directories
      --enableGitInfo              add Git revision, date, author, and CODEOWNERS info to the pages
 --forceSyncStatic copy all files when static is changed.
@CouldBeThis
CouldBeThis / xfwm4-to-HiDPI.md
Created June 17, 2022 00:23
resize xfce xfwm4 themes to 200%, making suitable for HiDPI
@CouldBeThis
CouldBeThis / linux-ui-tools-rofi.md
Last active January 23, 2023 04:10
🧰 🥽 [gui tools] fast access via keyboard with `rofi`

🧰 🥽 [gui tools] fast access via keyboard with rofi

repo: davatorium/rofi: Rofi: A window switcher, application launcher and dmenu replacement

use Keyboard > Application Shortcuts setting panel in WM to create shortcut (I used alt+space)

simple use

rofi -show drun -show-icons -sidebar-mode -show-icons
$originalsFolder = 'originals'
$resizedFolder = 'resized'
$reorganizedFolder = 'reorganized'
$originals = Get-ChildItem -Path $originalsFolder -Recurse -Include *.jpg
foreach ($original in $originals) {
$resized = Get-ChildItem -Path $resizedFolder -Recurse -Include $original.Name
$destination = ($resized.FullName).Replace($resizedFolder, $reorganizedFolder).Replace($resized.Name, "")
New-Item $destination -Type Directory
@CouldBeThis
CouldBeThis / window-manipulation.md
Created September 12, 2022 03:54
manipulating and working with windows in xfce4/linux

get information about a given window

xprop - property displayer for X

xprop man page, XPROP(1) manual page

The xprop utility is for displaying window and font properties in an X server. One window or font is selected using the command line arguments or possibly in the case of a window, by clicking on the desired window. A list of properties is then given, possibly with formatting information.

@CouldBeThis
CouldBeThis / uca.xml
Last active December 24, 2022 22:55
Thunar custom actions ~/.config/Thunar/uca.xml
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<icon></icon>
<name>⨁ _Copy path to clipboard</name>
<submenu></submenu>
<unique-id>1671863021510925-2</unique-id>
<command>echo -n %f | xclip -selection &quot;clipboard&quot;</command>
<description>_Copy Current Path</description>
<range>*</range>