Deepin: shortcut to move window to other monitor
up vote
0
down vote
favorite
I use manjaro deepin and even thou I love this beautiful desktop environment I really miss a keyboard shortcut that let me move a window from one monitor to the other (2 monitors).
I already tried the next script I used on XFCE:
yaourt -S --noconfirm xorg-xprop xorg-xwininfo xorg-xrandr wmctrl
git clone https://github.com/calandoa/movescreen.git
sudo mv movescreen/movescreen.py /usr/bin
rm -rf movescreen//usr/local/bin/movescreen.py
sudo chmod a+rx /usr/bin/movescreen.py
Menu | All settings | Keyboard | Application shortcuts | Add
/usr/local/bin/movescreen.py left
Ctrl+Super+Left
/usr/local/bin/movescreen.py right
Ctrl+Super+Right
but it didn't work. I tryed adding this shortcut using deepin Control Center, not the XFCE way.
How can I add a command to move a window to left/right monitor?
keyboard-shortcuts multi-monitor manjaro deepin
add a comment |
up vote
0
down vote
favorite
I use manjaro deepin and even thou I love this beautiful desktop environment I really miss a keyboard shortcut that let me move a window from one monitor to the other (2 monitors).
I already tried the next script I used on XFCE:
yaourt -S --noconfirm xorg-xprop xorg-xwininfo xorg-xrandr wmctrl
git clone https://github.com/calandoa/movescreen.git
sudo mv movescreen/movescreen.py /usr/bin
rm -rf movescreen//usr/local/bin/movescreen.py
sudo chmod a+rx /usr/bin/movescreen.py
Menu | All settings | Keyboard | Application shortcuts | Add
/usr/local/bin/movescreen.py left
Ctrl+Super+Left
/usr/local/bin/movescreen.py right
Ctrl+Super+Right
but it didn't work. I tryed adding this shortcut using deepin Control Center, not the XFCE way.
How can I add a command to move a window to left/right monitor?
keyboard-shortcuts multi-monitor manjaro deepin
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I use manjaro deepin and even thou I love this beautiful desktop environment I really miss a keyboard shortcut that let me move a window from one monitor to the other (2 monitors).
I already tried the next script I used on XFCE:
yaourt -S --noconfirm xorg-xprop xorg-xwininfo xorg-xrandr wmctrl
git clone https://github.com/calandoa/movescreen.git
sudo mv movescreen/movescreen.py /usr/bin
rm -rf movescreen//usr/local/bin/movescreen.py
sudo chmod a+rx /usr/bin/movescreen.py
Menu | All settings | Keyboard | Application shortcuts | Add
/usr/local/bin/movescreen.py left
Ctrl+Super+Left
/usr/local/bin/movescreen.py right
Ctrl+Super+Right
but it didn't work. I tryed adding this shortcut using deepin Control Center, not the XFCE way.
How can I add a command to move a window to left/right monitor?
keyboard-shortcuts multi-monitor manjaro deepin
I use manjaro deepin and even thou I love this beautiful desktop environment I really miss a keyboard shortcut that let me move a window from one monitor to the other (2 monitors).
I already tried the next script I used on XFCE:
yaourt -S --noconfirm xorg-xprop xorg-xwininfo xorg-xrandr wmctrl
git clone https://github.com/calandoa/movescreen.git
sudo mv movescreen/movescreen.py /usr/bin
rm -rf movescreen//usr/local/bin/movescreen.py
sudo chmod a+rx /usr/bin/movescreen.py
Menu | All settings | Keyboard | Application shortcuts | Add
/usr/local/bin/movescreen.py left
Ctrl+Super+Left
/usr/local/bin/movescreen.py right
Ctrl+Super+Right
but it didn't work. I tryed adding this shortcut using deepin Control Center, not the XFCE way.
How can I add a command to move a window to left/right monitor?
keyboard-shortcuts multi-monitor manjaro deepin
keyboard-shortcuts multi-monitor manjaro deepin
edited Apr 1 at 6:33
asked Mar 29 at 5:23
Damon Hill
3019
3019
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
diff --git a/movescreen.py b/movescreen.py
index b6bd4ad..99b7a7c 100755
--- a/movescreen.py
+++ b/movescreen.py
@@ -23,7 +23,7 @@ if 2 < len(sys.argv):
else:
# Get focused window
out = subprocess.check_output(['xprop', '-root', '_NET_ACTIVE_WINDOW']).decode('ascii', 'ignore')
- id = re.search("window id # (0x[0-9a-f]+),", out).group(1)
+ id = re.search('window id # (0x[0-9a-f]+)', out).group(1)
# Get screens information
New contributor
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
diff --git a/movescreen.py b/movescreen.py
index b6bd4ad..99b7a7c 100755
--- a/movescreen.py
+++ b/movescreen.py
@@ -23,7 +23,7 @@ if 2 < len(sys.argv):
else:
# Get focused window
out = subprocess.check_output(['xprop', '-root', '_NET_ACTIVE_WINDOW']).decode('ascii', 'ignore')
- id = re.search("window id # (0x[0-9a-f]+),", out).group(1)
+ id = re.search('window id # (0x[0-9a-f]+)', out).group(1)
# Get screens information
New contributor
add a comment |
up vote
0
down vote
diff --git a/movescreen.py b/movescreen.py
index b6bd4ad..99b7a7c 100755
--- a/movescreen.py
+++ b/movescreen.py
@@ -23,7 +23,7 @@ if 2 < len(sys.argv):
else:
# Get focused window
out = subprocess.check_output(['xprop', '-root', '_NET_ACTIVE_WINDOW']).decode('ascii', 'ignore')
- id = re.search("window id # (0x[0-9a-f]+),", out).group(1)
+ id = re.search('window id # (0x[0-9a-f]+)', out).group(1)
# Get screens information
New contributor
add a comment |
up vote
0
down vote
up vote
0
down vote
diff --git a/movescreen.py b/movescreen.py
index b6bd4ad..99b7a7c 100755
--- a/movescreen.py
+++ b/movescreen.py
@@ -23,7 +23,7 @@ if 2 < len(sys.argv):
else:
# Get focused window
out = subprocess.check_output(['xprop', '-root', '_NET_ACTIVE_WINDOW']).decode('ascii', 'ignore')
- id = re.search("window id # (0x[0-9a-f]+),", out).group(1)
+ id = re.search('window id # (0x[0-9a-f]+)', out).group(1)
# Get screens information
New contributor
diff --git a/movescreen.py b/movescreen.py
index b6bd4ad..99b7a7c 100755
--- a/movescreen.py
+++ b/movescreen.py
@@ -23,7 +23,7 @@ if 2 < len(sys.argv):
else:
# Get focused window
out = subprocess.check_output(['xprop', '-root', '_NET_ACTIVE_WINDOW']).decode('ascii', 'ignore')
- id = re.search("window id # (0x[0-9a-f]+),", out).group(1)
+ id = re.search('window id # (0x[0-9a-f]+)', out).group(1)
# Get screens information
New contributor
New contributor
answered 2 days ago
Jiageng Yu
1
1
New contributor
New contributor
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434223%2fdeepin-shortcut-to-move-window-to-other-monitor%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown