New backup 2025-01-21 22:59:18

This commit is contained in:
Penelope Gwen 2025-01-21 22:59:18 -08:00
parent 23e21dc455
commit a3bc9cc35f
21 changed files with 540 additions and 11 deletions

View file

@ -1,3 +1,3 @@
#!/bin/bash
g213-led -a ffffff
#g213-led -a ffffff

View file

@ -1,3 +1,3 @@
#!/bin/bash
g213-led -a ff00ee
#g213-led -a ff00ee

View file

@ -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

View file

@ -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"

View file

@ -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'

View file

@ -0,0 +1 @@
include $HOME/.config/sway/config.d/display

View file

@ -0,0 +1,3 @@
include $HOME/.config/sway/config.d/input
exec_always "sleep 3;killall makima;${HOME}/.local/bin/makima"

View file

@ -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'

View file

@ -0,0 +1 @@
include $HOME/.config/sway/config.d/keys_other

View file

@ -0,0 +1 @@
include $HOME/.config/sway/config.d/keys_special

View file

@ -0,0 +1 @@
include $HOME/.config/sway/config.d/keys_windows

View file

@ -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

View file

@ -0,0 +1 @@
include $HOME/.config/sway/config.d/window_rules

View file

@ -0,0 +1 @@
include $HOME/.config/sway/config.d/workspaces

View file

@ -0,0 +1 @@
include ${HOME}/.config/sway/config-vars.d/keys

View file

@ -0,0 +1,5 @@
# Terminal
set $term alacritty
# Launcher
set $menu ${HOME}/.config/sway/scripts/sway-htpc-menu

View file

@ -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

View file

@ -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"

View file

@ -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'

View file

@ -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": "<span style=\"italic\">{}</span>"
},
"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": "<span color=\"#f53c3c\"></span> ",
"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": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"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
}
}

View file

@ -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;
}