Sway Edition - General Conversation!

I have some idea of setting environment variables

Waybar is immensely powerful and pretty easy to learn. I sure you could give it a go.

I would love to use WOB buts its in the AUR.

The coming week is quite busywith an exam, but will look into waybar on the other side. Also thinking that the weather.sh maybe shouldn’t default to C, but either take a second or take it from the system info.

Edit: Just saw this: https://wttr.in/?format=j1

the idea is to make it easy for users used to a DE to get into WM usage, and a bit to showcase what is possible to setup. But there is no have to, as the plan is to make it possible to use a default EOS theming/setup or take your own one.

1 Like

@OdiousImp

This help maybe ? … No stress about bar as people will change probably , we all different like

there some nice bar here . function over look alway win :wink:

1 Like

Perhals its better to have a gui text editor. If I was using it id proobably want one too. :grinning: and of course not everyone might be conformable with using nano and not even I’m am.

Yeh I need the stop “ricing” it by habit :upside_down_face:

The second one is not too bad, I think. I have every feature of the i3bar plus a few. I’ll probably make the background black and color the separate modules differently. Thoughts??

Personally I prefer same colors on the modules, but it is definitly a matter of taste. I think that we should either lean against the defaults of waybar or the look of the current i3 edition. Just to keep things as consistent as possible. Is there an official opinion on these matters?

I like this e.g. https://github.com/Alexays/Waybar/wiki/Examples#robertjks-configuration

That is acc what I started from. Yeh imma make em all white and add icons to the workspaces.

I added pluseaudio back-light and a launcher for people coming from DE’s. I think it’d be nice to have some app launchers just show you can use like that as well. Similar to what @joekamprad! was going for

Any better? I kept the color for internet (green when connected orange when not) and brightness. CPU will turn red when over 90% and I changed the background pure black.

I can’t add pictures to the workspaces beacuse their focused and I don’t I can set a different icon for each focused workspace I’ll work on that.

FILENAME

Pushed a new package.txt thing a bob. I will check on a base arch install to make sure it has everything.

I won’t push any changes on waybar yet cause the config is still messy

Much better i think! I would go for white as ‘nothing to report’ and red for warning, so that internet is white when there is a connection. It would also be great to and an 90% warning to ram.

How are we handling shutdown if we can’t use wlogout? Or would this soon be pushed to the official arch repoes? Otherwise we can make a sway mode.

I have been playing a little around with the weather.sh script, but it is not finished. The plan is that we will default to location based on ip and celcius, but it can be changed in configs if one wished to.

Sway mode I’ve never done that. We’ll see. I don’t know too much about that.

Does the weather script have to be set or does it use your ip address automatically.

Have you thought about using openweather like the i3 one?

I can see that when using OpenWeather one need to get an API key, instead I’m trying to use https://github.com/chubin/wttr.in which has a really nice API with loads of possiblities and easy to use. An no, there is no need to set the IP adresse, i gets that automatically.

This is what I have this fare:

#!/bin/bash

content=$(curl -s 'https://wttr.in/?format=j1' | jq .current_condition[0])

ICON=$(curl -s 'https://wttr.in/?format=1' | sed 's/[+0-9a-cA-Z°-]//g' )

TEMP=$(echo $content | jq -r .temp_C)

SKY=$(echo $content | jq .weatherDesc[0] | jq -r .value)

LOCATION=$(curl -s 'wttr.in/?format=j1' | jq .nearest_area[0] | jq .areaName[0] | jq -r .value)

echo '{"text": "'$TEMP°C'", "tooltip": "'$TEMP°C $ICON $SKY $LOCATION'"}'
1 Like

Regaring the mode thing you can see an example here: https://www.reddit.com/r/swaywm/comments/chi4fr/question_shutdown_and_restart_binding/

1 Like

I leave the weather script to you. You seem to understand it much better than me :grinning:

However people might be against the idea of taking your ip address automatically.

I’ll make sure that you can set it yourself also, but will default to location from ip.

I mean people might think it went against their privacy :upside_down_face: @joekamprad would this be okay?

1 Like

i would put this disabled per default and give the information inside config comment to show how to enable.

2 Likes

Latest News

  • Sway config now perfect with @morten-b merge

Things to do

  • Waybar design I think is now fine (kinda went against my own words) its looks a bit different from the i3 but it has the same functions plus a few. I will clean up the config and push later today or tmrw
  • @morten-b is working in a weather script and I’ll merge that when he’s ready
  • regarding wlogout, I think we’d use a sway mode instead. The only problem is the lack of gui so what I’m planning is for it to open up in floating terminal and ask for yes or no. Don’t know if this will work yet but perhaps its a option
  • I will test my package thing with base-utlis this weekend on my spare laptop.
  • We need to write environment variables for Firefox and QT

Thank you!!

Quick question @joekamprad why do we launch apps through usr/bin rather than just the command. I’ve done this too but just wondering ?

(Also is the bar okay? :persevere:)