Update sway config

This commit is contained in:
Nathan Anderson 2024-09-02 14:45:05 -06:00
parent 82b87e3e13
commit cc8add034d
11 changed files with 335 additions and 182 deletions

View File

@ -7,49 +7,51 @@
@define-color egg_shell #f8f1dd; @define-color egg_shell #f8f1dd;
* { * {
border: none; border: none;
border-radius: 0; border-radius: 0;
margin: 0; margin: 0;
padding: 0; padding: 0;
color: @egg_shell; color: @egg_shell;
font-family: "GohuFont 14 Nerd Font"; font-family: "GohuFont 14 Nerd Font";
font-size: 16px; font-size: 16px;
font-weight: normal; font-weight: normal;
} }
/* The whole bar */ /* The whole bar */
#waybar { #waybar {
background: transparent; background: transparent;
background-color: transparent; background-color: transparent;
} }
#taskbar { #taskbar {
background: transparent; background: transparent;
color: @egg_shell; color: @egg_shell;
} }
#taskbar button { #taskbar button {
padding-left: 3px; padding-left: 3px;
padding-right: 3px; padding-right: 3px;
margin-left: 3px; margin-left: 3px;
margin-right: 3px; margin-right: 3px;
color: transparent; color: transparent;
border-bottom: 2px solid; border-bottom: 2px solid;
} }
#taskbar button.active { #taskbar button.active {
color: @celeste; color: @celeste;
} }
.modules-left, .modules-left,
.modules-right, .modules-right,
.modules-center { .modules-center {
margin: 8px 8px 1px 8px; margin: 8px 8px 1px 8px;
background: transparent; background: transparent;
color: @egg_shell; color: @egg_shell;
background-color: @english_violet; background-color: @english_violet;
border-radius: 25px; border-radius: 25px;
padding: 0px 10px 0px 10px; padding: 0px 10px 0px 10px;
} }
/* Every modules */ /* Every modules */
#clock, #clock,
#cpu, #cpu,
@ -58,8 +60,8 @@
#network, #network,
#pulseaudio, #pulseaudio,
#taskbar { #taskbar {
padding:0.5rem 0.6rem; padding: 0.5rem 0.6rem;
margin: 1px 0px; margin: 1px 0px;
} }
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
@ -67,7 +69,7 @@
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#clock { #clock {
min-width: 140px; min-width: 140px;
} }
#cpu.warning, #cpu.warning,
@ -75,24 +77,24 @@
#memory.warning, #memory.warning,
#memory.critical, #memory.critical,
#network.disconnected { #network.disconnected {
color: @indian_red; color: @indian_red;
} }
#pulseaudio { #pulseaudio {
padding-top:6px; padding-top: 6px;
} }
#pulseaudio.muted { #pulseaudio.muted {
color: @celeste; color: @celeste;
} }
#custom-spotify { #custom-spotify {
color: @celadon; color: @celadon;
} }
#custom-power { #custom-power {
margin-left:15px; margin-left: 15px;
margin-right:15px; margin-right: 15px;
font-size:15px; font-size: 15px;
color: @indian_red; color: @indian_red;
} }

View File

@ -1,19 +1,19 @@
font=UbuntuMono 12.5 font=Overpass Nerd Font 20
background-color=#404552 background-color=#24273a
text-color=#e5e9f0 text-color=#cad3f5
width=315 width=630
height=200 height=400
padding=10 padding=10
margin=10 margin=20
progress-color=over #eceff480 progress-color=over #eceff480
icon-path=/usr/share/icons/Arc-X-D icon-path=/usr/share/icons/Arc-X-D
max-icon-size=70 max-icon-size=140
layer=overlay layer=overlay
border-size=5 border-size=5
border-radius=0 border-radius=8
border-color=#5294e2 border-color=#b7bdf8
default-timeout=5000 default-timeout=5000

View File

