revisit i3 for memories, modify waybar config to make it look better >:)

main
Ayush Mukherjee 2 years ago
parent 5ff0fa7e71
commit fdaf69e0e0

@ -1,2 +1,3 @@
--ozone-platform=wayland --ozone-platform=wayland
--ozone-hint=wayland --ozone-hint=wayland
--enable-features=UseOzonePlatform

@ -175,7 +175,7 @@ gaps inner 20
#smart_gaps on #smart_gaps on
# ws 4 no gaps # ws 4 no gaps
workspace $ws4 gaps inner 0 #workspace $ws4 gaps inner 0
# set desktop bg # set desktop bg
exec_always --no-startup-id feh --bg-fill /home/ayush/.config/i3/wall.jpg exec_always --no-startup-id feh --bg-fill /home/ayush/.config/i3/wall.jpg
@ -224,10 +224,14 @@ bindsym XF86MonBrightnessDown exec sudo /usr/bin/light -U 10
# Custom Bindings for Applications # Custom Bindings for Applications
# Mod + n brave # Mod + n brave
#bindsym $mod+n exec "brave --enable-features=VaapiVideoDecoder --use-gl=desktop --disable-features=UseChromeOSDirectVideoDecoder --disable-gpu-memory-buffer-compositor-resources --disable-gpu-memory-buffer-video-frames --enable-hardware-overlays" #bindsym $mod+n exec "brave --enable-features=VaapiVideoDecoder --use-gl=desktop --disable-features=UseChromeOSDirectVideoDecoder --disable-gpu-memory-buffer-compositor-resources --disable-gpu-memory-buffer-video-frames --enable-hardware-overlays"
bindsym $mod+n exec "brave --enable-features=VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization --enable-video-acceleration --enable-zero-copy --use-gl=desktop --ignore-gpu-blocklist --ignore-gpu-blacklist --enable-oop-rasterization --enable-raw-draw --enable-gpu-rasterization --use-vulkan --disable-reading-from-canvas --disable-sync-preferences" #bindsym $mod+n exec "brave --enable-features=VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization --enable-video-acceleration --enable-zero-copy --use-gl=desktop --ignore-gpu-blocklist --ignore-gpu-blacklist --enable-oop-rasterization --enable-raw-draw --enable-gpu-rasterization --use-vulkan --disable-reading-from-canvas --disable-sync-preferences"
bindsym $mod+n exec firefox
bindsym $mod+b exec notesnook
bindsym $mod+Shift+b exec "microsoft-edge-beta --enable-features=VaapiVideoDecoder,VaapiVideoEncoder --disable-features=UseChromeOSDirectVideoDecoder"
# Mod + b min # Mod + b min
bindsym $mod+b exec "min --use-gl=desktop --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder --canvas-oop-rasterization" #bindsym $mod+b exec "min --use-gl=desktop --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder --canvas-oop-rasterization"
# Mod + m pantheon files # Mod + m pantheon files
bindsym $mod+m exec io.elementary.files bindsym $mod+m exec io.elementary.files

