add waybar config from mubinmuhhamad

This commit is contained in:
tonizz_m1pro
2024-04-19 11:55:08 -07:00
parent 68a55fe348
commit 9c755fe6ea
6 changed files with 461 additions and 120 deletions

View File

@@ -0,0 +1,241 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
# set $menu dmenu_path | dmenu | xargs swaymsg exec --
set $menu rofi -show drun -show-icons | xargs swaymsg exec --
# Personal Settings
font pango:IosevkaTermSlab Nerd Font 12
default_border none
default_floating_border none
titlebar_border_thickness 0
titlebar_padding 0
# Run capture.sh to take screenshot
bindsym $mod+Shift+T exec /home/tonizz/Documents/Customization/Screenshots/capture.sh
# Start nm-applet Wifi App on Sway boot
exec_always nm-applet
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg ~/Pictures/Wallpapers/Mixed/blurry.jpg fill
#
# Example configuration:
#
output eDP-1 scale 2 resolution 2560x1600 position 0,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
# exec_always runs not once but always, it is not like exec which only runs once when the wm is reloaded
exec_always "killall swayidle; swayidle -w timeout 300 swaylock"
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 300 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
# Example configuration:
#
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
#
# Moving around:
#
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+b splith
bindsym $mod+v splitv
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
# Ditto, with arrow keys
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# My Cosas
# Window Gaps
gaps inner 4
gaps outer 4
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
swaybar_command waybar
}
# # When the status_command prints a new line to stdout, swaybar updates.
# # The default just shows the current date and time.
# status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
#
# colors {
# statusline #ffffff
# background #323232
# inactive_workspace #32323200 #32323200 #5c5c5c
# }
#}
include /etc/sway/config.d/*

View File

@@ -0,0 +1,6 @@
4.19.24
I was unable to fix the battery background filling issue, posted a PR on the author repo, not update as of now
[Mubin's Dots]{https://github.com/MubinMuhammad/MinimalSwayFX}

View File

@@ -0,0 +1,129 @@
{
// "layer": "top",
"mode": "dock",
"ipc": "true",
"bar_id": "bar_0",
"position": "bottom",
"spacing": 0,
"margin-bottom": 6,
"margin-left": 200,
"margin-right": 200,
"modules-left": [
"sway/workspaces"
],
"modules-center": [
"clock"
],
"modules-right": [
"tray",
"network",
"battery",
"pulseaudio",
"custom/swww"
],
"sway/taskbar": {
"format": "{icon}",
"on-click": "activate",
"on-click-right": "fullscreen",
"icon-size": 25,
"tooltip-format": "{title}"
},
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{icon}",
"format-icons": {
"1": "", // "",
"2": " ", // "",
"3": "", // "",
"4": "", // "",
"5": "", // "",
"6": "l", // "󱢴 "
},
"persistent-workspaces": {
"1": [],
"2": [],
"3": [],
"4": [],
"5": [],
"6": [],
}
},
"tray": {
"spacing": 10
},
"clock": {
"format": "{:%I:%M %p - %a, %d %b %Y}"
},
"network": {
"format-wifi" : "{icon}",
"format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"],
"format-ethernet": "",
"format-disconnected" : "󰤮",
"interval": 5,
},
"pulseaudio": {
"scroll-step": 5,
"max-volume": 150,
"format": "{icon} {volume}%",
"format-bluetooth": "󰂰",
"nospacing": 1,
"format-muted": "󰝟",
"format-icons": {
"headphone": " ",
"default": ["","" ," "]
},
"on-click": "pamixer -t",
},
"custom/swww": {
"format": " ",
"on-click": "bash ~/.config/wallpapers/wallpaperSet.sh"
},
"battery": {
"format": "{icon} {capacity}%",
"format-icons": {
"charging": [
"󰢜 ",
"󰂆 ",
"󰂇 ",
"󰂈 ",
"󰢝 ",
"󰂉 ",
"󰢞 ",
"󰂊 ",
"󰂋 ",
"󰂅"
],
"default": [
"󰁺",
"󰁻",
"󰁼",
"󰁽",
"󰁾",
"󰁿",
"󰂀",
"󰂁",
"󰂂",
"󰁹"
]
},
"format-full": "Charged ",
"interval": 5,
"states": {
"warning": 20,
"critical": 10
},
"tooltip": false
},
}

View File

@@ -0,0 +1,85 @@
* {
border: none;
border-radius: 0;
min-height: 0;
font-family: IosevkaTermSlab Nerd Font;
font-weight: bold;
font-size: 14px;
padding: 0;
}
window#waybar {
background: rgba(29, 32, 33, 0.5);
border-radius: 6px;
border: 2px solid rgba(29, 32, 33, 0.5);
}
#workspaces {
background-color: transparent;
}
#workspaces button {
all: initial; /* Remove GTK theme values (waybar #1351) */
min-width: 0; /* Fix weird spacing in materia (waybar #450) */
box-shadow: inset 0 -3px transparent; /* Use box-shadow instead of border so the text isn't offset */
padding: 6px 12px;
color: #7c6f64;
}
#workspaces button.focused {
color: #d4be98;
}
#workspaces button.urgent {
background-color: #e78a4e;
}
#battery,
#backlight,
#network,
#clock,
#tray,
#pulseaudio {
margin: 8px;
padding-right: 8px;
background-color: transparent;
color: #d4be98;
}
#custom-swww {
padding-right: 8px;
background-color: transparent;
color: #d4be98;
}
#battery {
background-color: transparent;
}
#battery.warning,
#battery.critical,
#battery.urgent {
color: #d4be98;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#battery.charging {
background-color: #a9b665;
}
@keyframes blink {
to {
background-color: #e78a4e;
color: #ede0d4;
}
}
tooltip {
padding: 15px;
background-color: #1d2021;
border-radius: 6px;
color: #d4be98;
border: 2px solid #282828;
}

