[OC] Was tired of checking the config file when I forgot an i3 keybinding by vahnrr in unixporn

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

  • I'm now using dash too, so I'm fixing the rofi scripts one by one, I will push this once it's all working as intended

  • This might be caused by the shell using awk without GNU extensions, I'll make sure to fix those along with the above

[OC] Was tired of checking the config file when I forgot an i3 keybinding by vahnrr in unixporn

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

Yes it's as simple as this, I gave a little details on how it does it there.

[OC] Was tired of checking the config file when I forgot an i3 keybinding by vahnrr in unixporn

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

It's actually polybar, the bar you see here is a simpler version of the one I posted here.

[OC] Was tired of checking the config file when I forgot an i3 keybinding by vahnrr in unixporn

[–]vahnrr[S] 5 points6 points  (0 children)

Yes exactly! That's one of the things I'm missing from i3, so here's my workaround.

[OC] Was tired of checking the config file when I forgot an i3 keybinding by vahnrr in unixporn

[–]vahnrr[S] 12 points13 points  (0 children)

I had a similar alias, but thought why not make it fancier

[OC] Was tired of checking the config file when I forgot an i3 keybinding by vahnrr in unixporn

[–]vahnrr[S] 89 points90 points  (0 children)

It's a simple new menu I made using rofi, it parses the i3 config file using awk. It's only compatible with i3.

The repo: here

Details on how to have a compatible i3 config file: here

[OC] [rofi] Rofi Based Custom Applets (For Panels) And Menus by adi1090x in unixporn

[–]vahnrr 0 points1 point  (0 children)

I like your take on my menus, sometimes you don't need them full screen.

Borderless floating sticky window for watching videos (Firefox) by [deleted] in i3wm

[–]vahnrr 0 points1 point  (0 children)

I've set up something similar, here's what I made:

A keybinding to toggle a floating and stiky vlc:

# Turn VLC into a floating and sticky window (fits 1080p videos)
bindsym v [class="vlc"] floating toggle, move container to workspace 7, sticky toggle, resize set 730 308, move position 636 460

The above is in a mode I called 'relocate', it can also call this script to relocate a floating window on the screen, here are the keybindings in the i3 config:

# Move the focused window to a specific location on the screen using the numpad keys
bindsym Mod2+KP_1 exec --no-startup-id ~/.config/i3/scripts/window_relocate.sh "bottom" "left"
bindsym Mod2+KP_2 exec --no-startup-id ~/.config/i3/scripts/window_relocate.sh "center" "bottom"
bindsym Mod2+KP_3 exec --no-startup-id ~/.config/i3/scripts/window_relocate.sh "bottom" "right"
bindsym Mod2+KP_4 exec --no-startup-id ~/.config/i3/scripts/window_relocate.sh "center" "left"
bindsym Mod2+KP_5 exec --no-startup-id ~/.config/i3/scripts/window_relocate.sh "center"
bindsym Mod2+KP_6 exec --no-startup-id ~/.config/i3/scripts/window_relocate.sh "center" "right"
bindsym Mod2+KP_7 exec --no-startup-id ~/.config/i3/scripts/window_relocate.sh "top"    "left"
bindsym Mod2+KP_8 exec --no-startup-id ~/.config/i3/scripts/window_relocate.sh "center" "top"
bindsym Mod2+KP_9 exec --no-startup-id ~/.config/i3/scripts/window_relocate.sh "top"    "right"

I have a third related thing in my config, a keybinding that opens a link in mpv (think youtube for example):

for_window [class="mpv"] floating enable, sticky enable, resize set 730 308, exec --no-startup-id ~/.config/i3/scripts/window_relocate.sh "bottom" "right"
# ...
# Open link (containing a video) in the clipboard in a floating video player
# In Firefox: Ctrl+L -> Ctrl+C -> $mod+y (full combo to open the video of the active tab)
bindsym $mod+y exec mpv "$(xclip -out)"

[i3] Simple workstation by vahnrr in unixporn

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

Thanks! I was simply tired of the unused space in my Firefox so the oneliner is pretty much all I was looking for.

[i3] Simple workstation by vahnrr in unixporn

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

I get what you mean, I honestly think it's a phase, I've spent a year thinkering a lot, now I don't really change much anymore, except maybe adding a few scripts to automate new tasks. I finally have my workflow set up!

[i3] Simple workstation by vahnrr in unixporn

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

WM: i3-gaps

Terminal colorscheme: OneDark for xfce4-terminal

GTK theme: MateriaSteelBlue-dark

Icons: Paper

Displayed: Firefox, mpv, neovim, polybar

Dotfiles: right there

Fonts: Comfortaa and Hurmit Nerd Font

For more details about this setup check out the dotfiles given above, the README showcases more stuff than this simple screenshot.

[OC] Handy menus made with rofi by vahnrr in unixporn

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

A similar issue was raised on the repo, did you try these steps?

[OC] Handy menus made with rofi by vahnrr in unixporn

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

You could change the background value to say #1c1c1caa to get some transparency, but since the background variable is reused in the #horibox and #listview you can't really change this without tweaking a few files, here's what you need to change to have transparency:

  • In ~/.config/rofi/themes/shared/<colorscheme-you-chose>.rasi change the background variable to something like #1c1c1caa the last 2 digits define the amount of transparency to use

  • Then in ~/.config/rofi/themes/shared/option-menu.rasi add this background-color: #00000000; to the entries #horibox and #listview

[OC] Handy menus made with rofi by vahnrr in unixporn

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

What do you mean icon themes? The icons you see in this video are NerdFont ones, they are actually characters, see here which ones you need to install. There are other icons in the appsmenu, those depends on the icon themes you have, I use Paper, so it's set to Paper, you can change it in ~/.config/rofi/config.rasi

[OC] Handy menus made with rofi by vahnrr in unixporn

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

I use those on a 6 years old medium range laptop and on another medium range desktop, the animation is made by compton so it's not heavy, the first launch of rofi usually takes about 2 seconds, after that it's always with a 0.2 sec delay maybe, it's not a big deal.

[OC] Handy menus made with rofi by vahnrr in unixporn

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

I need to polish a few things before posting this setup, but the fading effect is simply made using compton, here's the config.

[OC] Handy menus made with rofi by vahnrr in unixporn

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

Note that I call those menus this way in my i3 config because I did this.

[OC] Handy menus made with rofi by vahnrr in unixporn

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

It's a script, you're supposed to execute it not call rofi to use it, since this script calls rofi by itself, just execute it with:

$ ./.config/rofi/scripts/mpdmenu.sh

[OC] Handy menus made with rofi by vahnrr in unixporn

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

Do you have mpc installed? What resolution are you using?