diff --git a/328p1aa/home/.config/sway-profiles/lockscript.d/328p1aa b/328p1aa/home/.config/sway-profiles/lockscript.d/328p1aa index d4f018c..be05876 100755 --- a/328p1aa/home/.config/sway-profiles/lockscript.d/328p1aa +++ b/328p1aa/home/.config/sway-profiles/lockscript.d/328p1aa @@ -1,3 +1,3 @@ #!/bin/bash -g213-led -a ffffff +#g213-led -a ffffff diff --git a/328p1aa/home/.config/sway-profiles/unlockscript.d/328p1aa b/328p1aa/home/.config/sway-profiles/unlockscript.d/328p1aa index d41fa98..76d1223 100755 --- a/328p1aa/home/.config/sway-profiles/unlockscript.d/328p1aa +++ b/328p1aa/home/.config/sway-profiles/unlockscript.d/328p1aa @@ -1,3 +1,3 @@ #!/bin/bash -g213-led -a ff00ee +#g213-led -a ff00ee diff --git a/de/home/.config/kdeglobals b/de/home/.config/kdeglobals index 2edddfb..8c12a8b 100644 --- a/de/home/.config/kdeglobals +++ b/de/home/.config/kdeglobals @@ -7,6 +7,9 @@ BackgroundNormal=94, 104, 109 [General] TerminalApplication=alacritty +[Icons] +Theme=breeze-dark + [KDE] ShowDeleteCommand=false @@ -35,10 +38,7 @@ Dialog Size=600,480 [PreviewSettings] EnableRemoteFolderThumbnail=false -MaximumRemoteSize=0 +MaximumRemoteSize=1073741824 [UiSettings] ColorScheme=Fusion - -[Icons] -Theme=breeze-dark diff --git a/de/home/.config/sway/config b/de/home/.config/sway/config index 6b89a35..a6da3dd 100644 --- a/de/home/.config/sway/config +++ b/de/home/.config/sway/config @@ -4,15 +4,14 @@ # Audio Configs include $HOME/.config/sway/audio-config.d/* - exec "paplay $HOME/.config/sway/assets/sounds/login.ogg &" # Variables - include $HOME/.config/sway/config-vars.d/* + include $HOME/.config/sway/config-vars${DESKTOP_MODE}.d/* include $HOME/.config/de-vars/colors/active/sway # Configs - include $HOME/.config/sway/config.d/* + include $HOME/.config/sway/config${DESKTOP_MODE}.d/* # Environment Setup exec "dbus-update-activation-environment --systemd --all" diff --git a/de/home/.config/sway/config-htpc.d/autostart b/de/home/.config/sway/config-htpc.d/autostart new file mode 100644 index 0000000..3482b9d --- /dev/null +++ b/de/home/.config/sway/config-htpc.d/autostart @@ -0,0 +1,14 @@ +exec_always 'killall autotiling;autotiling -l 2' +exec_always 'killall waybar;waybar --config ${HOME}/.config/waybar/config-htpc.jsonc --style ~/.config/waybar/style-htpc.css' + +exec --no-startup-id '/usr/libexec/xdg-desktop-portal-wlr -r' +exec 'nm-applet' +exec 'blueman-applet' +exec 'copyq --start-server' +exec 'swayidle' +exec '/usr/lib/$(uname -m)-linux-gnu/libexec/kdeconnectd' +exec '/usr/lib/$(uname -m)-linux-gnu/libexec/polkit-kde-authentication-agent-1' +exec 'keepassxc ~/Nextcloud/Security/Passwords.kdbx' +exec 'sleep 5;gtk-launch syncthing-gtk' +exec 'sleep 5;nextcloud --background' +exec 'wvkbd-mobintl --hidden -L 275' diff --git a/de/home/.config/sway/config-htpc.d/display b/de/home/.config/sway/config-htpc.d/display new file mode 100644 index 0000000..a56b4b3 --- /dev/null +++ b/de/home/.config/sway/config-htpc.d/display @@ -0,0 +1 @@ +include $HOME/.config/sway/config.d/display diff --git a/de/home/.config/sway/config-htpc.d/input b/de/home/.config/sway/config-htpc.d/input new file mode 100644 index 0000000..f9cb646 --- /dev/null +++ b/de/home/.config/sway/config-htpc.d/input @@ -0,0 +1,3 @@ +include $HOME/.config/sway/config.d/input + +exec_always "sleep 3;killall makima;${HOME}/.local/bin/makima" diff --git a/de/home/.config/sway/config-htpc.d/keys_launch b/de/home/.config/sway/config-htpc.d/keys_launch new file mode 100644 index 0000000..ba457d7 --- /dev/null +++ b/de/home/.config/sway/config-htpc.d/keys_launch @@ -0,0 +1,8 @@ +include $HOME/.config/sway/config.d/keys_launch + +# On-Screen Keyboard + bindsym $mod+Shift+k exec 'killall -34 wvkbd-mobintl' + +# Notifications + bindsym --no-warn $mod+Shift+n exec 'swaymsg fullscreen disable;swaync-client -t' + diff --git a/de/home/.config/sway/config-htpc.d/keys_other b/de/home/.config/sway/config-htpc.d/keys_other new file mode 100644 index 0000000..5b35fff --- /dev/null +++ b/de/home/.config/sway/config-htpc.d/keys_other @@ -0,0 +1 @@ +include $HOME/.config/sway/config.d/keys_other diff --git a/de/home/.config/sway/config-htpc.d/keys_special b/de/home/.config/sway/config-htpc.d/keys_special new file mode 100644 index 0000000..f14468f --- /dev/null +++ b/de/home/.config/sway/config-htpc.d/keys_special @@ -0,0 +1 @@ +include $HOME/.config/sway/config.d/keys_special diff --git a/de/home/.config/sway/config-htpc.d/keys_windows b/de/home/.config/sway/config-htpc.d/keys_windows new file mode 100644 index 0000000..d0233da --- /dev/null +++ b/de/home/.config/sway/config-htpc.d/keys_windows @@ -0,0 +1 @@ +include $HOME/.config/sway/config.d/keys_windows diff --git a/de/home/.config/sway/config-htpc.d/layout b/de/home/.config/sway/config-htpc.d/layout new file mode 100644 index 0000000..e42c51b --- /dev/null +++ b/de/home/.config/sway/config-htpc.d/layout @@ -0,0 +1,10 @@ +# Border styling + default_border none + +# Borders + client.focused $color1 $color1 $color0 $color9 + client.focused_inactive $color9 $color9 $color1 $color9 + client.unfocused $color9 $color9 $color1 $color9 + +# Blur + blur enable diff --git a/de/home/.config/sway/config-htpc.d/window_rules b/de/home/.config/sway/config-htpc.d/window_rules new file mode 100644 index 0000000..0551984 --- /dev/null +++ b/de/home/.config/sway/config-htpc.d/window_rules @@ -0,0 +1 @@ +include $HOME/.config/sway/config.d/window_rules diff --git a/de/home/.config/sway/config-htpc.d/workspaces b/de/home/.config/sway/config-htpc.d/workspaces new file mode 100644 index 0000000..233e5d7 --- /dev/null +++ b/de/home/.config/sway/config-htpc.d/workspaces @@ -0,0 +1 @@ +include $HOME/.config/sway/config.d/workspaces diff --git a/de/home/.config/sway/config-vars-htpc.d/keys b/de/home/.config/sway/config-vars-htpc.d/keys new file mode 100644 index 0000000..a95e1a4 --- /dev/null +++ b/de/home/.config/sway/config-vars-htpc.d/keys @@ -0,0 +1 @@ +include ${HOME}/.config/sway/config-vars.d/keys diff --git a/de/home/.config/sway/config-vars-htpc.d/programs b/de/home/.config/sway/config-vars-htpc.d/programs new file mode 100644 index 0000000..61f2a84 --- /dev/null +++ b/de/home/.config/sway/config-vars-htpc.d/programs @@ -0,0 +1,5 @@ +# Terminal +set $term alacritty + +# Launcher +set $menu ${HOME}/.config/sway/scripts/sway-htpc-menu diff --git a/de/home/.config/sway/config.d/window_rules b/de/home/.config/sway/config.d/window_rules index 0ecbe91..b30b680 100644 --- a/de/home/.config/sway/config.d/window_rules +++ b/de/home/.config/sway/config.d/window_rules @@ -2,14 +2,20 @@ include $HOME/.config/sway/config.d/window_rules.d/* set { + $ii inhibit_idle focus $popup floating enable; shadows enable; border pixel 1; sticky enable $game inhibit_idle focus; floating enable; border none; fullscreen enable; shadows disable $scratch move scratchpad, floating enable, scratchpad hide - } for_window { +#ii - inhibit idle focus + [app_id="^Kodi$"] $ii + [app_id="^firefox$"] $ii + [app_id="^com.github.iwalton3.jellyfin-media-player$"] $ii + [class="^feishin$"] $ii + #popup - float, sticky [app_id="libreoffice-startcenter" title="$Save^"] $popup [title="^zoom$" class="zoom"] $popup diff --git a/de/home/.config/sway/scripts/sway-htpc-menu b/de/home/.config/sway/scripts/sway-htpc-menu new file mode 100755 index 0000000..eaf1649 --- /dev/null +++ b/de/home/.config/sway/scripts/sway-htpc-menu @@ -0,0 +1,24 @@ +#!/bin/bash + +swaymsg fullscreen disable + +if pgrep wofi;then + killall wofi +fi + +sel_app=$(wofi --show drun -O alphabetical -a --insensitive --allow-images) +[[ -z ${sel_app} ]] && exit 1 +app_name=$(basename "${sel_app[0]}") + +ws_nums=($(swaymsg -t get_workspaces | jq -r '.[].num')) + +for n in {1..10};do + if [[ ! $( printf "%s\n" ${ws_nums[@]} | fgrep -w ${n} ) ]];then + swaymsg workspace "${n}" + notify-send "Launching ${app_name}" + ${sel_app[@]} + exit + fi +done + +notify-send "All workspaces are currently in use" diff --git a/de/home/.config/swayidle/config b/de/home/.config/swayidle/config index 510902b..77ecde7 100644 --- a/de/home/.config/swayidle/config +++ b/de/home/.config/swayidle/config @@ -1,5 +1,7 @@ +lock 'sp-lock' timeout 150 'brightnessctl g | tee $HOME/.config/swayidle/brightness; brightnessctl s 0' resume 'brightnessctl s $(cat $HOME/.config/swayidle/brightness); rm $HOME/.config/swayidle/brightness' timeout 300 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' timeout 600 'swaymsg "output * power on";sleep 3;/usr/bin/sp-lock' timeout 1800 'swaymsg "output * power on";sleep 3;systemctl suspend' -before-sleep '/usr/bin/sp-lock' +#before-sleep '/usr/bin/sp-lock' +before-sleep 'loginctl lock-session' diff --git a/de/home/.config/waybar/config-htpc.jsonc b/de/home/.config/waybar/config-htpc.jsonc new file mode 100644 index 0000000..d3bc84c --- /dev/null +++ b/de/home/.config/waybar/config-htpc.jsonc @@ -0,0 +1,220 @@ +// -*- mode: jsonc -*- +{ + // "layer": "top", // Waybar at top layer + // "position": "bottom", // Waybar position (top|bottom|left|right) + "height": 40, // Waybar height (to be removed for auto height) + // "width": 1280, // Waybar width + "spacing": 4, // Gaps between modules (4px) + // Choose the order of the modules + "modules-left": [ + "custom/power", + "clock", + "sway/workspaces", + "sway/window" + ], + "modules-center": [ + "custom/feishin" + ], + "modules-right": [ + "custom/gamemode", + "idle_inhibitor", + "pulseaudio", + "network", + "tray" + ], + // Modules configuration + // "sway/workspaces": { + // "disable-scroll": true, + // "all-outputs": true, + // "warp-on-scroll": false, + // "format": "{name}: {icon}", + // "format-icons": { + // "1": "", + // "2": "", + // "3": "", + // "4": "", + // "5": "", + // "urgent": "", + // "focused": "", + // "default": "" + // } + // }, + "keyboard-state": { + "numlock": true, + "capslock": true, + "format": "{name} {icon}", + "format-icons": { + "locked": "", + "unlocked": "" + } + }, + "sway/mode": { + "format": "{}" + }, + "sway/window": { + "format":"{}", + "max-length":30, + "rewrite":{ + "(.*) — Mozilla Firefox":" $1", + "Alacritty":" ", + "(.*) - KeePassXC":" $1", + "(.*) — Dolphin":" $1", + "Jellyfin Media Player":" " + } + }, + "sway/scratchpad": { + "format": "{icon} {count}", + "show-empty": false, + "format-icons": ["", ""], + "tooltip": true, + "tooltip-format": "{app}: {title}" + }, + "mpd": { + "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", + "format-disconnected": "Disconnected ", + "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", + "unknown-tag": "N/A", + "interval": 5, + "consume-icons": { + "on": " " + }, + "random-icons": { + "off": " ", + "on": " " + }, + "repeat-icons": { + "on": " " + }, + "single-icons": { + "on": "1 " + }, + "state-icons": { + "paused": "", + "playing": "" + }, + "tooltip-format": "MPD (connected)", + "tooltip-format-disconnected": "MPD (disconnected)" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + // "icon-size": 21, + "spacing": 10 + }, + "clock": { + // "timezone": "America/New_York", + "tooltip-format": "{:%Y %B}\n{calendar}", + "format-alt": "{:%Y-%m-%d}" + }, + "cpu": { + "format": "{usage}% ", + "tooltip": false + }, + "memory": { + "format": "{}% " + }, + "temperature": { + // "thermal-zone": 2, + // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", + "critical-threshold": 80, + // "format-critical": "{temperatureC}°C {icon}", + "format": "{temperatureC}°C {icon}", + "format-icons": ["", "", ""] + }, + "backlight": { + // "device": "acpi_video1", + "format": "{percent}% {icon}", + "format-icons": ["", "", "", "", "", "", "", "", ""] + }, + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-full": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""] + }, + "battery#bat2": { + "bat": "BAT2" + }, + "power-profiles-daemon": { + "format": "{icon}", + "tooltip-format": "Power profile: {profile}\nDriver: {driver}", + "tooltip": true, + "format-icons": { + "default": "", + "performance": "", + "balanced": "", + "power-saver": "" + } + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": "", + "format-ethernet": "🖧", + "tooltip-format": "{essid} | {ipaddr}", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "", + "on-click": "nm-connection-editor" + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{volume}% {icon}", + "format-bluetooth": "{volume}% {icon}", + "format-bluetooth-muted": " {icon}", + "format-muted": " {format_source}", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "pavucontrol-qt" + }, + "custom/media": { + "format": "{icon} {}", + "return-type": "json", + "max-length": 40, + "format-icons": { + "spotify": "", + "default": "🎜" + }, + "escape": true, + "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder + // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name + }, + "custom/power": { + "format": "  ", + "on-click": "swaymsg exec '${HOME}/.config/sway/scripts/powermenu'" + }, + "custom/gamemode": { + "format": "  ", + "on-click": "${HOME}/.config/waybar/scripts/gamemode.sh" + }, + "custom/feishin": { + "format": "{}", + "return-type": "json", + "interval": 5, + "exec": "$HOME/.config/waybar/scripts/feishin.sh", + "exec-if": "pgrep feishin", + "on-click":"swaymsg [class='feishin'] focus", + "escape": true + } +} diff --git a/de/home/.config/waybar/style-htpc.css b/de/home/.config/waybar/style-htpc.css new file mode 100644 index 0000000..b710cf3 --- /dev/null +++ b/de/home/.config/waybar/style-htpc.css @@ -0,0 +1,231 @@ +* { + font-family: FontAwesome, Overpass; +/* font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;*/ + font-size: 18px; +} + + +window#waybar { + background-color: rgba(43, 48, 59, 0.5); + color: #ffffff; + transition-property: background-color; + transition-duration: .5s; +} + +window#waybar.hidden { + opacity: 0.2; +} + +/* +window#waybar.empty { + background-color: transparent; +} +window#waybar.solo { + background-color: #FFFFFF; +} +*/ + +window#waybar.termite { + background-color: #3F3F3F; +} + +window#waybar.chromium { + background-color: #000000; + border: none; +} + +button { + /* Use box-shadow instead of border so the text isn't offset */ + /* Avoid rounded borders under each button name */ + border: none; + border-radius: 0; +} + +/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ +button:hover { + background: inherit; +/* box-shadow: inset 0 -3px #ffffff;*/ +} + +/* you can set a style on hover for any module like this */ +#pulseaudio:hover { + background-color: #a37800; +} + +#workspaces button { + padding: 0 5px; + background-color: transparent; + color: #ffffff; +} + +#workspaces button:hover { + background: rgba(0, 0, 0, 0.2); +} + +#workspaces button.focused { + background-color: #64727D; +/* box-shadow: inset 0 -3px #ffffff;*/ +} + +#workspaces button.urgent { + background-color: #eb4d4b; +} + +#mode { + background-color: #64727D; + box-shadow: inset 0 -3px #ffffff; +} + +#clock, +#battery, +#cpu, +#memory, +#disk, +#temperature, +#backlight, +#network, +#pulseaudio, +#wireplumber, +#custom-media, +#tray, +#mode, +#idle_inhibitor, +#scratchpad, +#custom-power, +#custom-gamemode, +#custom-feishin, +#mpd { + padding: 0 10px; + color: #ffffff; +} + +#window, +#workspaces { + margin: 0 4px; +} + +/* If workspaces is the leftmost module, omit left margin */ +.modules-left > widget:first-child > #workspaces { + margin-left: 0; +} + +/* If workspaces is the rightmost module, omit right margin */ +.modules-right > widget:last-child > #workspaces { + margin-right: 0; +} + +/*#clock { + background-color: #64727D; +}*/ + +#battery { + background-color: #ffffff; + color: #000000; +} + +#battery.charging, #battery.plugged { + color: #ffffff; + background-color: #26A65B; +} + +@keyframes blink { + to { + background-color: #ffffff; + color: #000000; + } +} + +label:focus { + background-color: #000000; +} + +/*#network { + background-color: #2980b9; +} + +#network.disconnected { + background-color: #f53c3c; +}*/ + +#pulseaudio { + color: #FFFFFF; +} + +#pulseaudio.muted { + color: #FFFFFF; +} + +#wireplumber { + background-color: #fff0f5; + color: #000000; +} + +#wireplumber.muted { + background-color: #f53c3c; +} + +/*#tray { + background-color: #2980b9; +}*/ + +#tray > .passive { + -gtk-icon-effect: dim; +} + +#tray > .needs-attention { + -gtk-icon-effect: highlight; +} + +/*#idle_inhibitor { + background-color: #2d3436; +}*/ + +#idle_inhibitor.activated { + color: #2d3436; +} + +#mpd { + background-color: #66cc99; + color: #2a5c45; +} + +#mpd.disconnected { + background-color: #f53c3c; +} + +#mpd.stopped { + background-color: #90b1b1; +} + +#mpd.paused { + background-color: #51a37a; +} + +#scratchpad { + background: rgba(0, 0, 0, 0.2); +} + +#scratchpad.empty { + background-color: transparent; +} + +#privacy { + padding: 0; +} + +#privacy-item { + padding: 0 5px; + color: white; +} + +#privacy-item.screenshare { + background-color: #cf5700; +} + +#privacy-item.audio-in { + background-color: #1ca000; +} + +#privacy-item.audio-out { + background-color: #0069d4; +}