Skip to content

Conversation

@kRHYME7
Copy link
Contributor

@kRHYME7 kRHYME7 commented Apr 14, 2025

Pull Request

Description

A selector for persistent workflow mode. Idea from this PR #479 by JunaidQrysh

  1. For now we have: gaming,editing and powersave

image

  1. Configurable! As you can add your own workflow config. You can also run some commands on a specific workflow by adding exec commands.

Reasons why persistent configs is good for now

  1. Dynamic (hyprctl commands) needs to be parsed by another info calls of hyprctl command or saving a tmp file. This is OK but the tmp file cannot actually describes the configuration. So how about we put the mode config into the hyprland configuration itself.

  2. We are not using IPC yet.

  3. the current imple of gamemode.sh runs hyprctl reload on toggle anyway so why not store it as a file.


For NIX

  • we added another mutable file ~/.config/hypr/workflow.conf

Preview

250415_01h15m58s_screenrecord.mp4

@kRHYME7 kRHYME7 requested a review from richen604 April 14, 2025 17:32
@kRHYME7
Copy link
Contributor Author

kRHYME7 commented Apr 14, 2025

@JunaidQrysh maybe you want to add something? As long as it is generally useful.

@JunaidQrysh
Copy link

I suggest adding this(snappy.conf); it retains all the eye candy except animations to make hyprland feel snappier

$WORKFLOW_ICON=󰓅 # this is an indicator that can be parsed by waybar or other status guis
$WORKFLOW_DESCRIPTION = Snappy desktop

decoration {
rounding = 0
}

general {
gaps_in = 0
gaps_out = 0
border_size = 1
}

animations:enabled = 0

@kRHYME7
Copy link
Contributor Author

kRHYME7 commented Apr 15, 2025

I can't get to make waybar change the icon using signals (I hate polling). It only change when I click it.

{
  "custom/workflows": {
    "format": "{}",
    "interval": "once",
    "exec": "hyde-shell workflows.sh --waybar",
    "exec-on-event": "hyde-shell workflows.sh --waybar",
    "on-click": "hyde-shell workflows --select",
    "tooltip": true,
    "return-type": "json"
  },
  "signal": 19
}

you might want to take a look. Though this should be added after merging this branch to master and add this module to waybar branch

Edit I'm an idiot.


{
  "custom/workflows": {
    "format": "{}",
    "interval": "once",
    "exec": "hyde-shell workflows.sh --waybar",
    "exec-on-event": "hyde-shell workflows.sh --waybar",
    "on-click": "hyde-shell workflows --select",
    "tooltip": true,
    "return-type": "json",
    "signal": 19
  }
}


@kRHYME7
Copy link
Contributor Author

kRHYME7 commented Apr 17, 2025

Merging this now

@kRHYME7 kRHYME7 merged commit 8017ed9 into master Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants