You are not logged in.

#1 2026-10-28 20:42:46

exe
Member
Registered: 2015-09-29
Posts: 134

screenshots using the Print Screen key

Can anyone help me reinstall the script for taking screenshots using the Print Screen key?

I must have accidentally disabled it sad

Offline

#2 Yesterday 02:52:41

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,614
Website

Re: screenshots using the Print Screen key

If you're using X11 then check ~/.xbindkeysrc, if using the Wayland plugin then check ~/.config/bunsen/labwc/rc.xml
Either way, the PrintScreen key should be tied to 'xfce4-screenshooter'.
Check that command in a terminal - if you get errors that might be a hint.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky and Mastodon, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#3 Yesterday 09:44:11

exe
Member
Registered: 2015-09-29
Posts: 134

Re: screenshots using the Print Screen key

Hi... When I type “xfce4-screenshooter” in the terminal, the application opens correctly.

/.xbindkeysrc  Here's what I have here:


# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.6
#
# This file is adapted for BunsenLabs Linux.
#

# NOTE: There is a gui available for editing keybinds - 'xbindkeys-config'.
# However we don't recommend its installation and use because it has some bugs.

# The format of a command line is:
#    "command to start"
#       associated key
#

# To identify a key, you can run 'xbindkeys --key' or
# 'xbindkeys --multikey' in a terminal
# and put one of the two output lines in this file.

# List of modifiers:
#   Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
#   Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#
# Mod4 is also known as the Super or Windows key.
#
# The release modifier is not a standard X modifier, but you can
# use it if you want to catch release events instead of press events.
#
# By default, xbindkeys does not pay attention to the modifiers
# NumLock, CapsLock and ScrollLock.
# Uncomment the lines below if you want to pay attention to them.
#
#keystate_numlock = enable
#keystate_capslock = enable
#keystate_scrolllock= enable

# NOTE xbindkeys reloads its configuration file each time it has changed.
# If you want to force it to reload its configuration file,
# you can send a HUP signal:
#
#       killall -HUP xbindkeys
#
# Or if that's not enough, a full restart:
#
#       pkill -x xbindkeys
#       xbindkeys_autostart
#
# (Sometimes this is needed.)
# When a HUP signal is sent to xbindkeys,
# changes in $HOME/.xbindkeysrc take effect only after moving the mouse.

# See 'man xbindkeys' for more information.

# Show main menu
"jgmenu_run"
    Mod4 + space

# Run Program
"gmrun"
    Alt + F2

# Show dmenu
"~/.config/dmenu/dmenu-bind.sh"
    Alt + F3

# Terminal
"x-terminal-emulator"
    Mod4 + t

# Web Browser
"x-www-browser"
    Mod4 + w

# File Manager
"bl-file-manager"
    Mod4 + f

# Editor
"bl-text-editor"
    Mod4 + e

# Media Player
"bl-media-player"
    Mod4 + m

# Volume
"pavucontrol"
    Mod4 + v

# htop task manager
"x-terminal-emulator -T 'htop task manager' -e htop"
    Mod4 + h

# Lock Screen
"bl-lock"
    Mod4 + l

# Logout
"bl-exit"
    Mod4 + x

# Kill a Window
"xkill"
    Mod4 + Escape

# Print Screen (xfce)
"xfce4-screenshooter"
    Print

# Print Screen (scrot)
"scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Pictures/screenshots/ ; bl-image-viewer ~/Pictures/screenshots/$f'"
    Alt + Print

# Scrot with 10s delay
"scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/Pictures/screenshots/ ; bl-image-viewer ~/Pictures/screenshots/$f'"
    Control + Alt + Print

# Show xbindkeys settings
# (install tk to use this)
#"xbindkeys_show"
#    Control + Shift + q

##################################
# End of xbindkeys configuration #
##################################

Offline

#4 Yesterday 09:48:58

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 3,134

Re: screenshots using the Print Screen key

Do any of those bindings work?
You may have removed xbindkeys from the start-up file.

If those bindings are not working, start xbindkeys from a terminal and try them again.


You must unlearn what you have learned.
    -- yoda

Offline

#5 Yesterday 09:50:07

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 3,134

Re: screenshots using the Print Screen key

exe wrote:

Can anyone help me reinstall the script for taking screenshots using the Print Screen key?

I must have accidentally disabled it sad

What kind of keyboard?
Did you do any re-mapping of the keys?


You must unlearn what you have learned.
    -- yoda

Offline

#6 Yesterday 09:54:25

exe
Member
Registered: 2015-09-29
Posts: 134

Re: screenshots using the Print Screen key

Yeah, none of the shortcuts work for me, not even the Shift key... I think I accidentally deleted the file sad

Offline

#7 Yesterday 12:54:16

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 3,134

Re: screenshots using the Print Screen key

exe wrote:

Yeah, none of the shortcuts work for me, not even the Shift key... I think I accidentally deleted the file sad

