ft: update border and readme

This commit is contained in:
2024-11-01 12:59:01 +01:00
parent 0357aa9719
commit ab11ff0ea9
4 changed files with 49 additions and 36 deletions

View File

@@ -19,13 +19,16 @@ $ gsettings set org.gnome.desktop.wm.preferences button-layout ''
### Dependencies (and quirks) ### Dependencies (and quirks)
- Install based on Fedora Workstation with GNOME (makes everything easier) #### General
- Install based on Fedora Workstation with GNOME
- Font: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/JetBrainsMono.zip - Font: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/JetBrainsMono.zip
- Keyring provided by GNOME and started with `sway(1)`
- `keepassxc(1)` should use `/run/user/1000/keyring/ssh` as SSH Auth Socket - `keepassxc(1)` should use `/run/user/1000/keyring/ssh` as SSH Auth Socket
- Env Vars exported via `systemd` in `files/environment/.config/environment.d/envvars.conf` - Env Vars exported via `systemd` in `files/environment/.config/environment.d/envvars.conf`
- `%wheel ALL=(ALL) NOPASSWD: /usr/bin/tee /sys/bus/platform/drivers/ideapad_acpi/VPC????\:??/conservation_mode` - Toogle conservation without root: `%wheel ALL=(ALL) NOPASSWD: /usr/bin/tee /sys/bus/platform/drivers/ideapad_acpi/VPC????\:??/conservation_mode`
- Brave Flags: `/usr/bin/brave-browser-stable --enable-features=UseOzonePlatform --ozone-platform=wayland --gtk-version=4 --enable-wayland-ime --enable-features=TouchpadOverscrollHistoryNavigation` - Brave Flags for Wayland: `/usr/bin/brave-browser-stable --enable-features=UseOzonePlatform --ozone-platform=wayland --gtk-version=4 --enable-wayland-ime --enable-features=TouchpadOverscrollHistoryNavigation`
#### Sway
- Keyring provided by GNOME and started with `sway(1)`
``` ```
sudo dnf install \ sudo dnf install \

View File

@@ -9,15 +9,15 @@ _JAVA_AWT_WM_NONREPARENTING=1
# KITTY_ENABLE_WAYLAND=1 # KITTY_ENABLE_WAYLAND=1
# support jp input in gnome # support jp input in gnome
# GTK_IM_MODULE=ibus GTK_IM_MODULE=ibus
# QT_IM_MODULE=ibus QT_IM_MODULE=ibus
# XMODIFIERS=@im=ibus XMODIFIERS=@im=ibus
# SDL_IM_MODULE=ibus SDL_IM_MODULE=ibus
# GLFW_IM_MODULE=ibus GLFW_IM_MODULE=ibus
# sway - fcitx5 fcitx5-configtool-gtk fcitx5-anthy # sway - fcitx5 fcitx5-configtool-gtk fcitx5-anthy
GTK_IM_MODULE=fcitx # GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx # QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx # XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx # SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=fcitx # GLFW_IM_MODULE=fcitx

View File

@@ -7,6 +7,11 @@
output * bg ~/downloads/wallpaper.png fill output * bg ~/downloads/wallpaper.png fill
# output eDP-1 scale 2 # output eDP-1 scale 2
# monitor setup at home
output 'AOC U34G2G1 0x00000254' mode 3440x1440@99.982Hz position 0,0
output 'Acer Technologies XF270HU T78EE0048521' mode 2560x1440@143.856Hz position 440,1440
bindsym $mod+p exec wdisplays
# disable laptop when closed # disable laptop when closed
set $laptop eDP-1 set $laptop eDP-1
bindswitch --reload --locked lid:on output $laptop disable bindswitch --reload --locked lid:on output $laptop disable
@@ -16,8 +21,8 @@
# exec_always --no-startup-id convert -scale 10% -blur 0x2.5 -resize 1000% ~/cloud/images/wallpaper/wallpaper.png ~/cloud/images/wallpaper/lock.png # exec_always --no-startup-id convert -scale 10% -blur 0x2.5 -resize 1000% ~/cloud/images/wallpaper/wallpaper.png ~/cloud/images/wallpaper/lock.png
# set $lock swaylock -f -i ~/cloud/images/wallpaper/lock.png # set $lock swaylock -f -i ~/cloud/images/wallpaper/lock.png
set $lock swaylock -f -i ~/cloud/images/wallpaper/win_lock.png -u set $lock swaylock -f -i ~/cloud/images/wallpaper/win_lock.png -u -s stretch
exec_always pkill swayidle; swayidle -w \ exec swayidle -w \
timeout 600 '$lock' \ timeout 600 '$lock' \
timeout 900 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ timeout 900 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
timeout 1200 'systemctl suspend' \ timeout 1200 'systemctl suspend' \
@@ -56,9 +61,9 @@ bindgesture swipe:4:left focus left
bindsym $mod+Control+BackSpace exec systemctl suspend bindsym $mod+Control+BackSpace exec systemctl suspend
bindsym $mod+Shift+s exec ~/.config/sway/screenshot -s region bindsym $mod+Shift+s exec ~/.config/sway/screenshot -s region
bindsym $mod+Ctrl+Shift+s exec ~/.config/sway/screenshot -s focused-window
bindsym $mod+Ctrl+c reload bindsym $mod+Ctrl+c reload
bindsym $mod+Ctrl+r exec swaymsg output DP-3 mode 2560x1440@143.856Hz
bindsym $mod+Ctrl+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' bindsym $mod+Ctrl+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@@ -89,6 +94,9 @@ bindgesture swipe:4:left focus left
bindsym $mod+Shift+$up move up bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right bindsym $mod+Shift+$right move right
bindsym $mod+greater move workspace to output right
bindsym $mod+less move workspace to output left
# Workspaces # Workspaces
# Switch to workspace # Switch to workspace
bindsym $mod+1 workspace number 1 bindsym $mod+1 workspace number 1
@@ -115,35 +123,38 @@ bindgesture swipe:4:left focus left
# Scratchpad # Scratchpad
bindsym $mod+minus move scratchpad bindsym $mod+minus move scratchpad
bindsym $mod+equal scratchpad show, border pixel 2 bindsym $mod+equal scratchpad show, border pixel none
# Layout stuff # Layout stuff
bindsym $mod+f fullscreen bindsym $mod+f fullscreen
bindsym $mod+Shift+space floating toggle; \ bindsym $mod+Shift+space floating toggle; \
[tiling con_id=__focused__] border pixel 2; \ [tiling con_id=__focused__] border pixel none; \
[floating con_id=__focused__] border pixel 2 [floating con_id=__focused__] border pixel none
### Theming ### Theming
# title bar
font pango: JetBrainsMono Nerd Font Mono 10 font pango: JetBrainsMono Nerd Font Mono 10
for_window [title="."] title_format "%app_id" for_window [title="."] title_format "%app_id"
# border
hide_edge_borders --i3 smart hide_edge_borders --i3 smart
default_border pixel pixel 2 default_border pixel none
default_floating_border pixel 2 default_floating_border pixel none
# inactive
default_dim_inactive 0.1
# gaps
gaps inner 6 gaps inner 6
smart_gaps off smart_gaps off
# swayfx start # swayfx start
blur enable blur enable
shadows enable shadows enable
corner_radius 6 corner_radius 6
layer_effects "waybar" blur enable; shadows enable; corner_radius 6 layer_effects "waybar" blur enable; shadows enable; corner_radius 6
layer_effects "launcher" blur enable; shadows enable layer_effects "launcher" blur enable; shadows enable
layer_effects "wofi" blur enable; shadows enable
# swayfx end # swayfx end
bar { bar {
@@ -159,18 +170,17 @@ bindgesture swipe:4:left focus left
### Autostart ### Autostart
# SSH # SSH - SSH_AUTH_SOCK must be exported as env
# SSH_AUTH_SOCK must also be exported as env separately later exec gnome-keyring-daemon --start
exec eval $(gnome-keyring-daemon --start)
exec export SSH_AUTH_SOCK
# Programs # Programs
exec --no-startup-id netbird-ui exec trayscale --hide-window
exec --no-startup-id nm-applet exec nm-applet
exec --no-startup-id swaync exec swaync
exec --no-startup-id nextcloud --background exec nextcloud --background
exec --no-startup-id pasystray exec pasystray
exec --no-startup-id fcitx5 exec fcitx5
exec gammastep-indicator -l 48:11.5
### Sway defaults ### Sway defaults
include /etc/sway/config.d/* include /etc/sway/config.d/*

View File

@@ -97,7 +97,7 @@
"interval": 10, "interval": 10,
// "format": " {:%e %b %Y}", // Icon: calendar-alt // "format": " {:%e %b %Y}", // Icon: calendar-alt
// "format": "🗓️ {:%e. %b %Y (%a)}", // Icon: calendar-alt // "format": "🗓️ {:%e. %b %Y (%a)}", // Icon: calendar-alt
"format": "{:%a, %e.%b}", // Icon: calendar-alt "format": "{:%e. %b (%a)}", // Icon: calendar-alt
"tooltip-format": "{:%e %B %Y}", "tooltip-format": "{:%e %B %Y}",
"on-click": "gnome-calendar" "on-click": "gnome-calendar"
}, },