Compare commits

..

19 Commits

Author SHA1 Message Date
2ecb891a10
sway/autostart-utilities: add htop, comments 2022-04-15 14:20:45 +03:00
5df0c930c1
sway: move keybinds, add wdisplays win(-shift)-p 2022-04-15 14:13:08 +03:00
763f7fbf48
sway/config.d: add wlsunset-{kotka,lauttasaari}.conf 2022-04-15 14:12:15 +03:00
25633ba8ec
sway: import selenized-dark and go wild with statusbar command 2022-04-15 13:51:19 +03:00
29d1cad052
sway/config.d: bring back floating rules 2022-04-15 13:23:13 +03:00
1c288256aa
sway/config.d/media.conf: bring back media configuration 2022-04-15 13:22:52 +03:00
805011be6a
sway/as-utils: restore fcitx, kdeconnectd, insync, nextcloud, blueman 2022-04-15 13:22:31 +03:00
0d3345e5b8
sway: restore text editor shortcut, font, alt-tab (wofi), galculator 2022-04-15 13:21:41 +03:00
696967a5b6
sway/config.d: add autostart-communication.conf 2022-04-15 12:55:51 +03:00
e6e9416f4d
sway/config.d/keyboard: import keyboard options from i3 2022-04-15 12:08:52 +03:00
72b7da44ee
{bash,zsh}rc: add aliases for startsway etc.
Resolves: mikaela/scripts#36
2022-04-15 11:54:02 +03:00
817a2923d3
conf/foot: initial commit 2022-04-15 11:40:30 +03:00
76bfa107fe
sway: add swaylock bind 2022-04-15 10:40:31 +03:00
d77f0d6bdc
sway: use bemenu-run for now 2022-04-15 10:08:41 +03:00
6a7f95e01c
sway: add autostart-utilities.conf 2022-04-15 10:08:21 +03:00
4f6e1a79ae
sway: rename fineid.conf -> autostart-fineid.conf 2022-04-15 10:08:02 +03:00
7d3dcca007
sedric.conf: specify wallpaper for external monitor 2022-04-15 09:34:23 +03:00
3bd05ea8f3
sway/keyboard.conf: specify input type:keyboard 2022-04-15 09:34:01 +03:00
c2ec386106
sway: switch to foot client-server && enable showing xwayland/xdg_shell 2022-04-15 09:33:26 +03:00
15 changed files with 369 additions and 22 deletions

179
conf/foot/foot.ini Normal file
View File

@ -0,0 +1,179 @@
# -*- conf -*-
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
# login-shell=no
# app-id=foot
# title=foot
# locked-title=no
# font=monospace:size=8
font=DejaVuSansMono, Noto Color Emoji
# font-bold=<bold variant of regular font>
# font-italic=<italic variant of regular font>
# font-bold-italic=<bold+italic variant of regular font>
# line-height=<font metrics>
# letter-spacing=0
# horizontal-letter-offset=0
# vertical-letter-offset=0
# underline-offset=<font metrics>
# box-drawings-uses-font-glyphs=no
# dpi-aware=yes
# initial-window-size-pixels=700x500 # Or,
# initial-window-size-chars=<COLSxROWS>
# initial-window-mode=windowed
# pad=2x2 # 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>
[bell]
# urgent=no
# notify=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=111111 dcdccc
# Selenized dark https://codeberg.org/dnkl/foot/src/branch/master/themes/selenized-dark
color = 103c48 53d6c7
# blink=no
# beam-thickness=1.5
# underline-thickness=<font underline thickness>
[mouse]
# hide-when-typing=no
# alternate-scroll-mode=yes
# Selenized dark https://codeberg.org/dnkl/foot/src/branch/master/themes/selenized-dark
[colors]
# alpha=1.0
background= 103c48
foreground= adbcbc
regular0= 184956
regular1= fa5750
regular2= 75b938
regular3= dbb32d
regular4= 4695f7
regular5= f275be
regular6= 41c7b9
regular7= 72898f
bright0= 2d5b69
bright1= ff665c
bright2= 84c747
bright3= ebc13d
bright4= 58a3ff
bright5= ff84cd
bright6= 53d6c7
bright7= cad8d9
## 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>
# urls=<regular3>
# scrollback-indicator=<regular0> <bright4>
[csd]
# preferred=server
# size=26
# font=<primary font>
# color=<foreground color>
# 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
# 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+u
# show-urls-copy=none
# 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-to-word-boundary=Control+w
# extend-to-next-whitespace=Control+Shift+w
# clipboard-paste=Control+v Control+y
# primary-paste=Shift+Insert
[url-bindings]
# cancel=Control+g Control+c Control+d Escape
# toggle-url-visible=t
[mouse-bindings]
# 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-row=BTN_LEFT-3