Do they work if you start xbindkeys in a terminal?

May just need to add that back to the startup file.


You must unlearn what you have learned.
    -- yoda

Offline

#8 Yesterday 15:18:40

exe
Member
Registered: 2015-09-29
Posts: 134

Re: screenshots using the Print Screen key

Well, it says the file isn't there.

Offline

#9 Yesterday 15:46:44

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 3,134

Re: screenshots using the Print Screen key

So xbindkeys isn't there?
Install it with apt and you should be good.


You must unlearn what you have learned.
    -- yoda

Offline

#10 Yesterday 19:38:51

exe
Member
Registered: 2015-09-29
Posts: 134

Re: screenshots using the Print Screen key

PackRat wrote:

So xbindkeys isn't there?
Install it with apt and you should be good.


exe@bunsen:~$ xbindkeys
Error : /home/exe/.xbindkeysrc not found or reading not allowed.
please, create one with 'xbindkeys --defaults > /home/exe/.xbindkeysrc'.
or, if you want scheme configuration style,
with 'xbindkeys --defaults-guile > /home/exe/.xbindkeysrc.scm'.



What can I do?

Offline

#11 Yesterday 20:52:56

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 3,134

Re: screenshots using the Print Screen key

Us that .xbindkeysrc file you posted above. It looks like it's located on /
Open it in a text editor and save it to /home/exe/.xbindkeysrc


You must unlearn what you have learned.
    -- yoda

Offline

#12 Yesterday 21:01:22

exe
Member
Registered: 2015-09-29
Posts: 134

Re: screenshots using the Print Screen key

PackRat wrote:

Us that .xbindkeysrc file you posted above. It looks like it's located on /
Open it in a text editor and save it to /home/exe/.xbindkeysrc


I've already done that, but I haven't gotten any results.

Offline

#13 Yesterday 21:09:20

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 4,425

Re: screenshots using the Print Screen key

Does the .xbindkeys need to be marked to execute as a program? Never used this before so guessing a bit.

If so - chown +x /home/exe/.xbindkeysrc


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#14 Yesterday 21:09:42

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 3,134

Re: screenshots using the Print Screen key

Error : /home/exe/.xbindkeysrc not found or reading not allowed.

Looks like that file could be corrupted.

The default .xbindkeysrc is located in /usr/share/bunsen/skel

Delete the current /home/exe/.xbindkeysrc file
Open the  /usr/share/bunsen/skel/.xbindkeysrc file in a text editor and save it to /home/exe/.xbindkeysrc. This will guarantee you own the file and have the proper permissions.
Reboot. Doing a full reboot will clear xbindkeys from memory. It will load clean when you log in.


You must unlearn what you have learned.
    -- yoda

Offline

#15 Yesterday 21:11:02

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 3,134

Re: screenshots using the Print Screen key

Döbbie03 wrote:

Does the .xbindkeys need to be marked to execute as a program? Never used this before so guessing a bit.

If so - chown +x /home/exe/.xbindkeysrc

Possibly. But he definitely needs to have read permissions; preferably own the file as well.


You must unlearn what you have learned.
    -- yoda

Offline

#16 Yesterday 21:11:35

exe
Member
Registered: 2015-09-29
Posts: 134

Re: screenshots using the Print Screen key

Well, it looks like it's finally been fixed—the shortcuts, Print, and the Super key are working again...


I copied these two files to my home directory:

.xbindkeysrc
.xbindkeys

Then I restarted, and that's it!


Thank you so much for your help!!!!!!!!!

Last edited by exe (Yesterday 21:12:50)

Offline

#17 Yesterday 21:12:31

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 4,425

Re: screenshots using the Print Screen key

exe wrote:

Well, it looks like it's finally been fixed—the shortcuts, Print, and the Super key are working again...

What was the fix?


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#18 Yesterday 21:12:39

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 3,134

Re: screenshots using the Print Screen key

exe wrote:

Well, it looks like it's finally been fixed—the shortcuts, Print, and the Super key are working again...

What did you do?

Edit - ninja'ed by Dobbie03.


You must unlearn what you have learned.
    -- yoda

Offline

#19 Yesterday 21:17:52

exe
Member
Registered: 2015-09-29
Posts: 134

Re: screenshots using the Print Screen key

PackRat wrote:
exe wrote:

Well, it looks like it's finally been fixed—the shortcuts, Print, and the Super key are working again...

What did you do?

Edit - ninja'ed by Dobbie03.


I've edited the post... thanks!

Offline

#20 Today 02:09:36

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,614
Website

Re: screenshots using the Print Screen key

exe wrote:

I copied these two files to my home directory:
.xbindkeysrc
.xbindkeys

There should be no file named .xbindkeys in /usr/share/bunsen/skel, only .xbindkeysrc
I just checked my own installation to confirm this.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky and Mastodon, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB