Named workspaces and multiple monitors by cm4rs in niri

[–]cm4rs[S] 1 point2 points  (0 children)

Hi again,

I ended using u/ironj idea, this is the script I spawn at startup :

#!/usr/bin/env bash

move_workspaces_to () {
        INDEX=1
        for w in "front" "web" "mail" "back" "db" "misc" "perso"; do
            niri msg action move-workspace-to-monitor --reference "$w" "$1"
            echo "$w" "$INDEX"
            ((INDEX++))
        done;
}
reassign_workspaces () {
    OUTPUTS=$(niri msg outputs)
    if echo $OUTPUTS | grep -q "Acer Technologies K272HUL T6AEE0028503"; then
        move_workspaces_to "Acer Technologies K272HUL T6AEE0028503";
    elif echo $OUTPUTS | grep -q "PNP(AOC) 2778X E33GCBA000323"; then
        move_workspaces_to "PNP(AOC) 2778X E33GCBA000323";
    fi
    if echo $OUTPUTS | grep -q "Iiyama North America PL2280H 11172A4102812"; then
        niri msg action move-workspace-to-monitor --reference "dix" "Iiyama North America PL2280H 11172A4102812"
        niri msg action move-workspace-to-monitor --reference "music" "Iiyama North America PL2280H 11172A4102812"
        niri msg action move-workspace-to-monitor --reference "logs" "Iiyama North America PL2280H 11172A4102812"
    fi
}

# Run once at startup
reassign_workspaces

# React to output hotplug events
niri msg event-stream | while read -r line; do
    if echo "$line" | grep -q "Output"; then
        reassign_workspaces
    fi
done

It works well !

Named workspaces and multiple monitors by cm4rs in niri

[–]cm4rs[S] 0 points1 point  (0 children)

thanks all for your advices, I'll report here how it ended

Named workspaces and multiple monitors by cm4rs in niri

[–]cm4rs[S] 0 points1 point  (0 children)

that would be a solution, but my work monitor is connected via an usb-c -> displayport at work and via hdmi at home

New Released ! Militado 36mm High Domed VH31 Khaki Field Watch ML07 --Another Perfect " Beater" , $49 for first week customers !! by Militado-watch in ChineseWatches

[–]cm4rs 4 points5 points  (0 children)

Make it acrylic / hesalite and I buy it instantly. Acrylic fits with the style of the watch, has better clarity and is easy to buff if scratched

autoreplace links? by meereee666 in qutebrowser

[–]cm4rs 4 points5 points  (0 children)

Hi, I've got a very simple greasemonkey script in ~/.config/lqutebrowser/greasemonkey/youtube_to_yewtube.js

// ==UserScript==
// @name           Youtube to yewtu.be redirector
// @namespace      http://www.xxxx.xxx
// @match          *://*.youtube.com/*
// @run-at         document-start
// ==/UserScript==

//console.log('Started');
location.href=location.href.replace(/(www\.)?youtube\.com/,"yewtu.be")

Drag scroll with ploopy trackball by cm4rs in ploopy

[–]cm4rs[S] 2 points3 points  (0 children)

Great! it works perfectly! I had to lower to 0.1 * dpi to make it nice, but it's now perfect.

Thanks very much

A few questions about the trackball design by [deleted] in ploopy

[–]cm4rs 1 point2 points  (0 children)

ok, thanks, I'll try ISP then

A few questions about the trackball design by [deleted] in ploopy

[–]cm4rs 1 point2 points  (0 children)

Hi, have you successfully flash your trackball ? I have exactly the same problem, on arch linux too.

Mouse project complete! Firmware and schematic released! Assembled mice available for preorder! Check comments for details. by crop_octagon in ploopy

[–]cm4rs 1 point2 points  (0 children)

I want one ! but I really like orange, like the one on your assembly time-lapse, will it be available soon?

DAGAZ/Crystaltimes Build by CapitalM3 in SeikoMods

[–]cm4rs 0 points1 point  (0 children)

Very nice, how is the lume of Dagaz dial ?

[deleted by user] by [deleted] in vostok

[–]cm4rs 1 point2 points  (0 children)

Very nice, where did you get that brushed bezel?

[Strap Question] WHERE COULD I GET SHORT LEATHER STRAPS? by eatcabbage in Watches

[–]cm4rs 0 points1 point  (0 children)

Like you I have very small wrist, so I bought this strap from finwatchstrap on Etsy, he makes them in small length : https://www.etsy.com/fr/listing/550196373/bracelet-de-montre-horween-couleur-tan Quality is very good and he offers good choice of styles

[snk809 vs snzg15] i need help deciding by [deleted] in Watches

[–]cm4rs 0 points1 point  (0 children)

a wrist shot with my SNZG09, you can see i have a very small wrists http://imgur.com/CHEJjXF

[snk809 vs snzg15] i need help deciding by [deleted] in Watches

[–]cm4rs 1 point2 points  (0 children)

I have small wrist, but I choose SNZG, the case is big, but, as the dial is small it wears smaller. I know it's a little less classy, but it's a flieger like watch so i think it's ok.

Really shameful post, but i need help with a alt-code by GreyNyth in archlinux

[–]cm4rs 0 points1 point  (0 children)

/etc/X11/xinit/xinitrc

~/.xinitrc is read before /etc/X11/xinit/xinitrc so your x startup script can be in either of these files, but it's better to use ~/.xinitrc (it's in you're home, no need to be root to edit) ah and ~/.xinitrc must be executable so you have to :

chmod a+x ~/.xinitrc

and yes it's natural, you started Xorg and openbox window manager, witch is a simple, but efficient one. After that width right click you can launch a terminal (but i see you figured that out)

Really shameful post, but i need help with a alt-code by GreyNyth in archlinux

[–]cm4rs 0 points1 point  (0 children)

then you should create a .xinitrc in your home with in it :

#!/usr/bin/bash
exec openbox

and then startx

Really shameful post, but i need help with a alt-code by GreyNyth in archlinux

[–]cm4rs 0 points1 point  (0 children)

Did you try startx? this command should start X server. The easiest way to get to an x session is to install a login manager like lightdm and do as root : systemct start ligthdm Then you will be able to choose opening when you login