Skip to content

u/HashWorks

In this archive from Dec 2014 to Feb 2023

22
posts
122
comments
5
media
975
score

I'm using it with a Surface Go 2. Works great. I really like the tiling automatics – landscape is left to right, portrait switches to top to bottom. Buttons are big enough to be handled using touch (although I had a bug which I fixed upstream).

One small thing that bugged me with the normal Gnome Shell is that it was a hassle to close windows using touch only. With Material Shell it's much better.

3 points

You just have to send the following to https://itch.io/bundle/download/<bundle_token>:
csrf_token=<claim_token>
game_id=<number>
action=claim

The claim token and the game id number can be parsed from the HTML of the game list (by crawling the 51+ pages).

Claiming then gives you a Location Header with the link to the page with the download buttons. In there you'll find the file IDs, after that it's just wget --content-disposition "$(curl "$(echo $downloadpagelink | sed "s/download\//file\/${fileid}?key=/" $cookieStuff)" | jq -r .url)"

Of course for all requests but the final wget you need your Session Cookie, just catch that from your browser.

1 points

For my AUR packages (more like 10, not 100) I've automated the process. GitHub releases trigger my GitLabCI pipeline using IFTTT which parses the new pkgver, generates the hash-sum and replaces both in the PKGBUILD. If the build succeeds in a clean Docker container and the binary works fine the changes are committed and pushed to the AUR Repository. Additionally other pipelines are triggered to increase the pkgver of packages that need a rebuild.

https://git.hashworks.net/aur-packages/ci-cd/blob/master/github-packages.yml

It's more or less what I would do locally, so why not automate it?

5 points

Maybe you have a different version, I don't even have that parameter.

$ nautilus --no-desktop
Unknown option --no-desktop

$ nautilus --help
Usage:
  nautilus [OPTION…] [URI…]

Help Options:
  -h, --help                  Show help options
  --help-all                  Show all help options
  --help-gapplication         Show GApplication options
  --help-gtk                  Show GTK+ Options

Application Options:
  -c, --check                 Perform a quick set of self-check tests.
  --version                   Show the version of the program.
  -w, --new-window            Always open a new window for browsing specified URIs
  -n, --no-default-window     Only create windows for explicitly specified URIs.
  -q, --quit                  Quit Nautilus.
  -s, --select                Select specified URI in parent folder.
  --display=DISPLAY           X display to use

$ nautilus --version
GNOME nautilus 3.28.1
1 points

They are weird abominations of config file linking and way to much sed and should really never see the light of the day - So I would rather not. Also the script is quite limited on my personal use case, so in all you will be better of writing it yourself. You should be able to do so from my top comment :)

1 points

Lately I often have to show code and terminal output on projectors with white background where my dark themes are not feasible. Therefore I wrote me terminal scripts to switch between dark and light on the fly!

The setup shown is i3-gaps with i3blocks and rofi. To change the themes I mainly alter or cat together a bunch of config files based on the required theme. Some applications like sublime-text instantly recognize the change, others like i3bar need to be restarted and others like i3 itself need to be told to reload the configuration.

The GTK themes I use are Arc and Arc-Dark, sublime-text themes are Material-Theme-Lighter and Material-Theme and color themes are base16-tomorrow and base16-tomorrow-night from here.

Stuff I can't do yet is:

  • Don't show urxvt borders at all
  • Change all open terminal emulators on the fly
  • Change GTK themes on the fly without restarting applications
6 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.