View File

@@ -1,60 +0,0 @@
{
"layer": "top",
"modules-left": ["custom/arch", "hyprland/workspaces"],
"modules-center": ["clock"],
"modules-right": ["backlight", "pulseaudio", "bluetooth", "network", "battery"],
"custom/arch": {
"format": "  ",
"tooltip": false,
"on-click": "sh $HOME/.config/rofi/bin/powermenu"
},
"hyprland/workspaces": {
"format": "{name}",
"format": "{icon}",
"tooltip": false,
"all-outputs": true,
"format-icons": {
"active": "",
"default": ""
}
},
"clock": {
"format": "<span color='#b4befe'> </span>{:%H:%M}",
},
"backlight": {
"device": "intel_backlight",
"format": "<span color='#b4befe'>{icon}</span> {percent}%",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"pulseaudio": {
"format": "<span color='#b4befe'>{icon}</span> {volume}%",
"format-muted": "",
"tooltip": false,
"format-icons": {
"headphone": "",
"default": ["", "", "󰕾", "󰕾", "󰕾", "", "", ""]
},
"scroll-step": 1,
},
"bluetooth": {
"format": "<span color='#b4befe'></span> {status}",
"format-disabled": "", // an empty format will hide the module
"format-connected": "<span color='#b4befe'></span> {num_connections}",
"tooltip-format": "{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias} {device_address}"
},
"network": {
"interface": "wlan0",
"format": "{ifname}",
"format-wifi": "<span color='#b4befe'> </span>{essid}",
"format-ethernet": "{ipaddr}/{cidr} ",
"format-disconnected": "<span color='#b4befe'>󰖪 </span>No Network",
"tooltip": false,
},
"battery": {
"format": "<span color='#b4befe'>{icon}</span> {capacity}%",
"format-icons": ["", "", "", "", "", "", "", "", "", ""],
"format-charging": "<span color='#b4befe'></span> {capacity}%",
"tooltip": false,
},
}

View File

@@ -1,60 +0,0 @@
* {
border: none;
font-family: 'Fira Code', 'Symbols Nerd Font Mono';
font-size: 16px;
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
min-height: 45px;
}
window#waybar {
background: transparent;
}
#custom-arch, #workspaces {
border-radius: 10px;
background-color: #11111b;
color: #b4befe;
margin-top: 15px;
margin-right: 15px;
padding-top: 1px;
padding-left: 10px;
padding-right: 10px;
}
#custom-arch {
font-size: 20px;
margin-left: 15px;
color: #b4befe;
}
#workspaces button {
background: #11111b;
color: #b4befe;
}
#clock, #backlight, #pulseaudio, #bluetooth, #network, #battery{
border-radius: 10px;
background-color: #11111b;
color: #cdd6f4;
margin-top: 15px;
padding-left: 10px;
padding-right: 10px;
margin-right: 15px;
}
#backlight, #bluetooth {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
padding-right: 5px;
margin-right: 0
}
#pulseaudio, #network {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding-left: 5px;
}
#clock {
margin-right: 0;
}