replaces flameshot with gnome built-in screenshot tool

This commit is contained in:
Menno van Leeuwen 2024-11-02 21:45:14 +01:00
parent 488dd6be3c
commit a2a04deb26
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
3 changed files with 7 additions and 16 deletions

View File

@ -1,8 +0,0 @@
#!/usr/bin/env bash
# In case we run Pop!_OS let's use `cosmic-screenshot --interactive`, otherwise default to `flameshot gui`
if [[ -x "$(command -v cosmic-screenshot)" ]]; then
cosmic-screenshot --interactive
else
flameshot gui
fi

View File

@ -4,7 +4,6 @@
# GUI Applications
## Utilities
mission-center
flameshot
gnome.gnome-tweaks
pinta
bottles

View File

@ -1,15 +1,20 @@
{ pkgs, ... }:
{
dconf.settings = {
"org/gnome/shell/keybindings" = {
show-screenshot-ui = [
"Print"
"<Shift><Alt>4"
];
};
"org/gnome/settings-daemon/plugins/media-keys" = {
custom-keybindings = [
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/terminal/"
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/1password-quick-access/"
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/screenshot/"
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/missioncenter/"
];
};
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/terminal" = {
binding = "<Primary><Alt>t";
command = "kitty";
@ -20,11 +25,6 @@
command = "1password --quick-access";
name = "1password-quick-access";
};
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/screenshot" = {
binding = "<Shift><Alt>4";
command = "flameshot gui";
name = "screenshot";
};
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/missioncenter" = {
binding = "<Ctrl><Shift>Escape";
command = "missioncenter";