@ -225,7 +225,7 @@ bindsym $mod+r mode "resize"
# #
# Screenshots # Screenshots
# #
bindsym $mod+Shift+p exec /usr/share/sway/scripts/grimshot --notify save output bindsym $mod+Shift+p exec ~/.config/sway/scripts/screenshot.sh clipboard
bindsym $mod+p exec ~/.config/sway/scripts/screenshot.sh bindsym $mod+p exec ~/.config/sway/scripts/screenshot.sh
# #
# Keybindings List # Keybindings List

View File

@ -9,5 +9,5 @@
# Wacom Tablet - Example # Wacom Tablet - Example
# input "1386:884:Wacom_Intuos_S_Pad" map_to_output HDMI-A-1 # input "1386:884:Wacom_Intuos_S_Pad" map_to_output HDMI-A-1
# input "1386:884:Wacom_Intuos_S_Pen" map_to_output HDMI-A-1 # input "1386:884:Wacom_Intuos_S_Pen" map_to_output HDMI-A-1
output DP-3 resolution 2560x1440@164.956Hz position 0,0 output DP-3 resolution 3840x2160@240.084Hz position 0,0
output * adaptive_sync off output * adaptive_sync off

View File

@ -41,8 +41,8 @@ font pango:Overpass Nerd Font 12
smart_borders on smart_borders on
# Set wallpaper: # Set wallpaper:
#exec_always swaybg -i /home/nate/.config/sway/wallpapers/ign-0000.png exec_always swaybg -i /home/nate/.config/sway/wallpapers/nix-black-4k.png
exec_always /home/nate/.config/sway/scripts/background.sh # exec_always /home/nate/.config/sway/scripts/background.sh
# Title format for windows # Title format for windows
for_window [shell="xdg_shell"] title_format "%title (%app_id)" for_window [shell="xdg_shell"] title_format "%title (%app_id)"

View File

