Hyprland: Setup multi-monitors
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
|
|
||||||
################
|
################
|
||||||
### MONITORS ###
|
### MONITORS ###
|
||||||
################
|
################
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor=,preferred,auto,auto
|
|
||||||
|
monitor = desc:Ancor Communications Inc ASUS PB298 D7LMTF059917, preferred, 0x0, auto
|
||||||
|
monitor = desc:Iiyama North America PL2492H 11511037C7430, preferred, 2560x0, auto
|
||||||
|
monitor = , preferred, auto, auto # fallback
|
||||||
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
@@ -404,3 +406,15 @@ windowrulev2 = float, class:thunar, title:File Operation Progress
|
|||||||
|
|
||||||
# Resize floating windows
|
# Resize floating windows
|
||||||
windowrule = size >50% >70%, org.pulseaudio.pavucontrol
|
windowrule = size >50% >70%, org.pulseaudio.pavucontrol
|
||||||
|
|
||||||
|
# Put workspaces on specific monitors
|
||||||
|
workspace = 1, monitor:desc:Ancor Communications Inc ASUS PB298 D7LMTF059917, persistent:true, default:true
|
||||||
|
workspace = 2, monitor:desc:Ancor Communications Inc ASUS PB298 D7LMTF059917, persistent:true
|
||||||
|
workspace = 3, monitor:desc:Ancor Communications Inc ASUS PB298 D7LMTF059917, persistent:true
|
||||||
|
workspace = 4, monitor:desc:Ancor Communications Inc ASUS PB298 D7LMTF059917, persistent:true
|
||||||
|
workspace = 5, monitor:desc:Ancor Communications Inc ASUS PB298 D7LMTF059917, persistent:true
|
||||||
|
workspace = 6, monitor:desc:Ancor Communications Inc ASUS PB298 D7LMTF059917, persistent:true
|
||||||
|
workspace = 7, monitor:desc:Ancor Communications Inc ASUS PB298 D7LMTF059917, persistent:true
|
||||||
|
workspace = 8, monitor:desc:Ancor Communications Inc ASUS PB298 D7LMTF059917, persistent:true
|
||||||
|
workspace = 9, monitor:desc:Iiyama North America PL2492H 11511037C7430, persistent:true, default:true
|
||||||
|
workspace = 10, monitor:desc:Iiyama North America PL2492H 11511037C7430, persistent:true
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
"disable-scroll": false,
|
"disable-scroll": false,
|
||||||
"on-scroll-up": "hyprctl dispatch workspace -1",
|
"on-scroll-up": "hyprctl dispatch workspace -1",
|
||||||
"on-scroll-down": "hyprctl dispatch workspace +1",
|
"on-scroll-down": "hyprctl dispatch workspace +1",
|
||||||
"all-outputs": true,
|
"all-outputs": false,
|
||||||
"warp-on-scroll": false,
|
"warp-on-scroll": false,
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
@@ -40,14 +40,10 @@
|
|||||||
"7": "七",
|
"7": "七",
|
||||||
"8": "八",
|
"8": "八",
|
||||||
"9": "九",
|
"9": "九",
|
||||||
"0": "十",
|
"10": "十",
|
||||||
"urgent": "",
|
"urgent": "",
|
||||||
"focused": "",
|
"focused": "",
|
||||||
"default": ""
|
"default": ""
|
||||||
// "persistent-workspaces": {
|
|
||||||
// "*": 5, // 5 workspaces by default on every monitor
|
|
||||||
// "HDMI-A-1": 3 // but only three on HDMI-A-1
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"custom/btc": {
|
"custom/btc": {
|
||||||
|
|||||||
@@ -237,7 +237,12 @@ if [ $qualityOption -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set url to clipboard if none provided
|
# Set url to clipboard if none provided
|
||||||
|
# >>> session=xorg
|
||||||
clip="$(xclip -selection clipboard -out)"
|
clip="$(xclip -selection clipboard -out)"
|
||||||
|
# <<<
|
||||||
|
# >>> session=wayland
|
||||||
|
# clip="$(wl-paste)"
|
||||||
|
# <<<
|
||||||
if [ "$#" -eq 0 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
eval set -- "$clip"
|
eval set -- "$clip"
|
||||||
fi
|
fi
|
||||||
@@ -257,7 +262,12 @@ elif [ $queueOption -eq 1 ]; then
|
|||||||
queue "$*"
|
queue "$*"
|
||||||
else
|
else
|
||||||
if [ "$*" = "" ]; then
|
if [ "$*" = "" ]; then
|
||||||
|
# >>> session=xorg
|
||||||
play "$(xclip -o)"
|
play "$(xclip -o)"
|
||||||
|
# <<<
|
||||||
|
# >>> session=wayland
|
||||||
|
# play "$(wl-paste)"
|
||||||
|
# <<<
|
||||||
else
|
else
|
||||||
for url in "$@"; do
|
for url in "$@"; do
|
||||||
play "$url"
|
play "$url"
|
||||||
|
|||||||
Reference in New Issue
Block a user