This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ADMUTE=0 | |
PAUSED=0 | |
get_pactl_nr(){ | |
pactl list | grep -E '(^Sink Input)|(media.name = \"Spotify\"$)' | cut -d \# -f2 \ | |
| grep -v Spotify | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <unistd.h> | |
#include <X11/Xlib.h> | |
#include <X11/cursorfont.h> | |
#include <X11/extensions/shape.h> | |
// Include the mouse cursor xbm directly | |
#define mouse_width 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[build-system] | |
requires = [ | |
"setuptools", | |
"wheel", | |
] | |
build-backend = "setuptools.build_meta" | |
[tool.black] | |
line-length = 120 | |
skip-string-normalization = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repos: | |
- repo: meta | |
hooks: | |
- id: check-useless-excludes | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.2.0 | |
hooks: | |
- id: check-added-large-files | |
- id: check-ast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
charset = utf-8 | |
indent_style = space | |
[*.{json,py,tf}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tags should be as specific as possible | |
FROM ubuntu:jammy-20220815 | |
# Add metadata to the image | |
LABEL maintainer="[email protected]" | |
# Use diff-friendly syntax for multi-line commands | |
# Do not install non-necessary packages | |
# Sort dependencies | |
# Clean non-necessary files after installing dependencies |