-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to rofi launcher, install user foot.ini, other QOL Improvements #23
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
# -*- conf -*- | ||
|
||
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) | ||
# term=foot (or xterm-256color if built with -Dterminfo=disabled) | ||
term=xterm-256color | ||
# login-shell=no | ||
|
||
# app-id=foot # globally set wayland app-id. Default values are "foot" and "footclient" for desktop and server mode | ||
# title=foot | ||
# locked-title=no | ||
|
||
# font=monospace:size=8 | ||
# font-bold=<bold variant of regular font> | ||
# font-italic=<italic variant of regular font> | ||
# font-bold-italic=<bold+italic variant of regular font> | ||
# font-size-adjustment=0.5 | ||
# line-height=<font metrics> | ||
# letter-spacing=0 | ||
# horizontal-letter-offset=0 | ||
# vertical-letter-offset=0 | ||
# underline-offset=<font metrics> | ||
# underline-thickness=<font underline thickness> | ||
# box-drawings-uses-font-glyphs=no | ||
# dpi-aware=no | ||
|
||
# initial-window-size-pixels=700x500 # Or, | ||
# initial-window-size-chars=<COLSxROWS> | ||
# initial-window-mode=windowed | ||
# pad=0x0 # optionally append 'center' | ||
# resize-delay-ms=100 | ||
|
||
# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body} | ||
|
||
# bold-text-in-bright=no | ||
# word-delimiters=,│`|:"'()[]{}<> | ||
# selection-target=primary | ||
# workers=<number of logical CPUs> | ||
# utmp-helper=/usr/lib/utempter/utempter # When utmp backend is ‘libutempter’ (Linux) | ||
# utmp-helper=/usr/libexec/ulog-helper # When utmp backend is ‘ulog’ (FreeBSD) | ||
|
||
[environment] | ||
# name=value | ||
|
||
[bell] | ||
# urgent=no | ||
# notify=no | ||
# visual=no | ||
# command= | ||
# command-focused=no | ||
|
||
[scrollback] | ||
# lines=1000 | ||
# multiplier=3.0 | ||
# indicator-position=relative | ||
# indicator-format="" | ||
|
||
[url] | ||
# launch=xdg-open ${url} | ||
# label-letters=sadfjklewcmpgh | ||
# osc8-underline=url-mode | ||
# protocols=http, https, ftp, ftps, file, gemini, gopher | ||
# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[] | ||
|
||
[cursor] | ||
# style=block | ||
# color=<inverse foreground/background> | ||
# blink=no | ||
# beam-thickness=1.5 | ||
# underline-thickness=<font underline thickness> | ||
|
||
[mouse] | ||
# hide-when-typing=no | ||
# alternate-scroll-mode=yes | ||
|
||
[touch] | ||
# long-press-delay=400 | ||
|
||
[colors] | ||
# alpha=1.0 | ||
# background=242424 | ||
# foreground=ffffff | ||
# flash=7f7f00 | ||
# flash-alpha=0.5 | ||
|
||
## Normal/regular colors (color palette 0-7) | ||
# regular0=242424 # black | ||
# regular1=f62b5a # red | ||
# regular2=47b413 # green | ||
# regular3=e3c401 # yellow | ||
# regular4=24acd4 # blue | ||
# regular5=f2affd # magenta | ||
# regular6=13c299 # cyan | ||
# regular7=e6e6e6 # white | ||
|
||
## Bright colors (color palette 8-15) | ||
# bright0=616161 # bright black | ||
# bright1=ff4d51 # bright red | ||
# bright2=35d450 # bright green | ||
# bright3=e9e836 # bright yellow | ||
# bright4=5dc5f8 # bright blue | ||
# bright5=feabf2 # bright magenta | ||
# bright6=24dfc4 # bright cyan | ||
# bright7=ffffff # bright white | ||
|
||
## dimmed colors (see foot.ini(5) man page) | ||
# dim0=<not set> | ||
# ... | ||
# dim7=<not-set> | ||
|
||
## The remaining 256-color palette | ||
# 16 = <256-color palette #16> | ||
# ... | ||
# 255 = <256-color palette #255> | ||
|
||
## Misc colors | ||
# selection-foreground=<inverse foreground/background> | ||
# selection-background=<inverse foreground/background> | ||
# jump-labels=<regular0> <regular3> # black-on-yellow | ||
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue | ||
# search-box-no-match=<regular0> <regular1> # black-on-red | ||
# search-box-match=<regular0> <regular3> # black-on-yellow | ||
# urls=<regular3> | ||
|
||
[csd] | ||
# preferred=server | ||
# size=26 | ||
# font=<primary font> | ||
# color=<foreground color> | ||
# hide-when-maximized=no | ||
# double-click-to-maximize=yes | ||
# border-width=0 | ||
# border-color=<csd.color> | ||
# button-width=26 | ||
# button-color=<background color> | ||
# button-minimize-color=<regular4> | ||
# button-maximize-color=<regular2> | ||
# button-close-color=<regular1> | ||
|
||
[key-bindings] | ||
# scrollback-up-page=Shift+Page_Up | ||
# scrollback-up-half-page=none | ||
# scrollback-up-line=none | ||
# scrollback-down-page=Shift+Page_Down | ||
# scrollback-down-half-page=none | ||
# scrollback-down-line=none | ||
# scrollback-home=none | ||
# scrollback-end=none | ||
# clipboard-copy=Control+Shift+c XF86Copy | ||
# clipboard-paste=Control+Shift+v XF86Paste | ||
# primary-paste=Shift+Insert | ||
# search-start=Control+Shift+r | ||
# font-increase=Control+plus Control+equal Control+KP_Add | ||
# font-decrease=Control+minus Control+KP_Subtract | ||
# font-reset=Control+0 Control+KP_0 | ||
# spawn-terminal=Control+Shift+n | ||
# minimize=none | ||
# maximize=none | ||
# fullscreen=none | ||
# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none | ||
# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none | ||
# pipe-selected=[xargs -r firefox] none | ||
# show-urls-launch=Control+Shift+o | ||
# show-urls-copy=none | ||
# show-urls-persistent=none | ||
# prompt-prev=Control+Shift+z | ||
# prompt-next=Control+Shift+x | ||
# unicode-input=Control+Shift+u | ||
# noop=none | ||
|
||
[search-bindings] | ||
# cancel=Control+g Control+c Escape | ||
# commit=Return | ||
# find-prev=Control+r | ||
# find-next=Control+s | ||
# cursor-left=Left Control+b | ||
# cursor-left-word=Control+Left Mod1+b | ||
# cursor-right=Right Control+f | ||
# cursor-right-word=Control+Right Mod1+f | ||
# cursor-home=Home Control+a | ||
# cursor-end=End Control+e | ||
# delete-prev=BackSpace | ||
# delete-prev-word=Mod1+BackSpace Control+BackSpace | ||
# delete-next=Delete | ||
# delete-next-word=Mod1+d Control+Delete | ||
# extend-char=Shift+Right | ||
# extend-to-word-boundary=Control+w Control+Shift+Right | ||
# extend-to-next-whitespace=Control+Shift+w | ||
# extend-line-down=Shift+Down | ||
# extend-backward-char=Shift+Left | ||
# extend-backward-to-word-boundary=Control+Shift+Left | ||
# extend-backward-to-next-whitespace=none | ||
# extend-line-up=Shift+Up | ||
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste | ||
# primary-paste=Shift+Insert | ||
# unicode-input=none | ||
# scrollback-up-page=Shift+Page_Up | ||
# scrollback-up-half-page=none | ||
# scrollback-up-line=none | ||
# scrollback-down-page=Shift+Page_Down | ||
# scrollback-down-half-page=none | ||
# scrollback-down-line=none | ||
# scrollback-home=none | ||
# scrollback-end=none | ||
|
||
[url-bindings] | ||
# cancel=Control+g Control+c Control+d Escape | ||
# toggle-url-visible=t | ||
|
||
[text-bindings] | ||
# \x03=Mod4+c # Map Super+c -> Ctrl+c | ||
|
||
[mouse-bindings] | ||
# scrollback-up-mouse=BTN_BACK | ||
# scrollback-down-mouse=BTN_FORWARD | ||
# selection-override-modifiers=Shift | ||
# primary-paste=BTN_MIDDLE | ||
# select-begin=BTN_LEFT | ||
# select-begin-block=Control+BTN_LEFT | ||
# select-extend=BTN_RIGHT | ||
# select-extend-character-wise=Control+BTN_RIGHT | ||
# select-word=BTN_LEFT-2 | ||
# select-word-whitespace=Control+BTN_LEFT-2 | ||
# select-quote = BTN_LEFT-3 | ||
# select-row=BTN_LEFT-4 | ||
|
||
# vim: ft=dosini | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ backup_dir=$HOME/.config/sway/config.d/backup | |
sleep 2 | ||
for i in XXX "Waiting for Internet connection" XXX 10; | ||
do echo $i; done | ||
until /usr/bin/ping -q -c 1 flathub.org | ||
until /usr/bin/curl -s --max-time 5 https://flathub.org > /dev/null | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? What’s wrong with |
||
do sleep 1; done | ||
|
||
for i in XXX "Adding Flathub Repository" XXX 20; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,13 @@ | |
bindsym $mod+Shift+Return exec $$term -e distrobox enter | ||
|
||
# set sway-launcher-desktop as launcher | ||
for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 30 ppt, border pixel 10 | ||
set $menu exec $term -a launcher -e sway-launcher-desktop | ||
# for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 30 ppt, border pixel 10 | ||
# set $menu exec $term -a launcher -e sway-launcher-desktop | ||
|
||
### Set rofi as launcher, and enable hotkeys for rofi-network-manager and rofi-bluetooth | ||
set $menu exec rofi -combi-modi window,drun,ssh,combi -terminal foot -theme arthur -font "hack 10" -show combi | ||
bindsym $mod+n exec rofi-network-manager | ||
bindsym $mod+b exec rofi-bluetooth | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is also |
||
|
||
# greybeard wallpaper | ||
output * bg /usr/share/wallpapers/wallpaper.png fill | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am on the edge with this, constantly switching between switching it off and on. Yes, this is more robust and works better if it leaks to other machines which have no idea about
foot
. On the other hand, a non-zero number of applications (e.g.,xdg-terminal
, which, for better or worse, we have in openSUSE) expect thatTERM
contains a name of the executable to run new terminal (and there are some historical reasons why it is not completely crazy, it may be even POSIX). Also,rofi-sensible-terminal
needsTERMINAL
variable (exactly because of the confusing state ofTERM
), because it doesn’t know aboutfoot
otherwise. It is a mess.