@ -3,16 +3,31 @@
entries="Active Screen Output Area Window" entries="Active Screen Output Area Window"
selected=$(printf '%s\n' $entries | wofi --style=$HOME/.config/wofi/style.widgets.css --conf=$HOME/.config/wofi/config.screenshot | awk '{print tolower($1)}') selected=$(printf '%s\n' $entries | wofi --style=$HOME/.config/wofi/style.widgets.css --conf=$HOME/.config/wofi/config.screenshot | awk '{print tolower($1)}')
case $selected in if [ "$1" == "clipboard" ]; then
active) case $selected in
grimshot --notify save active;; active)
screen) grimshot --notify copy active;;
grimshot --notify save screen;; screen)
output) grimshot --notify copy screen;;
grimshot --notify save output;; output)
area) grimshot --notify copy output;;
grimshot --notify save area;; area)
window) grimshot --notify copy area;;
grimshot --notify save window;; window)
esac grimshot --notify copy window;;
esac
else
case $selected in
active)
grimshot --notify save active;;
screen)
grimshot --notify save screen;;
output)
grimshot --notify save output;;
area)
grimshot --notify save area;;
window)
grimshot --notify save window;;
esac
fi

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -2,13 +2,13 @@
{ {
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"margin-top": 8, "margin-top": 3,
"margin-left": 10, "margin-left": 10,
"margin-right": 10, "margin-right": 10,
"margin-bottom": 8, "margin-bottom": 3,
// If height property would be not present, it'd be calculated dynamically // If height property would be not present, it'd be calculated dynamically
"height": 30, "height": 60,
"modules-left": [ "modules-left": [
"custom/launcher", "custom/launcher",
@ -17,6 +17,13 @@
], ],
"modules-center": [ "modules-center": [
"custom/signal",
"custom/steam",
"custom/spotify",
"custom/firefox",
"custom/slack",
"custom/files",
"custom/pomo",
], ],
"modules-right": [ "modules-right": [
@ -25,12 +32,11 @@
"memory", "memory",
"cpu", "cpu",
"pulseaudio", "pulseaudio",
"custom/spotify",
"custom/keyboard-layout", "custom/keyboard-layout",
"battery", "battery",
//"custom/PBPbattery", //"custom/PBPbattery",
"backlight#icon", // "backlight#icon",
"backlight#value", // "backlight#value",
"clock", "clock",
"tray", "tray",
//"custom/weather", //"custom/weather",
@ -173,6 +179,12 @@
"interval": 600, "interval": 600,
}, },
// "custom/temp": {
// "exec": "notify-send \"temp thing\"",
// "interval": "once",
// "signal": 8,
// },
"tray": { "tray": {
"icon-size": 18, "icon-size": 18,
"spacing":10, "spacing":10,
@ -191,28 +203,54 @@
"on-scroll-up": "brightnessctl -c backlight set +1%" "on-scroll-up": "brightnessctl -c backlight set +1%"
}, },
"custom/firefox": { "custom/signal": {
"format": " ", "format": "  ",
"on-click": "exec firefox", "on-click": "exec signal",
"tooltip": false "tooltip": false,
},
"custom/steam": {
"format": "  ",
"on-click": "exec steam",
"tooltip": false,
}, },
"custom/spotify": { "custom/spotify": {
"format": "  ", "format": "  ",
"on-click": "foot -e 'ncspot'", "on-click": "foot -e 'ncspot'",
"tooltip": false "tooltip": false,
}, },
"custom/terminal": { "custom/firefox": {
"format": " ", "format": " ",
"on-click": "exec foot", "on-click": "exec firefox",
"tooltip": false "tooltip": false,
}, },
"custom/files": {
"format": " ", "custom/slack": {
"format": "  ",
"on-click": "slack",
"tooltip": false,
"exec if": "pgrep slack"
},
"custom/files": {
"format": " 󰉋 ",
"on-click": "exec thunar", "on-click": "exec thunar",
"tooltip": false "tooltip": false,
},
"custom/pomo": {
"format": " {} ",
"exec": "/home/nate/source/pomozoro/zig-out/bin/pomozoro",
"return-type": "json",
"on-click": "echo 's' > ~/.local/share/pomozoro/pomopipe",
"on-click-right": "echo 'p' > ~/.local/share/pomozoro/pomopipe",
"on-click-middle": "echo 'r' > ~/.local/share/pomozoro/pomopipe",
// "signal": 8,
}, },
"custom/launcher": { "custom/launcher": {

View File

@ -6,67 +6,110 @@
* *
* =========================================================================== */ * =========================================================================== */
@define-color rosewater #f4dbd6;
@define-color flamingo #f0c6c6;
@define-color pink #f5bde6;
@define-color mauve #c6a0f6;
@define-color red #ed8796;
@define-color maroon #ee99a0;
@define-color peach #f5a97f;
@define-color yellow #eed49f;
@define-color green #a6da95;
@define-color teal #8bd5ca;
@define-color sky #91d7e3;
@define-color sapphire #7dc4e4;
@define-color blue #8aadf4;
@define-color lavender #b7bdf8;
@define-color text #cad3f5;
@define-color subtext1 #b8c0e0;
@define-color subtext0 #a5adcb;
@define-color overlay2 #939ab7;
@define-color overlay1 #8087a2;
@define-color overlay0 #6e738d;
@define-color surface2 #5b6078;
@define-color surface1 #494d64;
@define-color surface0 #363a4f;
@define-color base #24273a;
@define-color mantle #1e2030;
@define-color crust #181926;
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* Keyframes * Keyframes
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
/*
Nordic Color Scheme
*/
@define-color nord2 #434c5e;
@define-color nord3 #4c566a;
@define-color nord4 #d8dee9;
@define-color nord8 #88c0d0;
@define-color nord9 #81a1c1;
@define-color nord_cyan #8fbcbb;
@define-color nord_orange #d08770;
@define-color nord_red #bf616a;
@define-color nord_green #a3be8c;
@define-color nord_yellow #ebcb8b;
@keyframes blink-warning { @keyframes blink-warning {
70% { 70% {
color: white; color: @overlay0;
} }
to { to {
color: white; color: @overlay0;
background-color: @nord_orange; background-color: @crust;
} }
} }
@keyframes blink-critical { @keyframes blink-critical {
70% { 70% {
color: white; color: @overlay2;
} }
to { to {
color: white; color: @overlay2;
background-color: @nord_red; background-color: @base;
} }
} }
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* Base styles * Base styles
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
/* Reset all styles */ /* Reset all styles */
* { * {
border: none; border: none;
border-radius: 0; border-radius: 0;
min-height: 0; min-height: 0;
margin: 1px; margin: 1px;
padding: 0; padding: 0;
} }
/* The whole bar */ /* The whole bar */
#waybar { #waybar {
background: transparent; background: transparent;
color: @nord4; background-color: transparent;
background-color: @nord3; font-family: Overpass Nerd Font;
font-family: Overpass Nerd Font; font-size: 20px;
font-size: 16px; color: @text;
border-radius: 15px; }
#taskbar {
background: transparent;
}
#taskbar button {
padding-left: 3px;
padding-right: 3px;
margin-left: 3px;
margin-right: 3px;
color: transparent;
border-bottom: 2px solid;
}
#taskbar button.active {
color: @lavender;
}
.modules-left,
.modules-right,
.modules-center {
/* margin: 8px 8px 1px 8px; */
background: transparent;
/* color: @; */
background-color: @base;
border-radius: 25px;
padding: 0px 10px 0px 10px;
border-style: solid;
border-width: 3px;
border-color: @surface0;
} }
/* Every modules */ /* Every modules */
@ -84,8 +127,8 @@ Nordic Color Scheme
#tray, #tray,
#idle_inhibitor, #idle_inhibitor,
#custom-PBPbattery { #custom-PBPbattery {
padding:0.5rem 0.6rem; padding: 0.5rem 0.6rem;
margin: 1px 0px; margin: 1px 0px;
} }
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
@ -93,127 +136,179 @@ Nordic Color Scheme
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
#battery { #battery {
animation-timing-function: linear; animation-timing-function: linear;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }
#battery.warning { #battery.warning {
color: @nord_orange; color: @flamingo;
} }
#battery.critical { #battery.critical {
color: @nord_red; color: @red;
} }
#battery.warning.discharging { #battery.warning.discharging {
animation-name: blink-warning; animation-name: blink-warning;
animation-duration: 3s; animation-duration: 3s;
} }
#battery.critical.discharging { #battery.critical.discharging {
animation-name: blink-critical; animation-name: blink-critical;
animation-duration: 2s; animation-duration: 2s;
} }
#cpu.warning { #cpu.warning {
color: @nord_orange; color: @flamingo;
} }
#cpu.critical { #cpu.critical {
color: @nord_red; color: @red;
} }
#memory { #memory {
animation-timing-function: linear; animation-timing-function: linear;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }
#memory.warning { #memory.warning {
color: @nord_orange; color: @flamingo;
} }
#memory.critical { #memory.critical {
color: @nord_red; color: @red;
animation-name: blink-critical; animation-name: blink-critical;
animation-duration: 2s; animation-duration: 2s;
padding-left:5px; padding-left: 5px;
padding-right:5px; padding-right: 5px;
} }
#mode { #mode {
background: @nord8; background: @overlay0;
border-bottom: 3px transparent; border-bottom: 3px transparent;
color:white; color: @text;
margin-left: 5px; margin-left: 5px;
padding: 7px; margin-right: 5px;
border-radius: 20px;
} }
#network.disconnected { #network.disconnected {
color: @nord_orange; color: @flamingo;
} }
#pulseaudio { #pulseaudio {
padding-top:6px; padding-top: 6px;
} }
#pulseaudio.muted { #pulseaudio.muted {
color: @sky;
color: @nord_cyan;
} }
#temperature.critical { #temperature.critical {
color: @nord_red; color: @red;
} }
#window { #window {
font-weight: bold; font-weight: bold;
} }
#workspaces { #workspaces {
font-size:13px; font-size: 13px;
} }
#workspaces button { #workspaces button {
border-bottom: 3px solid transparent; border-bottom: 3px solid transparent;
margin-bottom: 0px; margin-bottom: 0px;
padding:0px; padding: 0px;
} }
#custom-launcher { #custom-launcher {
color: @nord9; color: @lavenderblush;
}
/* @define-color rosewater #f4dbd6; */
/* @define-color flamingo #f0c6c6; */
/* @define-color pink #f5bde6; */
/* @define-color mauve #c6a0f6; */
/* @define-color red #ed8796; */
/* @define-color maroon #ee99a0; */
/* @define-color peach #f5a97f; */
/* @define-color yellow #eed49f; */
/* @define-color green #a6da95; */
/* @define-color teal #8bd5ca; */
/* @define-color sky #91d7e3; */
/* @define-color sapphire #7dc4e4; */
/* @define-color blue #8aadf4; */
/* @define-color lavender #b7bdf8; */
#custom-signal {
color: @lavender;
padding: 0px 5px 0px 5px;
}
#custom-steam {
color: @teal;
padding: 0px 5px 0px 5px;
} }
#custom-spotify { #custom-spotify {
color: @nord_green; color: @green;
padding: 0px 5px 0px 5px;
} }
#custom-firefox {
color: @yellow;
padding: 0px 5px 0px 5px;
}
#custom-slack {
color: @peach;
padding: 0px 5px 0px 5px;
}
#custom-files {
color: @pink;
padding: 0px 5px 0px 5px;
}
#custom-pomo {
color: @red;
padding: 0px 5px 0px 5px;
}
#wiggle {
animation-name: blink-warning;
}
#workspaces button.focused { #workspaces button.focused {
border-bottom: 3px solid @nord_green; border-bottom: 3px solid @green;
margin-bottom: 1px; margin-bottom: 1px;
padding-left:0; padding-left: 0;
} }
#workspaces button.urgent { #workspaces button.urgent {
border-color: @nord2; border-color: @lavender;
color: @nord_yellow; color: @yellow;
} }
#custom-power { #custom-power {
margin-left:15px; margin-left: 15px;
margin-right:15px; margin-right: 15px;
font-size:15px; font-size: 15px;
color: @nord_orange; color: @flamingo;
} }
#custom-launcher { #custom-launcher {
font-size:15px; font-size: 15px;
margin-left:15px; margin-left: 15px;
margin-right:10px; margin-right: 10px;
} }
#backlight.icon { #backlight.icon {
padding-right:1px; padding-right: 1px;
font-size: 13px; font-size: 13px;
} }

