-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove sudo from keyboard commands (#159)
* Update README, remove sudo from keymap.tcl and virtual-programs * Add forloop for usermods, avoids errors when certain groups don't exist * Remove extranous usermod instruction * Fix esc-restart, remove sudo from keymap Instead of using `loadkeys` we're now using `kbd_mode -u` to load the keymap. This is because `loadkeys` requires root permissions and we're trying to remove the need for `sudo` in the system. I tried removing `sudo` from the `esc-restart` virtual program but it failed with an interactive authentication error. I'm not sure how to do this with less powerful permissions than `sudo` so I'm leaving it as is for now. * Add kdb to explicit dependnecies to get around need for loadkeys This is precautionary, in practice kbd is a dependency of console-data but I could image cases in the future where we swap console-data but still need kdb.
- Loading branch information
Showing
4 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
When keyboard /k/ claims key Meta_Escape is down with timestamp /any/ { | ||
# When sudo is removed here you get: | ||
# | ||
# Error in virtual-programs/esc-restart.folk, match m10029:6: Failed to restart folk.service: Interactive authentication required. | ||
# | ||
# TODO: Figure out how to do this with less powerful permissions than `sudo`. | ||
exec sudo systemctl restart folk | ||
} |
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