-
-
Notifications
You must be signed in to change notification settings - Fork 565
Fix/rofi kill command #1584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Fix/rofi kill command #1584
Conversation
The latest major version of rofi requires 'killall rofi' instead of 'pkill rofi'. Updated all occurrences to ensure proper termination of rofi processes.
📝 WalkthroughWalkthroughAdds a new collaborator entry to CONTRIBUTORS.md and replaces various Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Who should I add as a reviewer for this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request addresses a compatibility issue with rofi v2, which no longer works correctly with the pkill rofi command. The PR updates all instances of pkill rofi to killall rofi across configuration files and shell scripts to ensure proper functionality with the newer rofi version.
Changes:
- Replaced
pkill rofiwithkillall rofiin keybindings configuration files - Updated shell scripts that toggle rofi menus to use
killallinstead ofpkill - Added contributor to CONTRIBUTORS.md
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| Configs/.local/share/hyde/templates/hypr/keybindings.conf | Updated keybindings to use killall -x rofi instead of pkill -x rofi |
| Configs/.local/share/hyde/keybindings.conf | Updated keybindings to use killall -x rofi instead of pkill -x rofi |
| Configs/.local/lib/hyde/wallbashtoggle.sh | Changed rofi kill command from pkill -u "$USER" rofi to killall -u "$USER" rofi |
| Configs/.local/lib/hyde/rofilaunch.sh | Changed rofi kill command from pkill rofi to killall rofi (with extra space) |
| Configs/.local/lib/hyde/keybinds_hint.sh | Changed rofi kill command from pkill -x rofi to killall -x rofi |
| Configs/.local/lib/hyde/glyph-picker.sh | Changed rofi kill command from pkill -u "$USER" rofi to killall -u "$USER" rofi |
| Configs/.local/lib/hyde/emoji-picker.sh | Changed rofi kill command from pkill -u "$USER" rofi to killall -u "$USER" rofi |
| Configs/.local/lib/hyde/cliphist.sh | Changed rofi kill command from pkill -u "$USER" rofi to killall -u "$USER" rofi |
| Configs/.config/libinput-gestures.conf | Changed rofi kill command from pkill rofi to killall rofi (with extra space) |
| Configs/.config/hypr/keybindings.conf | Updated keybindings to use killall -x rofi instead of pkill -x rofi |
| CONTRIBUTORS.md | Added @naye2m to the contributors list |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@Configs/.local/lib/hyde/emoji-picker.sh`:
- Line 2: The script currently calls killall -u "$USER" rofi directly which
fails if psmisc isn't installed; update emoji-picker.sh to check for killall
availability (command -v killall) and use it if present, otherwise fall back to
pkill (command -v pkill) to terminate the rofi process (use the same -u "$USER"
semantics or equivalent pkill -u "$USER" -x rofi), and if neither exists, exit
with a safe no-op or an informative error; ensure the replacement preserves the
original behavior of exiting after a successful kill.
Pull Request
Description
Please read these instructions and remove unnecessary text.
Type of change
Please put an
xin the boxes that apply:Checklist
Please put an
xin the boxes that apply:Screenshots
(if appropriate)
Additional context
The new major version of rofi no longer works with 'pkill rofi'. that creates a bug
This PR updates all code to use 'killall rofi' to ensure compatibility.
Summary by CodeRabbit
Refactor
Bug Fixes
Chores