@ -3,7 +3,7 @@ output eDP-1 {
#mode 1920x1080@60.004Hz #mode 1920x1080@60.004Hz
mode 1920x1080@144.003Hz mode 1920x1080@144.003Hz
scale 1.25 scale 1.25
adaptive_sync on adaptive_sync off
} }
# set mouse # set mouse
@ -21,6 +21,9 @@ input "1267:12521:ELAN1205:00_04F3:30E9_Touchpad" {
exec systemctl --user import-environment SWAYSOCK WAYLAND_DISPLAY exec systemctl --user import-environment SWAYSOCK WAYLAND_DISPLAY
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
# fix for screen sharing
exec /usr/lib/xdg-desktop-portal -r & /usr/lib/xdg-desktop-portal-wlr
# fix for gtk theming # fix for gtk theming
exec_always { exec_always {
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
@ -257,14 +260,15 @@ bindsym XF86MonBrightnessDown exec sudo /usr/bin/light -U 10
# Custom Bindings for Applications # Custom Bindings for Applications
# Mod + n firefox # Mod + n firefox
bindsym $mod+n exec firefox -p bindsym $mod+n exec firefox
#bindsym $mod+n exec "brave --enable-features=VaapiVideoDecoder --use-gl=desktop --disable-features=UseChromeOSDirectVideoDecoder --disable-gpu-memory-buffer-compositor-resources --disable-gpu-memory-buffer-video-frames --enable-hardware-overlays"
#bindsym $mod+n exec "brave --enable-features=VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization --enable-video-acceleration --enable-zero-copy --use-gl=desktop --ignore-gpu-blocklist --ignore-gpu-blacklist --enable-oop-rasterization --enable-raw-draw --enable-gpu-rasterization --use-vulkan --disable-reading-from-canvas --disable-sync-preferences"
# Mod + b (old: min) notesnook # Mod + b (old: min) notesnook
#bindsym $mod+b exec "min --use-gl=desktop --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --ozone-platform-hint=auto --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder --canvas-oop-rasterization" #bindsym $mod+b exec "min --use-gl=desktop --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --ozone-platform-hint=auto --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder --canvas-oop-rasterization"
bindsym $mod+b exec "notesnook --ozone-platform=wayland --ozone-platform-hint=wayland" bindsym $mod+b exec "notesnook --ozone-platform=wayland --ozone-platform-hint=wayland"
# Mod + Shift + b edge
bindsym $mod+Shift+b exec "microsoft-edge-beta --enable-features=UseOzonePlatform,VaapiVideoDecoder,VaapiVideoEncoder,WebRTCPipeWireCapturer --ozone-platform=wayland --ozone-platform-hint=wayland --disable-features=UseChromeOSDirectVideoDecoder --use-gl=egl"
# Mod + m pantheon files # Mod + m pantheon files
bindsym $mod+m exec io.elementary.files bindsym $mod+m exec io.elementary.files

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

@ -2,33 +2,34 @@
//"layer": "top", // Waybar at top layer //"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right) "position": "top", // Waybar position (top|bottom|left|right)
"height": 25, // Waybar height (to be removed for auto height) "height": 25, // Waybar height (to be removed for auto height)
"spacing": 4, // Gaps between modules (4px) "spacing": 0, // Gaps between modules (4px)
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode"], "modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": [], "modules-center": [],
"modules-right": ["custom/bluetooth-battery", "battery", "pulseaudio", "cpu", "temperature", "memory", "backlight", "clock", "tray"], "modules-right": ["custom/bluetooth-battery", "custom/left-semi", "battery", "custom/right-semi", "pulseaudio", "custom/left-semi", "cpu", "custom/right-semi", "temperature", "custom/left-semi", "memory", "custom/right-semi", "backlight", "custom/left-semi", "clock", "custom/right-semi", "tray"],
"fixed-center": true, "fixed-center": true,
"sway/mode": { "sway/mode": {
"format": "<span style=\"italic\">{}</span>" "format": "<span style=\"italic\">{}</span>"
}, },
"tray": { "tray": {
// "icon-size": 21, "icon-size": 14,
"spacing": 10 "spacing": 10
}, },
"clock": { "clock": {
"format": " {:%H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}" "format-alt": "{:%Y-%m-%d}"
}, },
"cpu": { "cpu": {
"format": "﬙ {usage}%", "format": "﬙ {usage}%",
"tooltip": false "tooltip": false
}, },
"memory": { "memory": {
"format": "󰍛 {}%" "format": " {}%"
}, },
"temperature": { "temperature": {
"critical-threshold": 80, "critical-threshold": 80,
"format": " {temperatureC}°C", "format": " {temperatureC}°C",
}, },
"backlight": { "backlight": {
"format": "{icon} {percent}%", "format": "{icon} {percent}%",
@ -37,8 +38,8 @@
"battery": { "battery": {
"states": { "states": {
// "good": 95, // "good": 95,
"warning": 19, "warning": 50,
"critical": 15, "critical": 40,
}, },
"format": " {capacity}%", "format": " {capacity}%",
"format-time": "{H}h {M}m", "format-time": "{H}h {M}m",
@ -47,6 +48,12 @@
"format-alt": "{icon} {time}", "format-alt": "{icon} {time}",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"custom/left-semi": {
"format": "",
},
"custom/right-semi": {
"format": "",
},
"custom/bluetooth-battery": { "custom/bluetooth-battery": {
"format": "{}", "format": "{}",
"return-type": "json", "return-type": "json",
@ -66,7 +73,7 @@
}, },
"pulseaudio": { "pulseaudio": {
// "scroll-step": 1, // %, can be a float // "scroll-step": 1, // %, can be a float
"format": " {volume}%", "format": " {volume}%",
"format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}", "format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}", "format-muted": " {format_source}",

@ -1,30 +1,23 @@
* { * {
font-family: 'JetBrainsMono Nerd Font', 'Material Icons', 'unifont'; font-family: 'JetBrainsMono Nerd Font', 'Material Icons', 'unifont';
font-size: 15px; font-size: 10pt;
} }
window#waybar { window#waybar {
background-color: rgba(30, 34, 42, 1); background-color: #1e222a;
color: #979eab; color: #979eab;
padding: 0 1px; padding: 0 500px;
}
window#waybar.termite {
background-color: #3F3F3F;
}
window#waybar.chromium {
background-color: #000000;
border: none;
} }
#workspaces button { #workspaces button {
margin: 5px 0;
padding: 0 2px; padding: 0 2px;
background: transparent; background: transparent;
color: #979eab; color: #979eab;
box-shadow: inset 0 -2px transparent; box-shadow: inset 0 -2px transparent;
border: none; border: none;
border-radius: 0; border-radius: 0;
transition: none;
} }
#workspaces button:hover { #workspaces button:hover {
@ -43,6 +36,17 @@ window#waybar.chromium {
box-shadow: inset 0 -2px #e06c75; box-shadow: inset 0 -2px #e06c75;
} }
#custom-left-semi,
#custom-right-semi {
color: #2b2f37;
margin: 0;
padding: 0;
}
#custom-right-semi {
margin-right: 4px;
}
#clock, #clock,
#battery, #battery,
#cpu, #cpu,
@ -52,13 +56,14 @@ window#waybar.chromium {
#backlight, #backlight,
#network, #network,
#pulseaudio, #pulseaudio,
#custom-media,
#tray, #tray,
#mode, #mode
#idle_inhibitor, {
#mpd {
padding: 0 10px; padding: 0 10px;
color: #979eab; }
.modules-right {
padding: 5px 0;
} }
#window, #window,
@ -78,7 +83,8 @@ window#waybar.chromium {
#clock { #clock {
background-color: #282c35; background-color: #282c35;
padding: 0 20px; color: #abb2bf;
padding: 0 10px;
} }
#battery { #battery {
@ -100,6 +106,7 @@ window#waybar.chromium {
#battery.critical:not(.charging) { #battery.critical:not(.charging) {
background-color: #f53c3c; background-color: #f53c3c;
color: #ffffff; color: #ffffff;
transition: none;
animation-name: blink; animation-name: blink;
animation-duration: 0.5s; animation-duration: 0.5s;
animation-timing-function: linear; animation-timing-function: linear;
@ -171,7 +178,7 @@ label:focus {
} }
#tray { #tray {
background-color: #2980b9; background-color: #1e2127;
} }
#tray > .passive { #tray > .passive {

Loading…
Cancel
Save