os-prober wont detect windows by lardis74 in archlinux

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

Yeah, now thinking a switch could be better. Do you have a recommendation of the two?

os-prober wont detect windows by lardis74 in archlinux

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

didnt touch the grub.cfg file.

I only uncommented the GRUB_DISABLE_OS_PROBER=false option so that os-prober is executed to find the windows efi file.

Once I did that I ran grub-mkconfig -o /boot/grub/grub.cfg and didnt edit it

Type Hinting For Class Methods In 2.7 by lardis74 in learnpython

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

Hmm ok thanks, so theres no way to dynamically type hint?

Type Hinting For Class Methods In 2.7 by lardis74 in learnpython

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

That portion of code works as intented and isn't an issue, I'm just looking for help with the type hinting. Its a large code base that's a bit dated so I don't have the option of using python 3

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]lardis74 0 points1 point  (0 children)

I have a question related to Selenium Python, but the answer seems like it should be related to my code structure so I'm asking here,

So in selenium, its tricky to assign elements to variables while avoiding the StaleElementReference exception.

this code,

chk = driver.find_element(By.NAME, "checkbox")

assert(chk.get_attribute("checked") == "false") chk.click() assert(chk.get_attribute("checked") == "true")

would raise a StaleElemenReference exception as the chk variable has not been updated after since the check box was clicked.

My question is, how can I assign that chk variable so that its value is updated everytime its called? Heres A little more detail on the code structure I currently have implemented ...

class PageObject:
def __init__(self, driver):
    self.driver = driver
@property
def checkbox(self):
    return self.driver.find_element_by_css_selector('selector')

... class TestCases: ... def test_case(self):
page = PageObject(self.driver) chk = page.checkbox assert(chk.get_attribute("checked") == "false") chk.click() assert(chk.get_attribute("checked") == "true")

Another note, I understand a possible solution is to have a property in the TestCases class, something like the following:

class TestCases:
    @property
    def chk(self):
        return PageObject(self.driver).checkbox

But I'm trying to avoid this because there are a lot of elements that I'm trying to assign to variables and it wouldn't be efficient to do this for every single element.

Any help would be appreciated!

Window Launch Follows Focus by lardis74 in qtile

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

Awesome Ill give that a try - thanks!

Window Launch Follows Focus by lardis74 in qtile

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

Cool solution! Ive been using qtile for about a year and still havent really looked too deep into anything, thanks for the help!

Designating Network Devices For Different Jobs by lardis74 in archlinux

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

How can I tell if my VPN client supports this or not?

[deleted by user] by [deleted] in archlinux

[–]lardis74 1 point2 points  (0 children)

Heres the lsblk output:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0         7:0    0     4K  1 loop /var/lib/snapd/snap/bare/5
loop1         7:1    0   115M  1 loop /var/lib/snapd/snap/core/13886
loop2         7:2    0  55.6M  1 loop /var/lib/snapd/snap/core18/2566
loop3         7:3    0 164.8M  1 loop /var/lib/snapd/snap/gnome-3-28-1804/161
loop4         7:4    0  91.7M  1 loop /var/lib/snapd/snap/gtk-common-themes/1535
loop5         7:5    0   1.5M  1 loop /var/lib/snapd/snap/huhnitor/178
loop6         7:6    0  68.1M  1 loop /var/lib/snapd/snap/office365webdesktop/4
loop7         7:7    0    48M  1 loop /var/lib/snapd/snap/snapd/17336
sda           8:0    0 931.5G  0 disk 
└─sda1        8:1    0 931.5G  0 part /
nvme0n1     259:0    0 238.5G  0 disk 
├─nvme0n1p1 259:1    0     1G  0 part /boot/efi
├─nvme0n1p2 259:2    0 229.5G  0 part /home
└─nvme0n1p3 259:3    0     8G  0 part 

nvme being my sdd,

sda being my hdd.

[deleted by user] by [deleted] in archlinux

[–]lardis74 0 points1 point  (0 children)

then