View File

@ -107,6 +107,8 @@
neofetch neofetch
# Normies # Normies
unzip unzip
llpp
nmap
# #
# Photo / Video # Photo / Video
@ -144,6 +146,7 @@
libsForQt5.qtstyleplugin-kvantum libsForQt5.qtstyleplugin-kvantum
libsForQt5.qt5ct libsForQt5.qt5ct
# Install fonts # Install fonts
lato
(nerdfonts.override { fonts = [ "Hermit" "Overpass" ]; }) (nerdfonts.override { fonts = [ "Hermit" "Overpass" ]; })
recursive recursive
]; ];

View File

@ -75,7 +75,8 @@
syncthingtray syncthingtray
swaylock swaylock
swayidle swayidle
swww swaybg
# swww
tailscale-systray tailscale-systray
wl-clipboard wl-clipboard
waybar waybar
@ -165,7 +166,7 @@
}; };
}; };
services.xserver.videoDrivers = [ "amdgpu" ]; # services.xserver.videoDrivers = [ "amdgpu" ];
# Enable HIP # Enable HIP
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
@ -174,13 +175,12 @@
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
hardware.opengl = { hardware.opengl = {
# Mesa # Mesa
enable = true; # enable = true;
# Vulkan # Vulkan
driSupport = true; # driSupport = true;
# Rocm support and vulkan drivers # Rocm support and vulkan drivers
extraPackages = with pkgs; [ extraPackages = with pkgs; [
rocmPackages.clr.icd rocmPackages.clr.icd
amdvlk
]; ];
}; };
}; };