General love of all things linux and the choice it provides. I prefer to hang my hat in gentoo with e16 but do like to keep up with other stuff.

  • 0 Posts
  • 28 Comments
Joined 1 year ago
cake
Cake day: February 8th, 2024

help-circle
  • @brownmustardminion I think you’d be fine still usin swappy, just use it in a way that does what you need. I use maim piped to xclip as below, then I tie each of those cases to [PrScr] with different modkeys.

    case "${1}" in
        area)     maim --hidecursor -s |tee $HOME/Pictures/Screenshots/$(date +%y%m%d-%H%M%S).png |xclip -selection clipboard -t image/png
        ;;
        savew)    maim --hidecursor -i $(xdotool getactivewindow) |tee $HOME/Pictures/Screenshots/$(date +%y%m%d-%H%M%S).png |xclip -selection clipboard -t image/png
        ;;
        savef)    maim --hidecursor |tee $HOME/Pictures/Screenshots/$(date +%y%m%d-%H%M%S).png |xclip -selection clipboard -t image/png
        ;;
    esac
    


















  • @flork Granted it’s listed in a mimeapps.list file, you should easily be able to pull the program name out of there by querying against the file in question’s mimetype.

    And while “can’t be easily done” may be generally true, don’t call it quits; some file managers may offer less “not easy” than others. Don’t end your customization exploration because the file manager you currently use can’t do what you want, try fiddlin round with some others. The process for each file manager is going to be different, and getting the name of the program for any filetype is also going to differ depending on the syntax required for altering each different file manager.