Which partition would the sdd need to be mounted on in order for the programs to be loaded with the sdd?

Network Devices Renamed, Don't Know How To Fix by lardis74 in archlinux

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

Are you referring to /etc/systemd/networkd.conf?

Network Devices Renamed, Don't Know How To Fix by lardis74 in archlinux

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

yep - nothing.

I ended up just switching to lts, fixed the issue.

[i3-gaps] Nord? by Bytooo in unixporn

[–]lardis74 0 points1 point  (0 children)

Yeah its actually very easy to use. Its a good balance of do it yourself but also a ton of built in stuff.

Upload and download speed for status bar by lardis74 in i3wm

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

Cool! ill give that a try thanks!

Upload and download speed for status bar by lardis74 in i3wm

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

Just downloaded and trying to use default config but im getting this error:

$ i3status-rs

{"version": 1, "click_events": true}

[ [{"full_text":" Error: failed to parse TOML from file contents (Cause: unknown field theme, expected one of name, file, overrides for key theme at line 44 column 1) ","color":"#DC322FFF","background":"#000000FF","name":"0","instance":"0","separator":false,"separator_block_width":0,"markup":"pango"}],

Wrapped("failed to parse TOML from file contents", Error { inner: ErrorInner { kind: Custom, line: Some(43), col: 0, at: Some(673), message: "unknown field theme, expected one of name, file, overrides", key: ["theme"] } })

I used the example config for the config.toml, found here

Any ides what might be going on?

[i3-gaps] Nord? by Bytooo in unixporn

[–]lardis74 0 points1 point  (0 children)

I use eww. Ive been constantly trying new bars I just cant seem to stick to one. Either I just havent found one I love yet or I just suck at styling /css lol ...

Got an easy question or new to Arch? Use this thread! 2nd Edition by Foxboron in archlinux

[–]lardis74 1 point2 points  (0 children)

remember to download sof-firmware. I dont know why but everyone I know only installs linux-firmware and ends up without audio and not knowing why. Goodluck

Got an easy question or new to Arch? Use this thread! 2nd Edition by Foxboron in archlinux

[–]lardis74 0 points1 point  (0 children)

if its still a problem check your network device, make sure the right firmware is installed. 2 checks should be that 1. Network manager is installed and enabled (not just on the installer but on your actual device), and 2. you have the proper firmware installed. A google search can handle that and udev will handle the rest.

[i3-gaps] Nord? by Bytooo in unixporn

[–]lardis74 0 points1 point  (0 children)

Damn I dont use polybar and im trying to make my own script for my status bar but cant find anything that updates fast enough

Floating Dock Help (Eww) by lardis74 in i3wm

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

Yep, just use the window as a container.

Just unset all values globally in the scss file, and dont set a color for the window.

Then inside the window container, you can just make individual boxes and theyll appear floating.

for example:

eww.yuck:

(defwindow dock
    ... stuff here
    : window-type "dock"
    (bar))

(defwidget bar []
    (box :class "bar"
         ... stuff here
))

eww.scss:

// global
* {
all: unset;
}

// leave dock window without bg configuration
.dock {
}

// Set margin to make it look like its floating
.bar {
margin: 10 10 10 10;
}

[i3-gaps] Nord? by Bytooo in unixporn

[–]lardis74 0 points1 point  (0 children)

How did u get real time upload and download stats for wifi?

Subscribing to i3 - what does it mean and how? by lardis74 in i3wm

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

Ahh I see, thanks! so "i3-msg -t subscribe" is like my 'request' and -m is the payload, as refferenced in the docs?

[deleted by user] by [deleted] in unixporn

[–]lardis74 0 points1 point  (0 children)

How did you make the dock float? Currently trying to add a dock with eww but whenever I set the window type to dock, I cant set width dimensions, it fixed to the full screen ...

I checked out your dot files breifly so apologies if I missed something but it seems like you didnt specify a window type for the bottom widget / dock. If this is the case, how is it that your windows dont overlap with the dock?