Compare commits

..

6 commits

Author SHA1 Message Date
13a65ce1f0
fix: updated CHANGELOG
All checks were successful
Create release on tag push / Create release (push) Successful in 47s
2024-05-11 21:16:14 +02:00
50452aed8a
fix[docs]: executable name in the README 2024-05-11 21:12:59 +02:00
rolv
4b0cc2fe32
fix: enforce lowercase to fix hyprland detection 2024-05-11 20:42:01 +02:00
5f1df7cb9d
fix: -ed release workflow (hopefully) 2024-05-11 20:41:05 +02:00
17973ef6fe
chore: forgejo workflows 2024-02-18 23:23:52 +01:00
e076267fd6
docs: consistency 2024-02-18 21:51:05 +01:00
4 changed files with 51 additions and 4 deletions

View file

@ -0,0 +1,34 @@
name: Create release on tag push
on:
push:
tags:
- "*"
jobs:
build:
name: Create release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Zip up the files
run: zip -r coolant.zip *
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.20.1"
- name: Draft release
uses: https://gitea.com/actions/release-action@main
with:
body_path: CHANGELOG.md
files: |-
coolant.zip
draft: true
api_key: "${{ secrets.RELEASE_TOKEN }}"

View file

@ -1 +1,10 @@
# 0.1.1 (2024-05-11)
## Fixed
* Detection logic is more sturdy now (change `SESSION`/`DESKTOP` to lowercase).
* README.md no longer refers to `hyprfreeze` in the configuration section.
# 0.1.0 (2024-02-18)
initial release

View file

@ -58,9 +58,9 @@ ln -s $(pwd)/Coolant/coolant $HOME/.local/bin
- JQ to parse json
- pstree which is required to list child processes
- (Optional) xprop on X11,
[hyprprop](https://github.com/vilari-mickopf/hyprprop) (on Hyprland) or
[swayprop](https://git.alternerd.tv/alterNERDtive/swayprop) (on Sway) to get
the pid of a window by selecting it with your mouse.
[hyprprop](https://github.com/vilari-mickopf/hyprprop) on Hyprland or
[swayprop](https://git.alternerd.tv/alterNERDtive/swayprop) on Sway to get the
pid of a window by selecting it with your mouse.
- (Optional) Systemd for detecting session type / desktop via `loginctl`.
## Usage
@ -71,7 +71,7 @@ Add a bind in your Hyprland or Sway config to pause the current active window:
# ~/.config/hypr/hyprland.conf
...
# Toggle freeze on active window
bind = , PAUSE, exec, hyprfreeze -a
bind = , PAUSE, exec, coolant -a
```
### Available flags

View file

@ -148,6 +148,10 @@ function detectEnvironment() {
die "Could not determine desktop environment via loginctl, and \$XDG_SESSION_DESKTOP is not set." 130
fi
# Enforce lowercase for consistent matching
SESSION="${SESSION,,}"
DESKTOP="${DESKTOP,,}"
debugPrint "Session: $SESSION"
debugPrint "Desktop: $DESKTOP"
}