wait till you find out quickshell
linuxmemes
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
- Don't get baited into back-and-forth insults. We are not animals.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudoin Windows. - No porn, no politics, no trolling or ragebaiting.
- Don't come looking for advice, this is not the right community.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. π¬π§ Language/ΡΠ·ΡΠΊ/Sprache
- This is primarily an English-speaking community. π¬π§π¦πΊπΊπΈ
- Comments written in other languages are allowed.
- The substance of a post should be comprehensible for people who only speak English.
- Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures
We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations. - Keep discussions polite and free of disparagement.
- We are never in possession of all of the facts. Defamatory comments will not be tolerated.
- Discussions that get too heated will be locked and offending comments removed. Β
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
Share your scripts! We want to see what fun stuff people are doing here
One thing that I've found that I like is having my waybar not normally visible. When I need to glance at the bar, I can just hold the Sway modifier key to make it temporarily show up.
in ~/.config/sway/config:
bar {
swaybar_command waybar
mode hide
}
More screen space for whatever I'm actually doing. If something is so critical that it needs to grab my attention (e.g. battery low on a laptop) then I have it set up to send a message to the notification manager.
I'm assuming this is sway-specific, so just wanted to add that waybar itself also supports toggling hide/show bar by sending it a signal:
kill -SIGUSR1 $(pgrep waybar)
Examples? I feel like I could probably script more window manager-related things in my current setup, but I don't really have any ideas what to script.
Depends pretty wildly on what you like.
Some things that I do:
I never want automatic locking
I always lock my machine manually when leaving it, with Super-\ (Super normally being the Windows key). I also want my monitor to power off after a few seconds in that mode, and then wake back up if I start typing. I also want to use a black screen rather than swaylock's default white.
in my ~/.config/sway/config:
set $mod Mod4
# Handle session-locking triggered by stuff like loginctl lock-session
exec_always swayidle -w \
lock 'myscreensaver.sh'
# Bind Super-backslash to trigger a session lock
bindsym $mod+backslash exec "loginctl lock-session""
in ~/bin/myscreensaver.sh:
#!/bin/bash
# Script that handles things necessary to "lock" the system when I'm away
# Pause any music that mpd is playing
mpc pause
swayidle \
timeout 5 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' &
swaylock -c 000000
kill %1
By default, X11 (and Wayland, apparently, though I've spent less time looking at Wayland's APIs) don't "store" clipboard state -- they just facilitate transferring copied data from one application to another application where it's being pasted. This means that if one copies data in one application and then closes that application, the clipboard contents go away. I don't really like this behavior. One way to avoid it is to use a "clipboard manager"
a piece of software that saves a copy of the data itself. If you install clipman and wl-clipboard, you can do this:
In ~/.config/sway/config:
# Make clipboard persist after application termination
exec_always flock -n $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY-wl-paste wl-paste --watch clipman store
I want to get notifications when my laptop battery is low. Install poweralertd, and then in ~/.config/sway/config:
# Power notification support
exec_always flock -n $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY-poweralertd poweralertd
I don't use it that much, but Sway has a "scratchpad", where one can stuff a window that one is working with. With this, I send the current window there with Super-Shift-minus then make it pop back up as a floating window with Super-minus:
# Scratchpad
bindsym $mod+shift+minus move window to scratchpad
bindsym $mod+minus scratchpad show
I have a mute button on my laptop's keyboard. I make that mute the default PipeWire sound sink. In ~/.config/sway/config:
bindsym XF86AudioMute exec "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
I swap Caps Lock and left Control. This is how traditional Unix keyboards worked, and is generally more-friendly if you are using the Control key a lot more than Caps Lock. I'd consider this almost a precondition to use emacs without making your left pinky miserable. In ~/.config/sway/config:
input "type:keyboard" {
xkb_options ctrl:swapcaps,compose:menu,compose:ralt
}
That also sets my menu key (on my desktop) and right Alt key (on my laptop, which doesn't have a menu key) to be Compose. That way I can do things like type "ΓΆ" by hitting Compose o and then the double-quote key, or an em-dash ("β") with Compose hyphen hyphen hyphen.
I don't like keeping my mouse pointer visible unless I'm actually moving it. In my ~/.config/sway/config, this will hide it after three seconds:
# Hide mouse cursor after a period of inactivity.
seat seat0 hide_cursor 3000
I like to have a way to, using the keyboard, hide the latest notification shown by swaync, the default Sway notification manager. In ~/.config/sway/config:
bindsym $mod+grave exec "swaync-client --hide-latest"
Then Super-backtick will hide the most recent notification to show up.
Thanks for sharing.
Neat, thanks!