I hereby claim:
- I am kstepanovdev on github.
- I am v0570k (https://keybase.io/v0570k) on keybase.
- I have a public key ASCaRIc01l_-_7Q7mN768YuzDNUpuY4_KIXe9QfAIW7gPAo
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| # original at https://gist.github.com/yinonburgansky/7be4d0489a0df8c06a923240b8eb0191 | |
| # modified for ease of use in Hyprland | |
| # calculation are based on http://www.esreality.com/index.php?a=post&id=1945096 | |
| # assuming windows 10 uses the same calculation as windows 7. | |
| # guesses have been made calculation is not accurate | |
| # touchpad users make sure your touchpad is calibrated with `sudo libinput measure touchpad-size` |
I hereby claim:
To claim this, I am signing this object:
I recently figured out how to launch applications in sway on login (or config reload) in specific workspaces. I tried doing this a year or so ago using procedural calls to swaymsg with manual changes to workspaces but it failed due to the delay in launching apps (the workspace would change too quickly). However, I recently figured out how to actually do it by combining swaymsg with assign.
First, you'll want to get the app_id, class or title of window you want to launch. Then you'll want to add it to the your sway config file.
The syntax looks like:
| #! /bin/bash -e | |
| # | |
| # clean up everything in CACHE_DIR last accessed more than DAYS days ago. | |
| # also removes files with bogus timestamps in the future. | |
| # | |
| # ----------------------------------------------------------------------- | |
| # Copyright 2021 Todd Derr ([email protected]) | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. |
TL;DR
| Message pattern: ^time="(.*)" level=([^\s]+) .*$ | |
| Message start pattern: ^time= | |
| Time format: yyyy-MM-dd'T'HH:mm:ssXXX | |
| Time capture group: 1 | |
| Serverity capture group: 2 | |
| Reference: https://github.com/JetBrains/ideolog/wiki/Custom-Log-Formats |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" | |
| ) | |
| func main() { |
| # using-wget-with-socks-proxy | |
| # This should work for everything includeing curl, pip, pipenv, etc | |
| # TLDR: Use proxychains (https://github.com/haad/proxychains) | |
| ## INSTALL PROXY CHAINS ## | |
| $ sudo apt update -y | |
| $ sudo apt install proxychains | |
| ## EDIT PROXYCHAINS CONFIG ## |