From f13d1d134a1ce4e1eeff3610dd2cf8865f117f33 Mon Sep 17 00:00:00 2001 From: Cory Sands Date: Sat, 3 May 2025 16:47:58 -0500 Subject: [PATCH] Added watson config --- .config/alacritty/alacritty.toml | 11 + .config/alacritty/everforest_light.toml | 28 +++ .config/aliases | 5 +- .config/hypr/conf/binds.conf | 4 +- .config/hypr/hyprland.conf | 2 +- .config/kitty/kitty.conf | 1 + .config/sway/config | 23 +- .config/watson/config | 2 + .config/watson/frames | 10 + .config/watson/state | 1 + .config/watson/state.bak | 5 + .config/waybar-sway/config.jsonc | 135 +++++++++++ .config/waybar-sway/power_menu.xml | 28 +++ .config/waybar-sway/style.css | 290 ++++++++++++++++++++++++ .config/waybar/config.jsonc | 3 +- 15 files changed, 530 insertions(+), 18 deletions(-) create mode 100644 .config/alacritty/alacritty.toml create mode 100644 .config/alacritty/everforest_light.toml create mode 100644 .config/watson/config create mode 100644 .config/watson/frames create mode 100644 .config/watson/state create mode 100644 .config/watson/state.bak create mode 100644 .config/waybar-sway/config.jsonc create mode 100644 .config/waybar-sway/power_menu.xml create mode 100644 .config/waybar-sway/style.css diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml new file mode 100644 index 0000000..653589a --- /dev/null +++ b/.config/alacritty/alacritty.toml @@ -0,0 +1,11 @@ +[general] +import = [ +"./everforest_light.toml" +] + +[font] +normal = {family = "CaskaydiaMonoNerdFont"} +size = 14 + +[cursor] +smooth_motion_factor = 0.8 diff --git a/.config/alacritty/everforest_light.toml b/.config/alacritty/everforest_light.toml new file mode 100644 index 0000000..3c720a2 --- /dev/null +++ b/.config/alacritty/everforest_light.toml @@ -0,0 +1,28 @@ +# Colors (Everforest Light) + +# Default colors +[colors.primary] +background = '#fdf6e3' +foreground = '#5c6a72' + +# Normal colors +[colors.normal] +black = '#5c6a72' +red = '#f85552' +green = '#8da101' +yellow = '#dfa000' +blue = '#3a94c5' +magenta = '#df69ba' +cyan = '#35a77c' +white = '#e0dcc7' + +# Bright Colors +[colors.bright] +black = '#5c6a72' +red = '#f85552' +green = '#8da101' +yellow = '#dfa000' +blue = '#3a94c5' +magenta = '#df69ba' +cyan = '#35a77c' +white = '#e0dcc7' diff --git a/.config/aliases b/.config/aliases index b1a3baf..e72afe0 100644 --- a/.config/aliases +++ b/.config/aliases @@ -1,8 +1,6 @@ #!/usr/bin/fish alias rm="gio trash" -alias din="sudo dnf install" -alias dre="sudo dnf remove" -alias dup="sudo dnf update" +alias tt="watson" alias pacin="sudo pacman -S" alias pacre="sudo pacman -R" alias pacup="sudo pacman -Syu" @@ -13,6 +11,7 @@ alias labconf="nvim ~/dotfiles/.config/labwc/rc.xml" alias kanshiconf="nvim ~/dotfiles/.config/kanshi/config" alias waybarconf="nvim ~/dotfiles/.config/waybar/config.jsonc" alias aliasconf="nvim ~/dotfiles/.config/aliases" +alias acconf="nvim ~/dotfiles/.config/alacritty/alacritty.toml" alias kittyconf="nvim ~/dotfiles/.config/kitty/kitty.conf" alias fishconf="nvim ~/dotfiles/.config/fish/config.fish" alias roficonf="nvim ~/dotfiles/.config/rofi/config.rasi" diff --git a/.config/hypr/conf/binds.conf b/.config/hypr/conf/binds.conf index 6553f67..948188c 100644 --- a/.config/hypr/conf/binds.conf +++ b/.config/hypr/conf/binds.conf @@ -12,8 +12,8 @@ bind = Alt, F4, killactive, bind = $mainMod, END, exit, bind = $mainMod, Escape, exec, hyprlock bind = $mainMod, F, fullscreen -bind = $mainMod Shift, $mainMod_L, exec, pkill rofi || rofi -show run -theme skycontrast -monitor DP-1 -bind = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -theme skycontrast -monitor DP-1 +bind = Super Shift, Super_L, exec, pkill rofi || rofi -show run -theme skycontrast -monitor DP-1 +bind = Super, Super_L, exec, pkill rofi || rofi -show drun -theme skycontrast -monitor DP-1 bind = $mainMod Shift, w, exec, ~/Scripts/restart-waybar.sh bind = $mainMod, P, pseudo bind = $mainMod, V, togglefloating diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 7c1ae64..6322a41 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -1,4 +1,4 @@ -$mainMod = SUPER +$mainMod = Alt $conf = ~/.config/hypr/conf/ # Config path diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index be8562c..0692de0 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -3,6 +3,7 @@ background_opacity 0.85 font_size 14 shell /usr/bin/fish cursor_trail 3 +cursor_trail_decay 0.1 0.25 # BEGIN_KITTY_THEME # Everforest Light Hard diff --git a/.config/sway/config b/.config/sway/config index 7b9053a..8924820 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -1,13 +1,15 @@ +# Autostart +exec waybar + # Variables -set $mod Mod4 +set $mod Mod1 set $term kitty set $filemanager kitty -e yazi set $browser librewolf -set $menu rofi -show drun - # General floating_modifier $mod normal +default_border normal 4 # Output @@ -29,10 +31,10 @@ output HDMI-A-1 { # Input configuration input "type:keyboard" xkb_options caps:escape -input "type:mouse" { +input "type:pointer" { natural_scroll disabled accel_profile "flat" - pointer_accel -1 + pointer_accel -0.35 } @@ -42,7 +44,7 @@ input "type:mouse" { bindsym $mod+Return exec $term bindsym $mod+Shift_R exec $filemanager bindsym $mod+Control_R exec $browser - bindsym Menu exec $menu + bindsym Super_L exec pkill rofi || rofi -show run -theme skycontrast -monitor DP-1 ## Utilities @@ -56,14 +58,13 @@ input "type:mouse" { ## Window Management bindsym $mod+e kill - bindsym $mod+b splith - bindsym $mod+v splitv - bindsym $mod+s layout stacking - bindsym $mod+w layout tabbed + bindsym $mod+s splitv + bindsym $mod+d splith + bindsym $mod+w layout toggle split tabbed bindsym $mod+f fullscreen bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle - bindsym $mod+a focus parent +# bindsym $mod+a focus parent bindsym $mod+r reload bindsym $mod+End exec swaymsg exit diff --git a/.config/watson/config b/.config/watson/config new file mode 100644 index 0000000..9f05205 --- /dev/null +++ b/.config/watson/config @@ -0,0 +1,2 @@ +[options] +time_format = %-I:%M %p diff --git a/.config/watson/frames b/.config/watson/frames new file mode 100644 index 0000000..2b005bd --- /dev/null +++ b/.config/watson/frames @@ -0,0 +1,10 @@ +[ + [ + 1746308244, + 1746308348, + "rating", + "f5cc3ee491824433a5edd201cd42cdb5", + [], + 1746308348 + ] +] \ No newline at end of file diff --git a/.config/watson/state b/.config/watson/state new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.config/watson/state @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/.config/watson/state.bak b/.config/watson/state.bak new file mode 100644 index 0000000..a52e3a9 --- /dev/null +++ b/.config/watson/state.bak @@ -0,0 +1,5 @@ +{ + "project": "rating", + "start": 1746308244, + "tags": [] +} \ No newline at end of file diff --git a/.config/waybar-sway/config.jsonc b/.config/waybar-sway/config.jsonc new file mode 100644 index 0000000..5646bb0 --- /dev/null +++ b/.config/waybar-sway/config.jsonc @@ -0,0 +1,135 @@ +// -*- mode: jsonc -*- +{ + // "layer": "top", // Waybar at top layer + // "position": "bottom", // Waybar position (top|bottom|left|right) + "output": "DP-1", + "position": "top", + "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/os_button", + "hyprland/workspaces", + ], + "modules-center": [ + "hyprland/window", + ], + "modules-right": [ + "tray", + "idle_inhibitor", + "pulseaudio", + "network", + "custom/notification", + "clock", + "custom/power" + ], + "custom/os_button": { + "format": "󰣇", + "on-click": "rofi -show drun -theme skycontrast", + "tooltip": false + }, + "custom/notification": { + "tooltip": false, + "format": "{icon}", + "format-icons": { + "notification": "", + "none": "", + "dnd-notification": "", + "dnd-none": "", + "inhibited-notification": "", + "inhibited-none": "", + "dnd-inhibited-notification": "", + "dnd-inhibited-none": "" + }, + "return-type": "json", + "exec-if": "which swaync-client", + "exec": "swaync-client -swb", + "on-click": "swaync-client -t -sw", + "on-click-right": "swaync-client -d -sw", + "escape": true + }, + "wlr/taskbar": { + "format": "{icon}", + "icon-size": 28, + "spacing": 3, + "on-click-middle": "close", + "tooltip-format": "{title}", + "ignore-list": [], + "on-click": "activate" + }, + "hyprland/workspaces": { + "persistent-workspaces": { + "DP-1": [1,2,3,4,5], + } + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + "icon-size": 22, + "spacing": 10 + }, + "clock": { + "format": "{:%I:%M %p}", + "timezone": "America/Chicago", + "tooltip-format": "{:%Y %B}\n{calendar}", + "format-alt": "{:%Y-%m-%d}" + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": "({signalStrength}%) ", + "format-ethernet": "", + "tooltip-format": "{ifname} via {gwaddr}", + "format-linked": "{ifname} (No IP)", + "format-disconnected": "⚠", + "format-alt": "{ifname}: {ipaddr}/{cidr}" + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{volume}% {icon} {format_source}", + "format-bluetooth": "{volume}% {icon} {format_source}", + "format-bluetooth-muted": " {icon} {format_source}", + "format-muted": " {format_source}", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "pavucontrol" + }, + "custom/media": { + "format": "{icon} {text}", + "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" : "⏻ ", + "tooltip": false, + "menu": "on-click", + "menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder + "menu-actions": { + "poweroff": "poweroff", + "reboot": "reboot", + "suspend": "systemctl suspend", + "logout": "hyprctl dispatch exit" + } + } +} diff --git a/.config/waybar-sway/power_menu.xml b/.config/waybar-sway/power_menu.xml new file mode 100644 index 0000000..c836c83 --- /dev/null +++ b/.config/waybar-sway/power_menu.xml @@ -0,0 +1,28 @@ + + + + + + Power Off + + + + + Reboot + + + + + Suspend + + + + + + + + Logout + + + + diff --git a/.config/waybar-sway/style.css b/.config/waybar-sway/style.css new file mode 100644 index 0000000..38606a2 --- /dev/null +++ b/.config/waybar-sway/style.css @@ -0,0 +1,290 @@ +* { + font-family: "CaskaydiaMono Nerd Font", monospace; + font-weight: bold; + font-size: 16px; + color: rgba(65, 65, 65, 1); +} + +window#waybar { + background-color: rgba(180, 180, 180, 0.5); + border: solid rgba(70, 70, 90, 0.90); + border-width: 2 0 2 0; + transition-property: background-color; + transition-duration: .5s; +} + +window#waybar.hidden { + opacity: 0.2; +} + +#custom-os_button { + padding: 0 12px 0 7px; + font-size: 30px; +} + +#custom-notification { + padding: 0 5px; +} + +#custom-power { + background-color: lightgray; + border-radius: 100px; + margin: 5px 10px 5px 5px; + padding: 1px 1px 1px 6px; +} + +.modules-left { + padding-right: 15px; +} + +.modules-right { + padding-left: 15px; +} + +#workspaces button label { + font-size: 20px; + color: rgba(65, 65, 65, 0.9); + padding: 0 10px 0 10px; + border: solid 2px transparent; +} + +#workspaces button.empty label { + background: transparent; + border-color: transparent; +} + +#workspaces button label { + background: white; + border-color: transparent; +} + +#workspaces button.visible label { + color: black; + background: lightskyblue; + border: solid rgba(70, 70, 90, 1); + padding: 0 10px 0 10px; + border-width: 0 2px 0 2px; +} + +.modules-left, .modules-right { + background: rgba(70, 70, 90, 0.20); + border: solid rgba(70, 70, 90, 0.95); + border-width: 2 2 2 0; + border-radius: 0 8px 8px 0; +} + +.modules-right { + border-radius: 8px 0 0 8px; + border-width: 2 0 2 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 */ + box-shadow: inset 0 -3px transparent; + /* Avoid rounded borders under each button name */ + border: none; + border-radius: 0; +} + +button:hover { + background: inherit; + box-shadow: inset 0 -3px #ffffff; +} + +/* you can set a style on hover for any module like this */ +#custom-notification:hover, +#idle_inhibitor:hover, +#network:hover, +#clock:hover, +#pulseaudio:hover { + background-color: white; +} + +#workspaces button { + padding: 0; + 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, +#power-profiles-daemon, +#mpd { + padding: 0 10px; +} + +/* If workspaces is the leftmost module, omit left margin */ + +/* If workspaces is the rightmost module, omit right margin */ +.modules-right > widget:last-child > #workspaces { + margin-right: 0; +} + +@keyframes blink { + to { + background-color: #ffffff; + color: #000000; + } +} + +/* Using steps() instead of linear as a timing function to limit cpu usage */ +#battery.critical:not(.charging) { + background-color: #f53c3c; + color: #ffffff; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: steps(12); + animation-iteration-count: infinite; + animation-direction: alternate; +} + +#power-profiles-daemon { + padding-right: 15px; +} + +#power-profiles-daemon.performance { + background-color: #f53c3c; + color: #ffffff; +} + +#power-profiles-daemon.balanced { + background-color: #2980b9; + color: #ffffff; +} + +#power-profiles-daemon.power-saver { + background-color: #2ecc71; + color: #000000; +} + +label:focus { + background-color: #000000; +} + +#tray > .passive { + -gtk-icon-effect: dim; +} + +#tray > .needs-attention { + -gtk-icon-effect: highlight; + background-color: #eb4d4b; +} + +#mpd { + background-color: #66cc99; + color: #2a5c45; +} + +#mpd.disconnected { + background-color: #f53c3c; +} + +#mpd.stopped { + background-color: #90b1b1; +} + +#mpd.paused { + background-color: #51a37a; +} + +#language { + background: #00b093; + color: #740864; + padding: 0 5px; + margin: 0 5px; + min-width: 16px; +} + +#keyboard-state { + background: #97e1ad; + color: #000000; + padding: 0 0px; + margin: 0 5px; + min-width: 16px; +} + +#keyboard-state > label { + padding: 0 5px; +} + +#keyboard-state > label.locked { + background: rgba(0, 0, 0, 0.2); +} + +#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; +} diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index 89f616a..5646bb0 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -75,7 +75,8 @@ "spacing": 10 }, "clock": { - // "timezone": "America/New_York", + "format": "{:%I:%M %p}", + "timezone": "America/Chicago", "tooltip-format": "{:%Y %B}\n{calendar}", "format-alt": "{:%Y-%m-%d}" },