View File

@ -12,11 +12,22 @@ set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term foot
exec --no-startup-id foot --server
set $term footclient
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu dmenu_path | dmenu | xargs swaymsg exec --
#set $menu dmenu_path | dmenu | xargs swaymsg exec --
set $menu bemenu-run | xargs swaymsg exec --
# Screen lock command
set $ScreenLockCmd swaylock -c 000000 -f
# Preferred graphical text editor
set $TEXTEDITOR pluma
# Font
font pango:OpenDyslexic 9
### Output configuration
#
@ -105,6 +116,7 @@ output * bg /usr/share/backgrounds/default.png fill
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
#
# Workspaces:
#
@ -199,22 +211,23 @@ mode "resize" {
bindsym $mod+r mode "resize"
#
# Status Bar:
# Keybinds:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
# Lock screen
bindsym Control+$mod+l exec $ScreenLockCmd
# alt-tab, super-g
bindsym Mod1+Tab exec --no-startup-id wofi -show window
bindsym $mod+g exec --no-startup-id wofi -show window
# super-t
bindsym $mod+t exec --no-startup-id $TEXTEDITOR
# calculator
bindsym XF86Calculator exec --no-startup-id galculator
# Known from Windows display configuration
bindsym $mod+p exec wdisplays
bindsym $mod+Shift+p exec wdisplays
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
}
}
# Reveal xwayland
for_window [shell=".*"] title_format "%title :: %shell"
include /etc/sway/config.d/*
include ~/.config/sway/config.d/*.conf

View File

@ -0,0 +1,4 @@
for_window [title="galculator"] floating enable
# insert new rules above this line
for_window [title="tracker - .*"] floating enable

View File

@ -0,0 +1,17 @@
# Very Important Communication Programs, P2P, not expected to get sold
exec --no-startup-id sleep 25 && flatpak run net.jami.Jami
exec --no-startup-id sleep 25 && flatpak run org.briarproject.Briar
# Signal in wayland and tray
# --disable-gpu - https://github.com/signalapp/Signal-Desktop/issues/2567#issuecomment-457282578
# --start-in-tray - would be nice, but then I cannot open it from there, trus --use-tray-icon
exec --no-startup-id sleep 15 && flatpak run org.signal.Signal --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu --use-tray-icon
# Telegram
exec --no-startup-id sleep 15 && flatpak run --env=LC_ALL=en_US.utf8 org.telegram.desktop -startintray
# Nheko nightly (Matrix protocol) with Tor
exec --no-startup-id sleep 10 && flatpak run --env=all_proxy=socks5://127.0.0.1:9050/ io.github.NhekoReborn.Nheko//master --profile default
# Dino, electronless XMPP. Doesn't seem to function too well under Wayland/Sway?
#exec --no-startup-id dino --gapplication-service

View File

@ -0,0 +1,25 @@
# Autostarting common utilities to my environments
# htop system monitor
exec --no-startup-id $TERMINAL --title=htop htop
# NetworkManager Applet
exec --no-startup-id nm-applet --indicator
# Mullvad GUI/tray
exec --no-startup-id sh -c "/opt/Mullvad\ VPN/mullvad-gui"
# see also pam_environment https://wiki.archlinux.org/index.php/Fcitx#Non_desktop_environment
exec --no-startup-id fcitx
# KDE Connect daemon on Fedora
exec --no-startup-id /usr/libexec/kdeconnectd
# Google Drive etc. sync client
exec --no-startup-id insync start
# NextCloud client
exec --no-startup-id nextcloud --background
# Bluetooth tray
exec --no-startup-id blueman-applet

View File

@ -0,0 +1,52 @@
# https://github.com/jan-warchol/selenized/blob/master/other-apps/i3/i3-selenized-dark.conf
# Selenized dark colorscheme for i3
# This must go in your i3 config
set $bg #103c48
set $black #184956
set $br_black #2d5b69
set $white #72898f
set $fg #adbcbc
set $br_white #cad8d9
set $red #fa5750
set $green #75b938
set $yellow #dbb32d
set $blue #4695f7
set $magenta #f275be
set $cyan #41c7b9
set $orange #ed8649
set $violet #af88eb
set $br_red #ff665c
set $br_green #84c747
set $br_yellow #ebc13d
set $br_blue #58a3ff
set $br_magenta #ff84cd
set $br_cyan #53d6c7
set $br_orange #fd9456
set $br_violet #bd96fa
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
#bar {
# font pango:DejaVu Sans Mono 10
#mode hide
# status_command i3status --config ~/.config/i3/i3status.conf
# colors {
# separator $blue
# background $bg
# statusline $br_white
# focused_workspace $green $green $bg
# active_workspace $cyan $blue $black
# inactive_workspace $black $black $fg
# urgent_workspace $yellow $yellow $black
# }
#}
# clientclass border backgr. text indicator
client.focused $green $green $black $blue
client.focused_inactive $cyan $cyan $black $violet
client.unfocused $black $black $fg $white
client.urgent $yellow $yellow $black $orange

View File

@ -1,4 +1,12 @@
input * {
xkb_layout "fi"
# My preferred keyboard configuration
# alt-shift changes layout, both shifts together are caps lock, caps lock is
# backspace (colemak style), nbsp is compose+space, compose is menu.
# I am not sure Wayland recognises terminate, but here it is anyway.
input "type:keyboard" {
xkb_layout fi,us,epo,ru
xkb_variant ,altgr-intl,,phonetic_winkeys
xkb_numlock enable
xkb_options grp:alt_shift_toggle,shift:both_capslock,caps:backspace,nbsp:none,terminate:ctrl_alt_bksp,compose:menu
}

View File

@ -0,0 +1,16 @@
# media keys and similar configuration
# notifies of volume changes
exec --no-startup-id pasystray --notify-all
# win-shift-a for audio device configuration tab
bindsym $mod+Shift+a exec pavucontrol -t 5
# Media keys
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause && notify-send -t 500 "Play-Pause pressed"
# Volume keys NOTE: won't work if nothing is playing (which I consider an improvement
# over randomly stopping working as I enable and disable audio devices).
set $sink $(pactl list short sinks | grep RUNNING | cut -f1)
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -5% # && notify-send -t 500 "$(pulsemixer --get-volume)"
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +5% # && notify-send -t 500 "$(pulsemixer --get-volume)"
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $sink toggle # mute sound

View File

@ -6,3 +6,5 @@ output eDP-1 disable
# External display on the right
output HDMI-A-1 resolution 1920x1080 position 3840,0
# Set wallpaper onto the external monitor
output HDMI-A-1 bg ~/.wallpaper stretch

View File

@ -0,0 +1,21 @@
# Uncommented sections come from i3-selenized-dark.conf
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while date +'%z/%Z: %G-W%V-%u / %Y-%j / %a %d. %B %Y | %F %H:%M:%S';do sleep 1; done
colors {
#statusline #ffffff
statusline $br_white
#background #323232
background $bg
#inactive_workspace #32323200 #32323200 #5c5c5c
inactive_workspace $black $black $fg
}
}

View File

@ -0,0 +1 @@
exec --no-startup-id wlsunset -l 60.46742 -L 26.94508

View File

@ -0,0 +1 @@
exec --no-startup-id wlsunset -l 60.15937 -L 24.87530

View File

@ -494,8 +494,12 @@ alias apt-builddep="apt-rdepends --build-depends --follow=DEPENDS"
# https://superuser.com/a/638033 - get embedded Windows product key
alias winkey="xxd /sys/firmware/acpi/tables/MSDM"
# Always exec startx so Ctrl-Alt-Backspace won't lead to unlocked TTY.
alias startx="exec \startx"
# Always exec startx/startsway/wayland/sway so Ctrl-Alt-Backspace won't lead to unlocked TTY.
alias startsway="exec dbus-launch --exit-with-session sway --unsupported-gpu"
#alias startx="exec \startx"
alias startx=startsway
alias startwayland=startsway
alias startwl=startsway
# cat list of kernel detected vulnerabilities/states with filenames
alias linux-check-cpu-vulns="tail -n +1 /sys/devices/system/cpu/vulnerabilities/*"

View File

@ -471,8 +471,12 @@ alias apt-builddep="apt-rdepends --build-depends --follow=DEPENDS"
# https://superuser.com/a/638033 - get embedded Windows product key
alias winkey="xxd /sys/firmware/acpi/tables/MSDM"
# Always exec startx so Ctrl-Alt-Backspace won't lead to unlocked TTY.
alias startx="exec \startx"
# Always exec startx/startsway/wayland/sway so Ctrl-Alt-Backspace won't lead to unlocked TTY.
alias startsway="exec dbus-launch --exit-with-session sway --unsupported-gpu"
#alias startx="exec \startx"
alias startx=startsway
alias startwayland=startsway
alias startwl=startsway
# cat list of kernel detected vulnerabilities/states with filenames
alias linux-check-cpu-vulns="tail -n +1 /sys/devices/system/cpu/vulnerabilities/*"