#I want to move to DWM from xfce4
1 messages · Page 2 of 1
only that ? then shift alt q ?
oh systemd is weird yeah
Add --force to override it (it was set by lightdm before you uninstalled it and was never unset)
What is alt shift q?
Can you type that as the command I need to use
sudo systemctl enable --now --force sddm
so i can get the screen that i can type in startx
ah to close dwm sure
welp
Read the logs again
@honest grail can she try the command i sent ? to startx
see sudo systemctl status sddm as well
.
Yeah actually
Startx is good for testing it since it just fails if something goes wrong and gives you the logs right in the terminal
startkde isn't a command
Its exec startplasma-x11
btw uhm it did not work
what error do you get
ah alr
no errors but i clicked on shift alt q to kill it then startx and its still the same
nothing has changed
What did you expect to happen
my bar should be changed
Looking online this is because your GPU is initialized after sddm is started
You can fix this later by following this: https://www.reddit.com/r/archlinux/comments/jtb1zb/sddm_failed_to_read_display_number_from_pipe/, for now try and see if startx works
What is it right now? Just nothing? Or?
So what startx command should I type
says dwm-6.4 ...with the bar it should change it and add ram usage and temp etc
echo "exec startplasma-x11" > ~/.xinitrc
@lone bronze
Install xorg-xinit
Then do echo "exec startplasma-x11 > ~/.xinitrc
Then just run startx
What happens when you run my_bar in the terminal rn
And can you show the xinitrc @final flax
sec
#!/bin/sh
my_bar &
xinput disable "AlpsPS/2 ALPS DualPoint TouchPad"
xinput disable "AlpsPS/2 ALPS DualPoint Stick"
exec dwm
I accidentally put a comma lol
What about this
What happens when you launch it from the terminal? Does it work
Now what?
You can also close dwm and look at the stuff startx outputs and see if it has any errors from my_bar
You missed a quote
Exit out of this with ctrl+d and retype it
dwm isnt letting me open a terminal with the gui filemanager
(it's asking you to finish the quote you missed rn)
Why would you open the terminal like that and not just have a keybinding for it
Where do I put the end of the quote?
"exec startplasma-x11" should be one quote
Oki
do u know the default 1 ?
echo "exec startplasma-x11" > ~/.xinitrc
st (suckless terminal)
You can easily change it
Just edit the termcmd variable
already changed to alaacrity
So just use the keybinding for it then
If it doesn't do anything make sure alacritty is installed and you spelled it right
You decipher that while I step away from the desktop for a moment
Its because you're running this as the root user so it's using the system wide xinitrc from /etc/X11/xinit
Log in as a regular user and run it
(After running the echo "exec ........ command again)
yea spelling is right in the config and its installed
so what does pressing the keybinding do
uhm well i dont even know its shorcut on keyboard lol
just read it then, its all in your config
why would you run that as sudo
or wait one sec
do stat .xinitrc
oh, right
yeah its owned by root because you edited it as root earlier
just do sudo chown $USER:$USER .xinitrc
Jodi
to change the ownership back to your user
So root:juno-c?
(the reason sudo echo .... doesnt work is that sudo applies to echo only, > .xinitrc will still be run as the regular user and try to write it asthat
you want it to be owned byjuno-c:juno-c
Well I’m the regular user
root:juno-c would mean its owned by root and the group juno-c
whihc usually would mena your user only has read access and nothing else
yeah thats the problem, you edited it as root so its owned by root, thats why we need to give ownership of the file back to you
Like so?
dont keep the dollar sign
$USER is an environment variable that (in this case) is equivalent to juno-c so thats why I wrote it lik ethat
ugh
youre using the nouvea driver, thats the issue
it says nvidia is installed but you dont seem to be using it
its installed with the kernel
do sudo pacman -S nvidia nvidia-utils
then reboot
the nvidia package blacklists nouvea apparently
So now I reinstall?
yeah
lol
ISWTG I’M GONNA STRANGLE WHATEVER IS DOIN THIS
ig u might need to try popOS ? or ur comfortable with arch ? just saying popOS cause its the most stable 1 with nvidia
go to tty and type starx
Yo I’m more comfy with arch bc of how flexible it is
ye ik but like arch isnt just good for nvidia gpus..but its ur choice at the end
search about it and u will understand
nothing, arch just doesnt come set up by default
distros are pretty much all the same, other than very few specifc things, you can do on arch everything you can do on any other distro yourself
uhm dont think its gonna be as popos ? or am i wrong
there is nothing different about popos, it uses the same drivers, the same packages, the same everything
its just all pre set up for you
Can I still get the plasma de for pop?
yea
Istg I’m a fuckin idiot rofl
do you want to try getting arch to work first, I think we're relatively close
cautiously optimistic ofc
I wanna try getting arch to work first pop os will be the final bastion
alright
ye ig continue first and u might be comfortable after all that changes
switch to a tty if you can, id disable sddm now so it doesnt annoy you every time you reboot before its fixed
So systemctl disable —now sddm
https://www.reddit.com/r/pop_os/comments/pt4som/what_does_pop_os_do_differently_to_make_nvidia_so/
looked it up, apparently popos's dev componay (system76) also sells computers so they have close ties with nvidia, its still the same stuff but they talk to nvidia and get a lot of hardware for testing
dont think --now does anything in this case but yeah
try startx now maybe ?
^
(the red authentication stuff is normal if you were wondering)
can you rerun lspci -k | grep -i5 VGA again just to make sure its using nvidia now
also I looked it up and apparently sometimes you do actually need to just list the monitors, so maybe you should use nvidia-xconfig but it seemed to output garbage so idk
by just arrow key up (just if u didint know) @lone bronze
…
still using nouvea, but I think thats okay
it might just be using it for the vga text mode emulation while youre in the tty
you dont have an igpu right
I do but I dont use it
So?
just do what it says
make a /etc/X11/xorg.conf.d/10-nvidia.conf file and and write that
By doing nano?
why sudo ? XD
That look right?
because its a global directory
you need sudo to edit any file outside of your home folder
ah
looks fine
Ctrl s then x?
i dont think ctrl+s even is an option
it is
To save?
isnt ctrl+o save
ye but ctrl o asks u..like making sure
either way, ctrl+x also asks you if you want to save the file so you can use that
ctrl s not telling u to make sure
i see
So now what?
try startx again
thats really annoying that it doesnt wanna start normal..even tho everything looks fine
yeah the logs are ~/.local/share/xorg now since youre a regular user btw
this is Xorg.0.log right
Mhm
see sudo dmesg | grep -i3 nvidia
Hmmm weird
try sudo blacklist nouveau
Eh blacklist aint a command?
first, can you show me the /etc/mkinitcpio.conf file (if it exists)
cat /etc/mkinitcpio.conf
^
run mkinitcpio -p linux
.
as root
i forgot the p my bad
if it doent exist theres nothing to do
just type it again
oh lol
Like how?
i edited it
.
Ok yeah still doesnt exist
cpio
not pcio
Haza
where it says HOOKS, remove the word kms from there
With nano?
yep
now save it
then run sudo mkinitcpio -p linux
then run sudo grub-mkconfig -o /boot/grub/grub.cfg to regenerate the grub config, then reboot
(make sure your efi partition is mounted to /boot first)
I can check that with lsblk ye?
yeah or just ls /boot and see if it has an EFI and GRUB folder
I’ll take that as a yes?
looks good
she should reboot and startx now right ?
yeah
Fingers crossed y’all
btw for later reference, basically everything we've done is from here
https://wiki.archlinux.org/title/NVIDIA
the archwiki is a super amazing tool every arch user should use
FUCK YEAH
Now my mouse doesnt work
pffft lol
Hey I get sorta overwhelmed but now I’m getting a lil bit better with it
How tf do I fix my mouse now rofl
it doesnt work in what way?
is it working badly or is it just straight up not showing up/moving
I cant move my cursor
well alright hope u gonna be way better at arch
plasma is weird and doesnt always work well when launched via startx, at this point id recommend just trying to see if it works fine if you log in through sddm
if it doesnt fix it, theres more we can try
I mean couldn’t you tell I was getting quicker with it during this bs
So do I go to a sep tty
yeah
And re enable sddm?
and then sudo systemctl enable --now sddm
it should replace the current plasma session when you launch it in sddm
so you dont need to worry about closing it
even if it doesnt, linux allows you to have infinite desktop environments open at once so its still not an issue
if you cant move the mouse its kind hard to close kde so its better to just not worry about it lol
works?
Yup
nice
okay which mouse do you have
Razer basilisk v2 if I remember correctly
some (especially gamer-focused) companies have thier own custom mouse drivers which is really fun and definitely not annoying at all
yup razer is one of those
Yeah I figured as such
you have to install openrazer
I’m thinking bout gettin new keyboard and mouse for my new os
its on the aur
if you dont have an aur helper its fine, I can help you install htat too
its pretty important for arch since the main repos are small, the aur basically adds a good 60k user created packages you can download
Yay correct?
theres a few, yay is what I use
its just simple and works
Also why cant I switch ttys?
do you know how to get it?
Mhm I already have it
you should be able to
unless kde made your entire screen freeze? I have no idea
Definitely not frozen I can do alt fn shortcuts jus fine
remember youre in a different tty rn,make sure youre switching to the one youre not already in
and try pressing it multiple times, its a bit inconsistent sometimes
I’ve tried f1 and f3
I can still use my arrow keys to traverse the de so I can install open razer from console
Is it -S or -Syu?
yay -S openrazer
(yay doesnt need to be and should not be run with sudo)
apparently its called openrazer-meta
also add yourself to the plugdev group
your choice
if you say to remove them after its done building, youd need to reinstall the deps every time theyre used again
personally I just dont remove them so I dont have to waste time reinstalling it
(btw when I say I use something, I mean I used it when I used arch, I dont use arch anymore)
What do you use now?
gento user now
yeah
(sudo usermod -a -G plugdev juno-c)
generally theres a few youd want to add yourself to
Would I type that in?
How’s gento compared to arch?
one of the first things I run on every install is
sudo usermod -a -G plugdev,netdev,wheel,input,audio,video jodi (obviously replace jodi with your username lol)
HARD
Lel
thats an alternative, ive always used usermod instead but its the same
also install linux-headers, idk if the package installed that for you or not
I actually remember installing that
theyre pretty different
gentoo allows you to customize everything about your system way more than arch, its a true DIY distro
you compile every single package (other than a few optionally) and can control which features theyre compiled with and everything like that
leads to preformance benefits and further customizations
youre good then
after adding yourself to the plugdev group
(id also recommend adding input, video, netdev, and audio too)
then you just reboot and itll automatically work
but dont deny that its hard to use
yeah i wouldnt really recommend it to most people
Also it said netdev doesn’t exist?
What is netdev for?
sudo groupadd netdev, but if it doesnt exist it probably doesnt matter anyway
used by some networking tools for authentication, you need it to run iwctl as a regular user for example (no clue about network manager)
Lol so its oki for me to reboot?
Yeah
uhm mouse working ?
Might not have to even reboot, I think just restarting the xserver works but idk how you'd do that without a mouse
Bouta find out
Unless you want a 3rd kde session
alt p for dwm XD
Ok bruh my mouse still doesnt work
Lmfao all I had to do was unplug and replug it in X333
That just makes the driver load, that's normal lol
You can check if it's using openrazer with lsusb -t if you want, if the driver is called like "basic mouse" then it was just needing to unplug and plug in
welp whatever the case its all good now
Yeah yeah
Why?
can u take a quick look at the wiki for that ?
sudo pacman -S intel-ucode
didint try yay for it tbh...but only use yay for the aur packages ig
Makes sense
also update arch every 3-4 days with command
yay
not everyday like everyone is doing lol..cause it might break ur system
How would I update arch by only using yay?
yay runs pacman -Syu
so its just easier to type yay
for basically anything
Yay can do anything pacman can do + more
The only issue is that if you search for a package it'll take 15 years since it has to look through tens of thousands of AUR packages
So is this still balid jodi?
You can also just do yay -Syu like you normally would
valid**
Not sure, I think generally updating every few days is fine
yea cause its a rolling release
I don't know if it's better than updating every day though, I feel like as long as you update once or twice a week at least you're fine
Ig I'm confused
So yay breaks shit if you only type yay yes?
More frequently I mean
lol yup..thats the same feeling
typing yay only = pacman -Syu
so its just easier to type yay
Its the same as a full system upgrade with pacman
It won't break anything
Well not commonly at least, arch can just sometimes break after a full upgrade but it's usually easy to fix and rare
yay -S == pacman -S
(But with AUR packages as well as official packages)
yay -S is to install a program like for example mpv
yay -S mpv
thats will install mpv for u
Yay == pacman -Syu
(But with AUR packages being updates as well as official packages)
yay only = pacman -Syu
ow lol
Ahhh oki thank you thats where I was tripping myself up
after installing intel-ucode regenerate grub b4 restarting
Thank y'all for putting up with me x333
Can you reply to the command again?
sudo grub-mkconfig -o /boot/grub/grub.cfg
why are you in this thread now lol
cause jodi was helping her
it already was mounted last time, don't need to check again
but you aren't supposed to use other people's threads
you can do cat /etc/fstab though and just see if it declares a vfat drive that gets mounted to /boot
Idk why fes didnt ask jodi to enter my thread lol
well its mine actully
That would made this a lot more organized
anyway imma sleep now gn yall
Gn fes
Jodi if ya want you can join my thread cause thats where a lotta other ppl help me with my stupidity x333
Alright
@honest grail does pamixer have limits in volume up ?
cause like it doesnt stop going higher when i try to see what is the max volume for it
it goes up to 100%
If you dont want a limit, add the --allow-boost flag to the command
its limited by default for safety reasons
without a limit you can go to infinite
like literally infinite
not really..its not limited at all...it can go like explode my ears and can still go higher
well..it is like that for me now
how do i set the limit to 150% only ?
not sure you can without a small shell script
you can do like if $(pamixer --get-volume) > 150; do pamixer --set-volume 150; fi to make sure it cant go above 150
(this is psuedo code, this wont actually work written exactly like this, its just a concept)
can u make it in C ?
this is probably not ideal, pamixer --get-volume takes like almost a second to do anything so that would make it way slower than just setting the volume without it
takes from 200 miliseconds to like 500 sometimes
which is pretty long compared to not doing that which is instant
if you still want to do that though, youd probably want to use SHCMD again and just make the script in there
if [ $(pamixer --get-volume) -lt "150" ]; then pamixer --increase 5; fi
try this
static const char[] volumecmd = "if [ $(pamixer --get-volume) -lt "150" ]; then pamixer --allow-boost--increase 5; fi";
and then later
instead of doing {.v = volumecmd}, do just SHCMD(volumecmd) just like you did for the screenshot command
this technically isnt perfect, it stops you from increasing your volume if the volume is equal to or greater than 150 so if youre on like volume 149 you can get up to 154 but that doesnt really matter and if youre only ever going up with increments of 5 anyway it shouldnt ever happen
and keep in mind you might notice a delay now because of pamixer --get-volume
imma give it a try..will go back to what it was if i felt uncomfortable
forgot to add --allow-boost, fixed that now
Jan 09 13:37:39 arch kernel: x86/cpu: VMX (outside TXT) disabled by BIOS
Jan 09 13:37:39 arch kernel: ACPI BIOS Error (bug): Could not resolve symbol [_PR.CPU0._PPC], AE_NOT_FOUND (20220331/psargs-3>
Jan 09 13:37:39 arch kernel: ACPI Error: Aborting method _PR.PPCE due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
Jan 09 13:37:39 arch kernel: ACPI Error: Aborting method \EV4 due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
Jan 09 13:37:39 arch kernel: ACPI Error: Aborting method \SMIE due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
Jan 09 13:37:39 arch kernel: ACPI Error: Aborting method \NEVT due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
Jan 09 13:37:39 arch kernel: ACPI Error: Aborting method _SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_NOT_FOUND) (202203>
Jan 09 13:37:39 arch kernel: EXT4-fs: Cannot change data mode on remount
Jan 09 13:37:40 arch systemd-remount-fs[236]: /usr/bin/mount for / exited with exit status 32.
Jan 09 13:37:40 arch systemd[1]: Failed to start Remount Root and Kernel File Systems.
░░ Subject: A start job for unit systemd-remount-fs.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-remount-fs.service has finished with a failure.
░░
░░ The job identifier is 32 and the job result is failed.
Jan 09 13:37:52 arch kernel: Support for cores revisions 0x17 and 0x18 disabled by module param allhwsupport=0. Try b43.allhws>
Jan 09 13:37:53 arch dhcpcd[379]: dhcpcd_prestartinterface: Operation not possible due to RF-kill
Jan 09 13:37:57 arch dhcpcd[405]: ps_bpf_recvmsg: Invalid argument
Jan 09 13:37:59 arch dhcpcd[405]: ps_bpf_recvmsg: Invalid argument
Jan 09 13:38:00 arch dhcpcd[405]: ps_bpf_recvmsg: Invalid argument
Jan 09 13:38:02 arch dhcpcd[405]: ps_bpf_recvmsg: Invalid argument
Jan 09 13:38:04 arch dhcpcd[405]: ps_bpf_recvmsg: Invalid argument
Jan 09 13:38:31 arch sudo[482]: pam_unix(sudo:auth): conversation failed
Jan 09 13:38:31 arch sudo[482]: pam_unix(sudo:auth): auth could not identify password for [alu]
Jan 09 13:38:42 arch sudo[498]: pam_unix(sudo:auth): conversation failed
Jan 09 13:38:42 arch sudo[498]: pam_unix(sudo:auth): auth could not identify password for [alu]
Jan 09 13:38:50 arch sudo[514]: pam_unix(sudo:auth): conversation failed
Jan 09 13:38:50 arch sudo[514]: pam_unix(sudo:auth): auth could not identify password for [alu]
Jan 09 13:40:53 arch dhcpcd[973]: ps_bpf_recvmsg: Invalid argument
Jan 09 13:40:54 arch kernel: usb 2-1.1: device descriptor read/64, error -32
Jan 09 13:40:54 arch kernel: usb 2-1.1: device descriptor read/64, error -32
Jan 09 13:40:54 arch kernel: usb 2-1.1: device descriptor read/64, error -32
Jan 09 13:41:01 arch dhcpcd[1016]: ps_bpf_recvmsg: Invalid argument
Jan 09 13:41:02 arch dhcpcd[1016]: ps_bpf_recvmsg: Invalid argument
Jan 09 13:41:04 arch dhcpcd[1016]: ps_bpf_recvmsg: Invalid argument
Jan 09 13:41:06 arch dhcpcd[1016]: ps_bpf_recvmsg: Invalid argument
Jan 09 13:41:08 arch dhcpcd[1016]: ps_bpf_recvmsg: Invalid argument
Jan 09 14:08:41 arch kernel: usb 2-1.1: device not accepting address 16, error -71
Jan 09 14:08:41 arch dhcpcd[379]: ps_root_dispatch: No such file or directory
Jan 09 14:08:41 arch dhcpcd[379]: ps_root_dispatch: No such file or directory
Jan 09 14:08:41 arch dhcpcd[379]: ps_root_dispatch: No such process
Jan 09 14:08:45 arch dhcpcd[2158]: ps_bpf_recvmsg: Invalid argument
are these errors critical ?
@honest grail
ye lol i use it right now
so i have to search for a fix ?
I guess it's not critical then? I'd definitely keep it mind though since they don't seem good
Yeah I'd say just google the errors
@honest grail can u help me uninstall all pulseaudio components and install pipewire ? just wanna give it last try cause someone said he got laptop from 2001 and mic was working on it with pipewire..+ im telling u to help me uninstall it cause last time i tried uninstalling it by myself, linux didint want to boot up at all
I'm in class rn so can't help rn
alr
uhm so
sudo pacman -S pipewire-pulse
then reboot and
systemctl start pipewire-pulse.service
then uninstall pulseaudio components right ? just making sure tho
or
sudo pacman -S --noconfirm --needed pipewire
sudo pacman -S --noconfirm --needed pipewire-media-session
sudo pacman -S --noconfirm --needed pipewire-alsa
sudo pacman -S --noconfirm --needed pipewire-jack
sudo pacman -S --noconfirm --needed pipewire-zeroconf
sudo pacman -Rs --noconfirm pulseaudio-equalizer-ladspa
sudo pacman -Rs --noconfirm pulseaudio-alsa
sudo pacman -Rs --noconfirm gnome-bluetooth-blueberry
sudo pacman -Rs --noconfirm pulseaudio-bluetooth
sudo pacman -Rs --noconfirm pulseaudio
sudo pacman -S --noconfirm --needed pipewire-pulse
sudo pacman -S --noconfirm --needed blueberry
then reboot
99% of this is optional, it just depends on what you're using
If you remove pulseaudio, it'll remove it's dependencies
It also doesn't matter if you remove it all since it just simply won't be used if you're not using pulseaudio
uhm which 1 of those commands should i use ? i use 2 sticks for mic and sound in my headphones...i mean not like the new hardware comes with only 1 contains mic and sound in the same stick
Just uninstall pulseaudio and pulseaudio Bluetooth
Then install pipewire and pipewire-pulse
You don't need wire-plumber or anything, you can use whatever session manager you used for pulseaudio unless you need the special pipewire only features
pipewire requires a session manager lol
Really? I thought if you used pipewire-pulse it'd just work
I don't remember ever installing wire-plumber at least
At least I think so, maybe pipewire doesn't directly require it
done but i still see what im on pulseaudio ?
[alu@arch ~]$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 91
Tile Size: 65472
User Name: alu
Host Name: arch
Server Name: PulseAudio (on PipeWire 0.3.63)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1b.0.analog-stereo
Default Source: alsa_input.pci-0000_00_1b.0.analog-stereo
Cookie: 8a36:2e4e
well yeah
pipewire is just a sound server, its still using pulseaudio as a client
if you dont want to use the pulseaudio client remove pipewire-pulse, but then some apps wont work and bluetooth also wont work
the benefits of pipewire are as a sound server, it doesnt really replace pulseaudio
so youll still get less latency, better video recording, etc
well i dont really use bluetooth at all but uhm ive tested mic and it works perfectly fine right now..so i guess i aint uninstall pipewire-pulse
yeah itll fix any of the compatibility issues youve had, thats why I was confused on why it worked on pulse but not on pipewire for you, its basically 1:1
@honest grail why when i alt + p and then type reboot and enter, it doesnt reboot my laptop ?
it was working fine...idk what happened tbh
probably requires sudo
u mean from terminal ? its just faster to do alt p then reboot
well reboot probably requires sudo which is why you cant just do reboot from dmenu
try systemctl reboot instead
it does require polkit being installed though
worked thanks
If you want you can alias it in /etc/profile (or /etc/profile.d) like alias reboot="systemctl reboot" and then it should just work in dmenu if you do reboot
Yeah
Normally youd want to line it up but since this line is so much longer, you can't really do that
And it's visual anyway, as long as you can read it, it's correct
Personally I just made a macro and used that to make it shorter
can i see urs ?
- also i wanna see ur whole latest config.h if u dont mind
its all on GitHub, lemme resend the link
not updated tho
It is, I sync it after every change (if I remember)
VOLKEY(LowerVolume),
VOLKEY(RaiseVolume),
VOLKEY(Mute),
Yeah, VOLKEY is a macro I made
wait what..is it going to work like that
#define VOLKEY(ACTION) { 0, XF86XK_Audio##ACTION, spawn, {.v = ACTION##cmd} }
#define VOLKEY(ACTION) { 0, XF86XK_Audio##ACTION, spawn, {.v = ACTION##cmd} }
VOLKEY(LowerVolume) == {0, XF86XK_AudioLowerVolume, spawn, {.v =LowerVolumecmd}}
So ofc you'd also need to change the names of the volume commands to match that
I could've just made an array for it but meh, it doesn't matter that much and it'd require it to use 24 bytes of memory for no reason
I'd recommend just like not worrying about this, it doesn't really matter
I just thought it'd make it look slightly nicer
It does exactly the same as yours just more concisely
ah i see, alr thx btw
@honest grail where can I start learning C language ? Gonna start learning it when I finish this year BTW cause I'm really busy in studying
really just by using it and looking at examples, it's a super simple language
I learned it in under a week
You just need basic programming knowledge and you need to know how memory management works
Its basically a thin wrapper over assembly (the language specific to your processor) to be portable to multiple computers so it's very simple and doesn't really have anything fancy
How can I use it when idk anything about it xd
well that's a good question, honestly I don't remember how I started
I think I just looked at an example of how to make hangman in C on YouTube and kinda winged the rest on my own
Hmmm alr I'll just look around for stuff I can take as an example too but in my free time
U sure u learned it in 1 week only ?
Yeah, under a week in fact
Obviously I was worse then than I am now but I understood the core concepts
Is it going to be as easy for me too if my main language isn't English ?
well probably as easy as any other language, there's not that many keywords so most of it is in English
Ah ig that will be fine then
There could be an issue if your language doesn't use the English alphabet
C was made in 1970 so it only supports ASCII, which only includes the English alphabet, numbers, and a few extra symbols like () and ;
So if you make a string in C with Japanese symbols for example, and try to take the 3rd character, it will not work correctly
But that's also true for python and a lot of other languages, it's just one thing you should be aware of
obviously you can get around this by using a utf8 library which supports basically all symbols including emijis
My main language is Arabic actually but I'm still good at English... Like rarely using google translate..and the keyboard on my laptop is English so IG that's fine
yeah, just remember that storing Arabic letters in strings might not work well
Also what other programming languages do you use
tried to learn python b4 from a website called 3schools.com but i just found it annoying to learn from it so i just stopped trying to learn it at all...but aint give up to learn C at all
@honest grail
pacman -Rnsu xorg got this after that command...I thought it will only remove unused xorg stuff
welp
Just reinstall everything
Should I just install xorg-xinit ?
that will probably pull the other stuff so probably yeah
Wym
All Xorg stuff
Imma just try xorg-xinit for now and see if its gonna boot
Same thing..uhm which xorg is actually needed to make it work...I just don't wanna install it all
@honest grail
xorg-server is the bare minimum
Worked thanks ..uhm for u do u just install all the xorg stuff ?
You don't have to do that on gentoo, you just add X to your USE flags and it installs all that's necessary for you
hmm tbh just thinking about installing gentoo...but its just hard to use...thats why im just not sure
I wouldn't recommend it, if you don't know how to debug and fix obscure issues its not going to be a good experience
Its more stable than arch usually but since every set up is so unique, you'll end up with very weird combinations that impact eachother and just have bugs that are hard to diagnose unless you're completely familiar with the whole setup
Yep
A lot are even built in modules
can u send me it as text to copy the ones i want faster
Just remember they'll all be refreshed at the same time so if you want your current volume to be displayed every second, your CPU usage would be redisplayed every second too
You wouldn't write them the same way
Slstatus has these as built in functions
Look at the default config and see the comments
(if you want them, they're also on my GitHub page under the dwmstatus project)
ig ill just use ur bar but will remove few things i dont need from it first but uhm i dont see the config.h in emacs
?
wdym by the last part
take a look at ur github emacs folder...u aint see config.h file
Why are you in the emacs folder
That's my emacs config lol
didint u say its under the dwmstatus ?
Yeah?
how am i supposed to use it
Oh god this is from like a year ago lol, I didn't realise i still had that
That was my first attempt at making the status bar and I basically just copied someone else's project entirely lmao
oh lol
Clone it
CD into it
make
sudo make install
Well first you'd probably want to edit config.h
just download the config.h and edit it then cd Downloads then make and sudo make clean install ?
What
u mean the whole folder ?
No that's not how it works
This is an entire status bar, it isn't contained in the 10 line config.h file
The config.h file is only the configuration
You need to clone the whole repo
so uhm git https://github.com/DaQueenJodi/dwmstatus
Yeah
but i wanna edit it first b4 i install it
then do that
should it be in any directory ?
git clone https://github.com/daqueenjodi/dwmstatus (caps don't matter btw)
Yeah it doesn't matter
alr got u...btw uhm does it use alot of ram n cpu ? or no
Probably not
It doesn't do a lot
I never tested it since it works fine in my PC
But for ram it should use basically nothing, it never allocates memory after startup
You can change how much it allocates but by default it uses 100 bytes of memory per module and 1024 bytes just for the test in the status bar itself
You can change all of that but it might crash if you ever exceed the length so yaknow don't be too strict
uhm alr
static const char datecmd[] = "date '+%x %r'";
#define seperator " | "
#define SECONDS(n) (1 * 1000)
#define MINUTES(n) (SECONDS(n) * 60)
// {prefix, command, ms_interval}
static const Module modules[] = {
{NULL, datecmd, SECONDS(1)},
};
its fine like that for only date n time ? (just for testing tho)
@honest grail
- should i add it in .xinitrc
dwmstatus &
If you want to truly move to DWM you will also need to move to your mother's basement
@patent thorn
Bruh
ban that toxic kid
Are you hoping to help or just shitpost?
Yeah looks good
I was just informing OP of a certain sentiment
Yep
ig u should do something about it ? dont u think so
make
clang ./dwmstatus.c -std=c99 -pthread -Wpedantic -Wall -Wextra -lpthread -lX11 -o dwmstatus
make: clang: No such file or directory
make: *** [Makefile:15: all] Error 127
My advice, if you’re not going to help, leave the thread. I don’t mind people joking a little but if you’re going into a support thread just to shit post it’ll go down badly, as in I’ll start more actively moderating that behaviour or even removing you if it gets more disruptive. Not willing to discuss this further in a support thread. Good luck to the folks here 🙂
Uhh one sec
thx tho
vegancookies received a thank you cookie!
Weird, idk where that error is coming from then lol
Ah it's clang
Just go into the Makefile and change "CC=clang" to "CC=gcc"
alr
Forgot to make it that before release
I use clang on my PC but not everyone has it
make
gcc ./dwmstatus.c -std=c99 -pthread -Wpedantic -Wall -Wextra -lpthread -lX11 -o dwmstatus
./dwmstatus.c:128:13: warning: ‘clean_exit’ defined but not used [-Wunused-function]
128 | static void clean_exit(const int ignore) {
| ^~~~~~~~~~
is this fine ?
works fine thanks..uhm now how do i remove all slstatus components
not talking about its folder...talking about the things that has been installed with the make command
sudo make uninstall in the same place you ran sudo make install
@honest grail is it needed to update dwm by recompiling it ?
or there is no update for it at all
Wdym
Dwm gets updates rarely and yeah ofc when it updates you'll need to recompile it
just by removing the existing dwm folder and git clone the new 1 yea ?
then sudo make install
Just git pull in the folder to pull the latest updates
ah thats way easier, thanks for letting me know it tho
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
@honest grail what does this do
All it does is run every script in the /etc/X11/xinit/xinitrc.d directory
ah
@honest grail xinput by somehow doesnt exits in arch..uhm and touchpad works again
xinput list
bash: xinput: command not found
is there a way to just get xinput installed without having to install all xorg stuff back ?
ig its only xorg-xinput
Virtual core XTEST pointer
@honest grail do u know what is that driver for ?
I do not
In what context
its just in xinput devices so i was just wondering whats the diffrence between them and can i disable 1 of them if its not needed
Just try it and see
Disable one of them and see if it still works
But also I don't know why you're disabling so much, it won't increase performance or anything
ik but why would u need to keep a device or driver enabled while u dont use it ?
You wouldn't need to
But it also isnt important to disable
@honest grail if i wanna delete my user completly from arch then make new 1 ill have to open the tty and login the root then sudo userdel [myusernamehere] right ? or am i missing something ...i want it to be completely removed with nothing left from it
That would work, but I don't remember if it deletes the home folder or not
Either way make sure to back it up
did not delete my home folder
@honest grail can u take a look at that bar ? i want mine to be the same colors..and i have the config.h for it but uhm its diffrent for me in my config..wait ill send u his config and take a look at it
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
its like that for me
for him its
static const char col_bg[] = "#1E1E2E";
static const char col_fg[] = "#CDD6F4";
static const char col_green[] = "#8999FD";
did u get what i mean ?
yeah they just changed the array that controls the colors around to make it fit with their way
they have
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_fg, col_bg, col_bg },
[SchemeSel] = { col_bg, col_green, col_green },
};
instead of the default
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
};
theyre just variable names, it doesnt matter what you call it
u here ? @honest grail