mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-07 21:13:03 -04:00
just remove the bouncing intead
plus this was broken anyway
This commit is contained in:
parent
4e2b588574
commit
c521753b97
1 changed files with 14 additions and 30 deletions
|
@ -1,32 +1,4 @@
|
||||||
{ inputs, pkgs, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
let
|
|
||||||
# KDE will show a bouncing icon whenever a command is started
|
|
||||||
# this can be an issue for things like screenshot tools, which can capture those icons
|
|
||||||
# Wrap in a nohup bash script to prevent this
|
|
||||||
mkNoIconCommand =
|
|
||||||
command:
|
|
||||||
let
|
|
||||||
inherit (builtins) hasAttr;
|
|
||||||
logs = {
|
|
||||||
enabled = true;
|
|
||||||
identifier = "plasma-manager-commands-${command.name}";
|
|
||||||
extraArgs = "";
|
|
||||||
} // (if hasAttr "logs" command then command.logs else { });
|
|
||||||
inherit (logs) extraArgs identifier enabled;
|
|
||||||
finalCommand = command // {
|
|
||||||
logs = logs // {
|
|
||||||
enabled = false;
|
|
||||||
};
|
|
||||||
command = "${pkgs.writeShellScriptBin "nohupRunner-${identifier}" ''
|
|
||||||
nohup ${
|
|
||||||
if enabled then "${pkgs.systemd}/bin/systemd-cat --identifier=${identifier} ${extraArgs}" else ""
|
|
||||||
} ${command.command} > /dev/null &
|
|
||||||
exit 0
|
|
||||||
''}";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
finalCommand;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.plasma-manager.homeManagerModules.plasma-manager
|
inputs.plasma-manager.homeManagerModules.plasma-manager
|
||||||
|
@ -51,6 +23,18 @@ in
|
||||||
autoload = false;
|
autoload = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# KDE will add a bouncing cursor to commands launched from hotkeys
|
||||||
|
# which gets in the way of anything launched from a hotkey that uses the display
|
||||||
|
"klaunchrc" = {
|
||||||
|
BusyCursorSettings = {
|
||||||
|
Bouncing = false;
|
||||||
|
};
|
||||||
|
FeedbackStyle = {
|
||||||
|
BusyCursor = false;
|
||||||
|
# Annoying blank file icon in the taskbar while a command is running
|
||||||
|
TaskbarButton = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# Needed because our color scheme is overwritten
|
# Needed because our color scheme is overwritten
|
||||||
workspace = {
|
workspace = {
|
||||||
|
@ -70,12 +54,12 @@ in
|
||||||
};
|
};
|
||||||
hotkeys = {
|
hotkeys = {
|
||||||
commands = {
|
commands = {
|
||||||
"ocr" = mkNoIconCommand {
|
"ocr" = {
|
||||||
name = "OCR";
|
name = "OCR";
|
||||||
key = "Meta+Shift+T";
|
key = "Meta+Shift+T";
|
||||||
command = "frog -e";
|
command = "frog -e";
|
||||||
};
|
};
|
||||||
"flameshot" = mkNoIconCommand {
|
"flameshot" = {
|
||||||
name = "flameshot";
|
name = "flameshot";
|
||||||
key = "Print";
|
key = "Print";
|
||||||
command = "flameshot gui";
|
command = "flameshot gui";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue