sway tweaks

This commit is contained in:
Henrik Bakken
2025-05-15 12:09:03 +02:00
parent 0c8d4f76a8
commit 90a2f6eb0d
9 changed files with 87 additions and 428 deletions
+3 -3
View File
@@ -1,14 +1,14 @@
[General] [General]
Backend = GreetD Backend = GreetD
Theme = aerial Theme = sidebar
BlurBackground = true BlurBackground = true
IconTheme = breeze IconTheme = breeze
[Overrides] [Overrides]
Background = Theme Background = /usr/share/qtgreet/backgrounds/Water.svg
BaseColor = Theme BaseColor = Theme
TextColor = Theme TextColor = Theme
FontFamily = Theme FontFamily = Cozette
[videobg] [videobg]
File = File =
+2 -275
View File
@@ -1,278 +1,5 @@
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) include=~/.config/foot/foot-theme.ini
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
# 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=Akkurat\-Mono:size=12,JetBrainsMono Nerd Font:size=12 font=Akkurat\-Mono:size=12,JetBrainsMono Nerd Font:size=12
# 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>
# strikeout-thickness=<font strikeout thickness>
# box-drawings-uses-font-glyphs=no
dpi-aware=yes dpi-aware=yes
# gamma-correct-blending=no
# initial-color-theme=1
# initial-window-size-pixels=700x500 # Or,
# initial-window-size-chars=<COLSxROWS>
# initial-window-mode=windowed
# pad=0x0 # optionally append 'center'
# resize-by-cells=yes
# resize-keep-grid=yes
# resize-delay-ms=100
# 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
[security]
# osc52=enabled # disabled|copy-enabled|paste-enabled|enabled
[bell]
# system=yes
# urgent=no
# notify=no
# visual=no
# command=
# command-focused=no
[desktop-notifications]
# command=notify-send --wait --app-name ${app-id} --icon ${app-id} --category ${category} --urgency ${urgency} --expire-time ${expire-time} --hint STRING:image-path:${icon} --hint BOOLEAN:suppress-sound:${muted} --hint STRING:sound-name:${sound-name} --replace-id ${replace-id} ${action-argument} --print-id -- ${title} ${body}
# command-action-argument=--action ${action-name}=${action-label}
# close=""
# inhibit-when-focused=yes
[scrollback] [scrollback]
# lines=1000 lines=10000
# multiplier=3.0
# indicator-position=relative
# indicator-format=""
[url]
# launch=xdg-open ${url}
# label-letters=sadfjklewcmpgh
# osc8-underline=url-mode
# regex=(((https?://|mailto:|ftp://|file:|ssh:|ssh://|git://|tel:|magnet:|ipfs://|ipns://|gemini://|gopher://|news:)|www\.)([0-9a-zA-Z:/?#@!$&*+,;=.~_%^\-]+|\([]\["0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\)|\[[\(\)"0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\]|"[]\[\(\)0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*"|'[]\[\(\)0-9a-zA-Z:/?#@!$&*+,;=.~_%^\-]*')+([0-9a-zA-Z/#@$&*+=~_%^\-]|\([]\["0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\)|\[[\(\)"0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*\]|"[]\[\(\)0-9a-zA-Z:/?#@!$&'*+,;=.~_%^\-]*"|'[]\[\(\)0-9a-zA-Z:/?#@!$&*+,;=.~_%^\-]*'))
# You can define your own regex's, by adding a section called
# 'regex:<ID>' with a 'regex' and 'launch' key. These can then be tied
# to a key-binding. See foot.ini(5) for details
# [regex:your-fancy-name]
# regex=<a POSIX-Extended Regular Expression>
# launch=<path to script or application> ${match}
#
# [key-bindings]
# regex-launch=[your-fancy-name] Control+Shift+q
# regex-copy=[your-fancy-name] Control+Alt+Shift+q
[cursor]
# style=block
# blink=no
# blink-rate=500
# 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=0.9
# alpha-mode=default # Can be `default`, `matching` or `all`
# background=242424
# foreground=ffffff
# flash=7f7f00
# flash-alpha=0.5
# cursor=<inverse foreground/background>
## 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>
## Sixel colors
# sixel0 = 000000
# sixel1 = 3333cc
# sixel2 = cc2121
# sixel3 = 33cc33
# sixel4 = cc33cc
# sixel5 = 33cccc
# sixel6 = cccc33
# sixel7 = 878787
# sixel8 = 424242
# sixel9 = 545499
# sixel10 = 994242
# sixel11 = 549954
# sixel12 = 995499
# sixel13 = 549999
# sixel14 = 999954
# sixel15 = cccccc
## 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 Shift+KP_Page_Up
# scrollback-up-half-page=none
# scrollback-up-line=none
# scrollback-down-page=Shift+Page_Down Shift+KP_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
# pipe-command-output=[wl-copy] none # Copy last command's output to the clipboard
# 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
# color-theme-switch-1=none
# color-theme-switch-2=none
# color-theme-toggle=none
# noop=none
# quit=none
[search-bindings]
# cancel=Control+g Control+c Escape
# commit=Return KP_Enter
# 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
# delete-to-start=Control+u
# delete-to-end=Control+k
# 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 Shift+KP_Page_Up
# scrollback-up-half-page=none
# scrollback-up-line=none
# scrollback-down-page=Shift+Page_Down Shift+KP_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_WHEEL_BACK
# scrollback-down-mouse=BTN_WHEEL_FORWARD
# font-increase=Control+BTN_WHEEL_BACK
# font-decrease=Control+BTN_WHEEL_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
+10 -3
View File
@@ -10,7 +10,12 @@ yay -S plymouth tldextract go nodejs unzip exa topgrade
yay -S greetd qtgreet yay -S greetd qtgreet
# sway # sway
yay -S manjaro-sway-settings swaytools swaylock pamac-tray-plasma unipicker mako ly wlsunset pcmanfm-qt wev gtklock yay -S manjaro-sway-settings swaytools swaylock pamac-tray-plasma unipicker mako ly wlsunset pcmanfm-qt wev gtklock idlehack sworkstyle foot
systemctl --now --user enable foot-server.socket
# systemctl --now --user enable foot-server
# systemctl --now --user enable idlehack
# systemctl --now --user enable sworkstyle
# systemctl --now --user enable pcmanfm
# nvidia # nvidia
yay -S cuda nvidia-settings nvidia-docker yay -S cuda nvidia-settings nvidia-docker
@@ -49,8 +54,8 @@ sudo setcap CAP_CHOWN,CAP_FOWNER=pe /usr/bin/syncthing
sudo systemctl enable --now syncthing@hjalmarlucius.service sudo systemctl enable --now syncthing@hjalmarlucius.service
systemctl --user daemon-reload systemctl --user daemon-reload
rclone config # follow instructions and paste creds from https://console.cloud.google.com/apis/credentials rclone config # follow instructions and paste creds from https://console.cloud.google.com/apis/credentials
systemctl --user enable --now rclone-gdrive.service systemctl --now --user enable rclone-gdrive
systemctl --user enable --now dropbox.service systemctl --now --user enable dropbox
# docker incl non-root daemon # docker incl non-root daemon
yay -S docker docker-compose dry-bin nvidia-docker docker-buildx yay -S docker docker-compose dry-bin nvidia-docker docker-buildx
@@ -100,3 +105,5 @@ yay -S calcurse python-httplib2 \
# can be achieved by setting full-screen-api.ignore-widgets to true in about:config # can be achieved by setting full-screen-api.ignore-widgets to true in about:config
wget -P ~/.local/share/fonts/ https://raw.githubusercontent.com/SUNET/static_sunet_se/refs/heads/master/fonts/Akkurat-Mono.otf wget -P ~/.local/share/fonts/ https://raw.githubusercontent.com/SUNET/static_sunet_se/refs/heads/master/fonts/Akkurat-Mono.otf
sudo mkdir -p /usr/share/backgrounds/ultrawide/
sudo wget -O rainbowsmoke.jpg -P /usr/share/backgrounds/ultrawide https://superultrawidewallpaper.com/wp-content/uploads/2022/02/rainbow-smoke-3840x1080-1860x523.jpg
-38
View File
@@ -1,38 +0,0 @@
[Appearance]
color_scheme_path=/usr/share/qt5ct/colors/darker.conf
custom_palette=false
icon_theme=breeze-dark
standard_dialogs=default
style=kvantum
[Fonts]
fixed="Akkurat-Mono,12,-1,5,57,0,0,0,0,0"
general="Noto Sans,12,-1,5,50,0,0,0,0,0"
[Interface]
activate_item_on_single_click=1
buttonbox_layout=3
cursor_flash_time=1000
dialog_buttons_have_icons=1
double_click_interval=400
gui_effects=@Invalid()
keyboard_scheme=2
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3
[PaletteEditor]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x6\xb8\0\0\x2\xaf\0\0\t2\0\0\x4\xdb\0\0\x6\xba\0\0\x2\xc9\0\0\t0\0\0\x4\xd9\0\0\0\0\0\0\0\0\x14\0\0\0\x6\xba\0\0\x2\xc9\0\0\t0\0\0\x4\xd9)
[QSSEditor]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\xaa\0\0\x2\x8e\0\0\n0\0\0\x4\x9c\0\0\a\xac\0\0\x2\xa8\0\0\n.\0\0\x4\x9a\0\0\0\0\0\0\0\0\x14\0\0\0\a\xac\0\0\x2\xa8\0\0\n.\0\0\x4\x9a)
[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\t\xdd\0\0\x5(\0\0\0\0\0\0\0\0\0\0\x4\x62\0\0\x3\x9c\0\0\0\0\x2\0\0\0\x14\0\0\0\0\0\0\0\0\0\0\0\t\xdd\0\0\x5()
[Troubleshooting]
force_raster_widgets=1
ignored_applications=@Invalid()
-4
View File
@@ -1,4 +0,0 @@
[ColorScheme]
active_colors=#ff232629, #fffcfcfc, #ffffffff, #fff9fafa, #ff71757a, #ffbdc1c6, #ff232629, #ffffffff, #ff232629, #ffffffff, #ffeff0f1, #ff3b3d3f, #ff3daee9, #ffffffff, #ff2980b9, #ff9b59b6, #fff7f7f7, #ff000000, #fff7f7f7, #ff232629, #80ffffff
disabled_colors=#50ffffff, #ff2d393f, #ff47535a, #ff313131, #ff000000, #ff191919, #50ffffff, #ffffffff, #50ffffff, #ff29353b, #ff263238, #ff000000, #ff16a085, #66ffffff, #ff009dff, #ff9e4fff, #ff2d3a41, #ff000000, #ff000000, #ffeefcff, #80ffffff
inactive_colors=#ff232629, #fffcfcfc, #ffffffff, #fff9fafa, #ff71757a, #ffbdc1c6, #ff232629, #ffffffff, #ff232629, #ffffffff, #ffeff0f1, #ff3b3d3f, #ff3daee9, #ffffffff, #ff2980b9, #ff9b59b6, #fff7f7f7, #ff000000, #fff7f7f7, #ff232629, #80ffffff
-35
View File
@@ -1,35 +0,0 @@
[Appearance]
color_scheme_path=/usr/share/qt6ct/colors/darker.conf
custom_palette=false
icon_theme=breeze-dark
standard_dialogs=default
style=kvantum
[Fonts]
fixed="Akkurat-Mono,12,-1,5,500,0,0,0,0,0,0,0,0,0,0,1"
general="Noto Sans,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
[Interface]
activate_item_on_single_click=1
buttonbox_layout=3
cursor_flash_time=1000
dialog_buttons_have_icons=1
double_click_interval=400
gui_effects=@Invalid()
keyboard_scheme=2
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3
[QSSEditor]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a!\0\0\x1\xe3\0\0\t\xa7\0\0\x3\xf1\0\0\a#\0\0\x1\xfd\0\0\t\xa5\0\0\x3\xef\0\0\0\0\0\0\0\0\x14\0\0\0\a#\0\0\x1\xfd\0\0\t\xa5\0\0\x3\xef)
[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x6\x8b\0\0\x5(\0\0\0\0\0\0\0\0\0\0\x6\x8b\0\0\x5(\0\0\0\0\0\0\0\0\x14\0\0\0\0\0\0\0\0\0\0\0\x6\x8b\0\0\x5()
[Troubleshooting]
force_raster_widgets=1
ignored_applications=@Invalid()
-4
View File
@@ -1,4 +0,0 @@
[ColorScheme]
active_colors=#ff000000, #ffd4d0c8, #ffffffff, #ffe9e7e3, #ff6a6864, #ffa0a0a4, #ff000000, #ffffffff, #ff000000, #ffffffff, #ffd4d0c8, #ff000000, #ff000080, #ffffffff, #ff0000ff, #ffff00ff, #ffe9e7e3, #ff000000, #ffffffdc, #ff000000, #ff000000, #ff000000
disabled_colors=#ffbebebe, #ffefefef, #ffffffff, #ffcacaca, #ffbebebe, #ffb8b8b8, #ffbebebe, #ffffffff, #ffbebebe, #ffefefef, #ffefefef, #ffb1b1b1, #ff919191, #ffffffff, #ff0000ff, #ffff00ff, #fff7f7f7, #ff000000, #ffffffdc, #ff000000, #80000000, #ff919191
inactive_colors=#ff000000, #ffd4d0c8, #ffffffff, #ffe9e7e3, #ff6a6864, #ffa0a0a4, #ff000000, #ffffffff, #ff000000, #ffffffff, #ffd4d0c8, #ff000000, #ff000080, #ffffffff, #ff0000ff, #ffff00ff, #ffe9e7e3, #ff000000, #ffffffdc, #ff000000, #ff000000, #ff000000
+71 -48
View File
@@ -1,9 +1,36 @@
include /etc/sway/config.d/10-service.conf include /etc/sway/config.d/10-service.conf
include /etc/sway/config.d/50-systemd-user.conf include /etc/sway/config.d/50-systemd-user.conf
# DEFINITIONS # THEME
# theme definitions must come before $rofi_theme set $background /usr/share/backgrounds/wallpapers-juhraya/Austria_by_Rutger_Heijmerikx.jpg
include ~/.config/sway/definitions.d/* set $gui-font Cozette 10
set $term-font Akkurat Mono
# light
# set $cursor-theme xcursor-breeze-snow
# set $gtk-theme catppuccin-latte-teal-standard+default
# set $icon-theme Papirus
# set $kvantum-theme catppuccin-latte-teal
# set $gtk-color-scheme prefer-light
# dark
set $cursor-theme xcursor-breeze
set $gtk-theme catppuccin-mocha-teal-standard+default
set $icon-theme Papirus-Dark
set $kvantum-theme catppuccin-mocha-teal
set $gtk-color-scheme prefer-dark
# colors
set $background-color #1E1E2E
set $text-color #CDD6F4
set $accent-color #89B4FA
# target title bg text indicator
client.focused #556064 #F9CE5C #000000 #FDF6E3
client.focused_inactive #CB4B16 #2F3D44 #1ABC9C #454948
client.unfocused #556064 #2F3D44 #1ABC9C #454948
client.urgent #CB4B16 #FDF6E3 #1ABC9C #268BD2
client.placeholder #000000 #0C0C0C #ffffff #000000
client.background #2B2C2B
# DEFINIIONS
# controls
set $mod Mod4 set $mod Mod4
set $left h set $left h
set $down j set $down j
@@ -20,7 +47,6 @@ set $ws7 number 7
set $ws8 number 8 set $ws8 number 8
set $ws9 number 9 set $ws9 number 9
set $ws10 number 10 set $ws10 number 10
# scripts # scripts
set $script_path /usr/share/sway/scripts set $script_path /usr/share/sway/scripts
# terminal editor # terminal editor
@@ -58,46 +84,7 @@ set $screenshot_selection $pipe_selection | $swappy && $notify_paste
set $screenshot_selection_upload $pipe_selection | $upload_pipe set $screenshot_selection_upload $pipe_selection | $upload_pipe
# AUTOSTART APPLICATIONS # AUTOSTART APPLICATIONS
exec {
pamac-tray-plasma
blueman-applet
wlsunset -l 59.91:10.76
flashfocus
swayidle -w \
timeout 1200 'swaymsg exec "/usr/share/sway/scripts/keyboard-backlight-switch.sh off"' resume 'swaymsg exec "/usr/share/sway/scripts/keyboard-backlight-switch.sh on"' \
timeout 1200 'swaymsg exec "$locking"' \
timeout 1200 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
timeout 1200 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaymsg exec "$locking"' \
after-resume 'swaymsg "output * dpms on"' \
idlehint '240'
# swappy notify
$script_path/screenshot-notify.sh
# don't lock during movies
systemctl --now --user enable idlehack
# dynamic workspace names
systemctl --now --user enable sworkstyle
# preload file browser
systemctl --now --user enable pcmanfm
# foot-server
systemctl --now --user enable foot-server.socket
systemctl --now --user enable foot-server
}
exec_always { exec_always {
nm-applet
calcurse --daemon
# persist clipboard after close
pkill -x wl-clip-persist
'wl-clip-persist --clipboard regular --all-mime-type-regex \'(?i)^(?!image/x-inkscape-svg).+\''
# mako daemon
pkill -x mako
$script_path/mako.sh --font "$term-font" --text-color "$text-color" --border-color "$accent-color" --background-color "$background-color" --border-size 3 --width 400 --height 200 --padding 20 --margin 20 --default-timeout 15000
# enable noisetorch
noisetorch -u
noisetorch -i
# update rofi theme
mkdir -p $HOME/.config/rofi/
"echo $rofi_theme > $HOME/.config/rofi/config.rasi"
# theming (from manjaro sway desktop config) # theming (from manjaro sway desktop config)
/usr/share/sway/scripts/enable-gtk-theme.sh "$gtk-theme" /usr/share/sway/scripts/enable-gtk-theme.sh "$gtk-theme"
/usr/share/sway/scripts/fontconfig.sh "monospace" "$term-font" /usr/share/sway/scripts/fontconfig.sh "monospace" "$term-font"
@@ -110,9 +97,47 @@ exec_always {
gsettings set org.gnome.desktop.interface color-scheme "$gtk-color-scheme" gsettings set org.gnome.desktop.interface color-scheme "$gtk-color-scheme"
kvantummanager --set "$kvantum-theme" kvantummanager --set "$kvantum-theme"
} }
exec {
pamac-tray-plasma
blueman-applet
wlsunset -l 59.91:10.76
swayidle -w \
timeout 1200 'swaymsg exec "/usr/share/sway/scripts/keyboard-backlight-switch.sh off"' resume 'swaymsg exec "/usr/share/sway/scripts/keyboard-backlight-switch.sh on"' \
timeout 1200 'swaymsg exec "$locking"' \
timeout 1200 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
timeout 1200 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaymsg exec "$locking"' \
after-resume 'swaymsg "output * dpms on"' \
idlehint '240'
idlehack
# focus switch animations
flashfocus
# usb automount
pcmanfm -d
# workspace icons
sworkstyle -d -l error
# swappy notify
$script_path/screenshot-notify.sh
}
exec_always {
nm-applet
calcurse --daemon
# persist clipboard after close
pkill -x wl-clip-persist
wl-clip-persist --clipboard regular --all-mime-type-regex '(?i)^(?!image/x-inkscape-svg).+'
# mako daemon
pkill -x mako
$script_path/mako.sh --font "$term-font" --text-color "$text-color" --border-color "$accent-color" --background-color "$background-color" --border-size 3 --width 400 --height 200 --padding 20 --margin 20 --default-timeout 15000
# enable noisetorch
noisetorch -u
noisetorch -i
# update rofi theme
mkdir -p $HOME/.config/rofi/
echo $rofi_theme > $HOME/.config/rofi/config.rasi
}
# CONFIGS # CONFIGS
font xft:Cozette 12 font $gui-font
focus_follows_mouse no focus_follows_mouse no
mouse_warping none mouse_warping none
workspace_auto_back_and_forth no workspace_auto_back_and_forth no
@@ -225,7 +250,7 @@ mode "$mode_system" {
bindsym $mod+Shift+e mode "$mode_system" bindsym $mod+Shift+e mode "$mode_system"
# config tools # config tools
set $mode_config (b) bt, (c) cooling, (d) display, (g) gparted, (k) kvantum, (l) lxappearance, (m) manjaro, (p) packages, (q) qt5, (Q) qt6, (s) sound, (t) theme, (u) upgrade set $mode_config (b) bt, (c) cooling, (d) display, (g) gparted, (k) kvantum, (l) lxappearance, (m) manjaro, (p) packages, (q) qt5, (Q) qt6, (s) sound, (u) upgrade
mode "$mode_config" { mode "$mode_config" {
# bindsym b exec --no-startup-id blueman-manager, mode "default" # bindsym b exec --no-startup-id blueman-manager, mode "default"
bindsym c exec --no-startup-id coolercontrol, mode "default" bindsym c exec --no-startup-id coolercontrol, mode "default"
@@ -238,7 +263,6 @@ mode "$mode_config" {
bindsym q exec --no-startup-id qt5ct, mode "default" bindsym q exec --no-startup-id qt5ct, mode "default"
bindsym Shift+q exec --no-startup-id qt6ct, mode "default" bindsym Shift+q exec --no-startup-id qt6ct, mode "default"
bindsym s exec --no-startup-id pavucontrol-qt, mode "default" bindsym s exec --no-startup-id pavucontrol-qt, mode "default"
bindsym t exec --no-startup-id manjaro-sway-theme, mode "default"
bindsym u exec --no-startup-id $term_float topgrade --only config_update --only system, mode "default" bindsym u exec --no-startup-id $term_float topgrade --only config_update --only system, mode "default"
bindsym Return mode "default" bindsym Return mode "default"
@@ -261,7 +285,6 @@ mode "$mode_monitor" {
bindsym $mod+m mode "$mode_monitor" bindsym $mod+m mode "$mode_monitor"
# WINDOWS # WINDOWS
include /etc/sway/config.d/98-application-defaults.conf
for_window [all] title_format "%app_id - %title" for_window [all] title_format "%app_id - %title"
# set floating mode for generated windows # set floating mode for generated windows
@@ -301,7 +324,7 @@ for_window [app_id="floating_shell"] floating enable, border pixel 1
seat * shortcuts_inhibitor disable seat * shortcuts_inhibitor disable
# IO # IO
output * bg /usr/share/backgrounds/wallpapers-juhraya/Austria_by_Rutger_Heijmerikx.jpg fill output * bg $background fill
input type:keyboard { input type:keyboard {
xkb_layout "us" xkb_layout "us"
xkb_variant "altgr-weur" xkb_variant "altgr-weur"
+1 -18
View File
@@ -61,7 +61,7 @@
}, },
"include": "~/.config/waybar/local_config.jsonc", "include": "~/.config/waybar/local_config.jsonc",
"modules-right": ["tray", "pulseaudio", "custom/scratchpad", "custom/theme", "clock"], "modules-right": ["tray", "pulseaudio", "custom/scratchpad", "clock"],
"pulseaudio": { "pulseaudio": {
"scroll-step": 5, "scroll-step": 5,
"format": "{icon} {volume}%{format_source}", "format": "{icon} {volume}%{format_source}",
@@ -91,23 +91,6 @@
"on-click": "swaymsg 'scratchpad show'", "on-click": "swaymsg 'scratchpad show'",
"signal": 7 "signal": 7
}, },
"custom/theme": {
"format": "{icon}",
"interval": 300,
"tooltip": true,
"format-icons": {
"light": "",
"dark": "",
"auto_light": "󱩷",
"auto_dark": "󱩸"
},
"return-type": "json",
"exec-if": "/usr/share/sway/scripts/theme-toggle.sh check",
"exec": "/usr/share/sway/scripts/theme-toggle.sh status",
"on-click": "/usr/share/sway/scripts/theme-toggle.sh toggle",
"on-click-right": "/usr/share/sway/scripts/theme-toggle.sh auto-toggle",
"signal": 17
},
"tray": { "tray": {
"icon-size": 21, "icon-size": 21,
"spacing": 10 "spacing": 10