mirror of
https://github.com/SeriousBug/dotfiles
synced 2024-05-19 11:19:04 -05:00
Compare commits
20 commits
3a78f76556
...
b1b5d9cd1b
Author | SHA1 | Date | |
---|---|---|---|
Kaan Barmore-Genç | b1b5d9cd1b | ||
Kaan Barmore-Genç | c675f9f955 | ||
Kaan Barmore-Genç | df9cd5e1ae | ||
Kaan Barmore-Genç | 512430fdda | ||
Kaan Barmore-Genç | 23c5d05d05 | ||
Kaan Barmore-Genç | 272dd0a0fc | ||
Kaan Barmore-Genç | cc20d50553 | ||
Kaan Barmore-Genç | 3b59d9249a | ||
Kaan Barmore-Genç | 4248240e55 | ||
Kaan Barmore-Genç | 79ec51a13c | ||
Kaan Barmore-Genç | 6d0a6bd9b8 | ||
Kaan Barmore-Genç | 389d354c36 | ||
Kaan Barmore-Genç | b1895ebdfc | ||
Kaan Barmore-Genç | dad8819b2a | ||
Kaan Barmore-Genç | c4d09e69ba | ||
Kaan Barmore-Genç | 677c38c0ff | ||
Kaan Barmore-Genç | 737fe771e5 | ||
Kaan Barmore-Genç | ff93978926 | ||
Kaan Barmore-Genç | 74e531793d | ||
Kaan Barmore-Genç | 18aa597962 |
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"python.formatting.provider": "black"
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
This is my configuration for my desktop computer.
|
||||
This is my configuration for my laptop.
|
||||
|
||||
See [echoes](https://github.com/SeriousBug/dotfiles/tree/echoes) for the configuration I use on my laptop.
|
||||
See [eclipse](https://github.com/SeriousBug/dotfiles/tree/eclipse) for the configuration I use on my desktop.
|
||||
|
||||
|
|
28
applications/visual-studio-code.desktop
Executable file
28
applications/visual-studio-code.desktop
Executable file
|
@ -0,0 +1,28 @@
|
|||
[Desktop Action new-empty-window]
|
||||
Exec=/opt/visual-studio-code/code --no-sandbox --new-window %F
|
||||
Icon=visual-studio-code
|
||||
Name=New Empty Window
|
||||
|
||||
[Desktop Entry]
|
||||
Actions=new-empty-window;
|
||||
Categories=Utility;TextEditor;Development;IDE;
|
||||
Comment[en_US]=Code Editing. Refined.
|
||||
Comment=Code Editing. Refined.
|
||||
Exec=env DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 /opt/visual-studio-code/code --no-sandbox --enable-features=UseOzonePlatform --ozone-platform=wayland --unity-launch %F
|
||||
GenericName[en_US]=Text Editor
|
||||
GenericName=Text Editor
|
||||
Icon=visual-studio-code
|
||||
Keywords=vscode;
|
||||
MimeType=text/plain;inode/directory;application/x-visual-studio-code-workspace;
|
||||
Name[en_US]=Visual Studio Code
|
||||
Name=Visual Studio Code
|
||||
Path=
|
||||
StartupNotify=false
|
||||
StartupWMClass=Code
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
X-DBUS-ServiceName=
|
||||
X-DBUS-StartupType=
|
||||
X-KDE-SubstituteUID=false
|
||||
X-KDE-Username=
|
|
@ -118,23 +118,23 @@ group_processes = true
|
|||
[[row]]
|
||||
ratio=70
|
||||
[[row.child]]
|
||||
ratio=4
|
||||
ratio=8
|
||||
[[row.child.child]]
|
||||
type="mem"
|
||||
ratio=13
|
||||
ratio=50
|
||||
[[row.child.child]]
|
||||
type="net"
|
||||
ratio=11
|
||||
ratio=50
|
||||
[[row.child]]
|
||||
ratio=3
|
||||
ratio=6
|
||||
[[row.child.child]]
|
||||
ratio=8
|
||||
ratio=30
|
||||
type="temp"
|
||||
[[row.child.child]]
|
||||
ratio=5
|
||||
ratio=20
|
||||
type="disk"
|
||||
[[row.child.child]]
|
||||
ratio=11
|
||||
ratio=50
|
||||
type="proc"
|
||||
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ function _nvm_install --on-event nvm_install
|
|||
set --query nvm_mirror || set --universal nvm_mirror https://nodejs.org/dist
|
||||
|
||||
test ! -d $nvm_data && command mkdir -p $nvm_data
|
||||
echo "Downloading the Node distribution index for the first time..." 2>/dev/null
|
||||
echo "Downloading the Node distribution index..." 2>/dev/null
|
||||
_nvm_index_update $nvm_mirror $nvm_data/.index
|
||||
end
|
||||
|
||||
|
@ -23,6 +23,6 @@ function _nvm_uninstall --on-event nvm_uninstall
|
|||
functions --erase (functions --all | string match --entire --regex -- "^_nvm_")
|
||||
end
|
||||
|
||||
status is-interactive &&
|
||||
set --query nvm_default_version && ! set --query nvm_current_version &&
|
||||
if status is-interactive && set --query nvm_default_version && ! set --query nvm_current_version
|
||||
nvm use $nvm_default_version >/dev/null
|
||||
end
|
||||
|
|
|
@ -7,10 +7,18 @@ direnv hook fish | source
|
|||
# set current desktop, needed for desktop sharing with Wayland
|
||||
set -gx XDG_CURRENT_DESKTOP sway
|
||||
|
||||
# make Qt apps use the theme set by qt5ct
|
||||
set -gx QT_QPA_PLATFORMTHEME qt5ct
|
||||
|
||||
# load desktop files from flatpak
|
||||
set -l xdg_data_home $XDG_DATA_HOME ~/.local/share
|
||||
set -gx --path XDG_DATA_DIRS $xdg_data_home[1]/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
|
||||
|
||||
# Unlock login keyring
|
||||
if test -n "$DESKTOP_SESSION"
|
||||
set -x (gnome-keyring-daemon --start | string split "=")
|
||||
end
|
||||
|
||||
for flatpakdir in ~/.local/share/flatpak/exports/bin /var/lib/flatpak/exports/bin
|
||||
if test -d $flatpakdir
|
||||
contains $flatpakdir $PATH; or set -a PATH $flatpakdir
|
||||
|
|
|
@ -4,10 +4,11 @@ SETUVAR --export ANDROID_HOME:/home/kaan/Android/Sdk/
|
|||
SETUVAR --export BROWSER:firefox
|
||||
SETUVAR --export CROSS_CONTAINER_ENGINE:podman
|
||||
SETUVAR --export EDITOR:nano
|
||||
SETUVAR --export --path GOPATH:/home/kaan/\x2ego
|
||||
SETUVAR --export MOZ_ENABLE_WAYLAND:1
|
||||
SETUVAR --export TSC_WATCHFILE:UseFsEventsWithFallbackDynamicPolling
|
||||
SETUVAR --export XDG_CURRENT_DESKTOP:sway
|
||||
SETUVAR __fish_initialized:3100
|
||||
SETUVAR __fish_initialized:3400
|
||||
SETUVAR _fisher_jorgebucaran_2F_fisher_files:/home/kaan/\x2econfig/fish/functions/fisher\x2efish\x1e/home/kaan/\x2econfig/fish/completions/fisher\x2efish
|
||||
SETUVAR _fisher_jorgebucaran_2F_nvm_2E_fish_files:/home/kaan/\x2econfig/fish/functions/_nvm_index_update\x2efish\x1e/home/kaan/\x2econfig/fish/functions/_nvm_list\x2efish\x1e/home/kaan/\x2econfig/fish/functions/_nvm_version_activate\x2efish\x1e/home/kaan/\x2econfig/fish/functions/_nvm_version_deactivate\x2efish\x1e/home/kaan/\x2econfig/fish/functions/nvm\x2efish\x1e/home/kaan/\x2econfig/fish/conf\x2ed/nvm\x2efish\x1e/home/kaan/\x2econfig/fish/completions/nvm\x2efish
|
||||
SETUVAR _fisher_plugins:jorgebucaran/fisher\x1ejorgebucaran/nvm\x2efish
|
||||
|
@ -38,6 +39,7 @@ SETUVAR fish_pager_color_completion:\x1d
|
|||
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||
SETUVAR fish_pager_color_selected_background:\x2dr
|
||||
SETUVAR fish_user_paths:/home/kaan/\x2ecargo/bin\x1e/home/kaan/Android/Sdk/platform\x2dtools\x1e/home/kaan/Android/Sdk/tools/bin\x1e/home/kaan/Android/Sdk/tools\x1e/home/kaan/Android/Sdk/emulator\x1e/home/kaan/\x2elocal/bin
|
||||
SETUVAR nvm_data:/home/kaan/\x2elocal/share/nvm
|
||||
SETUVAR nvm_mirror:https\x3a//nodejs\x2eorg/dist
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
function _nvm_index_update --argument-names mirror index
|
||||
command curl --location --silent $mirror/index.tab | command awk -v OFS=\t '
|
||||
if not command curl --location --silent $mirror/index.tab >$index.temp
|
||||
command rm -f $index.temp
|
||||
echo "nvm: Can't update index, host unavailable: \"$mirror\"" >&2
|
||||
return 1
|
||||
end
|
||||
|
||||
command awk -v OFS=\t '
|
||||
/v0.9.12/ { exit } # Unsupported
|
||||
NR > 1 {
|
||||
print $1 (NR == 2 ? " latest" : $10 != "-" ? " lts/" tolower($10) : "")
|
||||
}
|
||||
' >$index.temp 2>/dev/null && command mv $index.temp $index && return
|
||||
' $index.temp >$index
|
||||
|
||||
command rm -f $index.temp
|
||||
echo "nvm: Invalid index or unavailable host: \"$mirror\"" >&2
|
||||
return 1
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||
set --query fisher_path || set --local fisher_path $__fish_config_dir
|
||||
set --local fisher_version 4.3.0
|
||||
set --local fisher_version 4.3.1
|
||||
set --local fish_plugins $__fish_config_dir/fish_plugins
|
||||
|
||||
switch "$cmd"
|
||||
|
@ -15,6 +15,8 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
|||
echo "Options:"
|
||||
echo " -v or --version Print version"
|
||||
echo " -h or --help Print this help message"
|
||||
echo "Variables:"
|
||||
echo " \$fisher_path Plugin installation path. Default: ~/.config/fish"
|
||||
case ls list
|
||||
string match --entire --regex -- "$argv[2]" $_fisher_plugins
|
||||
case install update remove
|
||||
|
@ -82,11 +84,12 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
|||
else
|
||||
set temp (command mktemp -d)
|
||||
set name (string split \@ $plugin) || set name[2] HEAD
|
||||
set url https://codeload.github.com/\$name[1]/tar.gz/\$name[2]
|
||||
set url https://api.github.com/repos/\$name[1]/tarball/\$name[2]
|
||||
set header 'Accept: application/vnd.github.v3+json'
|
||||
|
||||
echo Fetching (set_color --underline)\$url(set_color normal)
|
||||
|
||||
if curl --silent \$url | tar -xzC \$temp -f - 2>/dev/null
|
||||
if curl --silent -L -H \$header \$url | tar -xzC \$temp -f - 2>/dev/null
|
||||
command cp -Rf \$temp/*/* $source
|
||||
else
|
||||
echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2
|
||||
|
|
3
fish/functions/la.fish
Normal file
3
fish/functions/la.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function la --wraps=ls --wraps=exa --description 'alias la exa'
|
||||
exa $argv;
|
||||
end
|
|
@ -9,9 +9,11 @@ function nvm --argument-names cmd v --description "Node version manager"
|
|||
end
|
||||
end
|
||||
|
||||
set --local their_version $v
|
||||
|
||||
switch "$cmd"
|
||||
case -v --version
|
||||
echo "nvm, version 2.2.5"
|
||||
echo "nvm, version 2.2.7"
|
||||
case "" -h --help
|
||||
echo "Usage: nvm install <version> Download and activate the specified Node version"
|
||||
echo " nvm install Install version from nearest .nvmrc file"
|
||||
|
@ -35,7 +37,7 @@ function nvm --argument-names cmd v --description "Node version manager"
|
|||
string match --entire --regex -- (_nvm_version_match $v) <$nvm_data/.index | read v alias
|
||||
|
||||
if ! set --query v[1]
|
||||
echo "nvm: Invalid version number or alias: \"$argv[2..-1]\"" >&2
|
||||
echo "nvm: Invalid version number or alias: \"$their_version\"" >&2
|
||||
return 1
|
||||
end
|
||||
|
||||
|
@ -114,7 +116,7 @@ function nvm --argument-names cmd v --description "Node version manager"
|
|||
_nvm_list | string match --entire --regex -- (_nvm_version_match $v) | read v __
|
||||
|
||||
if ! set --query v[1]
|
||||
echo "nvm: Node version not installed or invalid: \"$argv[2..-1]\"" >&2
|
||||
echo "nvm: Can't use Node \"$their_version\", version must be installed first" >&2
|
||||
return 1
|
||||
end
|
||||
|
||||
|
@ -135,7 +137,7 @@ function nvm --argument-names cmd v --description "Node version manager"
|
|||
_nvm_list | string match --entire --regex -- (_nvm_version_match $v) | read v __
|
||||
|
||||
if ! set -q v[1]
|
||||
echo "nvm: Node version not installed or invalid: \"$argv[2..-1]\"" >&2
|
||||
echo "nvm: Node version not installed or invalid: \"$their_version\"" >&2
|
||||
return 1
|
||||
end
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ bold_italic_font auto
|
|||
#: italic_font Operator Mono Book Italic
|
||||
#: bold_italic_font Operator Mono Medium Italic
|
||||
|
||||
font_size 11.0
|
||||
font_size 12.0
|
||||
|
||||
#: Font size (in pts)
|
||||
|
||||
|
|
44
sway/backlight.py
Executable file
44
sway/backlight.py
Executable file
|
@ -0,0 +1,44 @@
|
|||
#!/usr/bin/env python3
|
||||
import argparse
|
||||
from decimal import Clamped
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
"backlight.py", description="Adjust backlight levels for intel backlight."
|
||||
)
|
||||
# You can either set min or max, or change some amount. Not all.
|
||||
group = parser.add_mutually_exclusive_group(required=False)
|
||||
group.add_argument(
|
||||
"change",
|
||||
type=int,
|
||||
nargs="?",
|
||||
help="The mount, as a percentage, to change the brightness by. Negative numbers lower brightness.",
|
||||
)
|
||||
group.add_argument(
|
||||
"--max", action="store_true", help="Set the brightness to max possible."
|
||||
)
|
||||
group.add_argument("--off", action="store_true", help="Set the brightness to 0.")
|
||||
|
||||
|
||||
def backlight(file_name: str) -> str:
|
||||
return f"/sys/class/backlight/intel_backlight/{file_name}"
|
||||
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
with open(backlight("max_brightness"), "r") as max_f:
|
||||
max_brightness = int(max_f.read().strip())
|
||||
with open(backlight("brightness"), "w+") as current_f:
|
||||
current_brightness = int(current_f.read().strip())
|
||||
if args.max:
|
||||
current_f.write(str(max_brightness))
|
||||
elif args.off:
|
||||
current_f.write(str(0))
|
||||
elif args.change:
|
||||
percent = int(max_brightness / 100.0)
|
||||
to = current_brightness + percent * args.change
|
||||
# Make sure number is in bounds
|
||||
# Bounding min at 1 to avoid fully shutting down screen without the off option
|
||||
to = max(min(to, max_brightness), 1)
|
||||
current_f.write(str(to))
|
||||
else:
|
||||
print(int((current_brightness / float(max_brightness)) * 100))
|
71
sway/config
71
sway/config
|
@ -25,24 +25,9 @@ set $menu j4-dmenu-desktop --dmenu='env BEMENU_BACKEND=wayland bemenu --line-hei
|
|||
### Output configuration
|
||||
#
|
||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
||||
|
||||
output DP-1 {
|
||||
resolution 2560x1440@74.971Hz
|
||||
position 0,0
|
||||
bg /home/kaan/Pictures/Wallpapers/left.jpg fill
|
||||
}
|
||||
output DP-2 {
|
||||
resolution 2560x1440@144.006Hz
|
||||
position 2560,0
|
||||
adaptive_sync on
|
||||
bg /home/kaan/Pictures/Wallpapers/middle.jpg fill
|
||||
}
|
||||
output DP-3 {
|
||||
resolution 2560x1440@144.006Hz
|
||||
position 5120,0
|
||||
adaptive_sync on
|
||||
bg /home/kaan/Pictures/Wallpapers/right.jpg fill
|
||||
output * bg /home/kaan/Pictures/Wallpapers/Sway-no-text.png fill
|
||||
output "eDP-1" {
|
||||
scale 1.5
|
||||
}
|
||||
|
||||
# Enable XWayland
|
||||
|
@ -57,7 +42,22 @@ exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DE
|
|||
exec wlsunset -l 40 -L -83
|
||||
|
||||
# Screen sharing selection
|
||||
exec bash -c "/usr/lib/xdg-desktop-portal -r & /usr/lib/xdg-desktop-portal-wlr"
|
||||
#exec bash -c "/usr/lib/xdg-desktop-portal -r & /usr/lib/xdg-desktop-portal-wlr"
|
||||
exec_always env WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway /usr/lib/xdg-desktop-portal -r &
|
||||
exec_always /usr/lib/xdg-desktop-portal-wlr -r &
|
||||
|
||||
# policykit (graphical password prompt)
|
||||
exec /usr/bin/lxqt-policykit-agent
|
||||
|
||||
# mic noise supression
|
||||
exec systemctl --user start noisetorch.service
|
||||
# KDE Connect
|
||||
exec systemctl --user start kdeconnectd.service
|
||||
exec kdeconnect-indicator
|
||||
# Bluetooth
|
||||
exec /usr/bin/blueman-applet
|
||||
|
||||
exec nm-applet --indicator
|
||||
|
||||
#
|
||||
# Example configuration:
|
||||
|
@ -66,8 +66,8 @@ exec bash -c "/usr/lib/xdg-desktop-portal -r & /usr/lib/xdg-desktop-portal-wlr"
|
|||
#
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
|
||||
#exec swayidle -w \
|
||||
# timeout 1200 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
|
||||
exec swayidle -w \
|
||||
timeout 1200 '/home/kaan/.config/sway/backlight.py --off' resume '/home/kaan/.config/sway/backlight.py +10'
|
||||
|
||||
### Idle configuration
|
||||
#
|
||||
|
@ -97,13 +97,8 @@ exec bash -c "/usr/lib/xdg-desktop-portal -r & /usr/lib/xdg-desktop-portal-wlr"
|
|||
# Read `man 5 sway-input` for more information about this section.
|
||||
|
||||
input * xkb_numlock enable
|
||||
input * accel_profile flat
|
||||
input "5426:136:Razer_Razer_Basilisk_Ultimate_Dongle" {
|
||||
accel_profile flat
|
||||
pointer_accel -0.8
|
||||
}
|
||||
input "1452:613:Apple_Inc._Magic_Trackpad_2" {
|
||||
accel_profile adaptive
|
||||
input "1:1:AT_Translated_Set_2_keyboard" {
|
||||
xkb_options "ctrl:nocaps,ctrl:swapcaps"
|
||||
}
|
||||
|
||||
### Key bindings
|
||||
|
@ -245,6 +240,9 @@ bindsym $mod+c mode "screenshot"
|
|||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
|
||||
# Screen brightness
|
||||
bindsym XF86MonBrightnessUp exec /home/kaan/.config/sway/backlight.py +5
|
||||
bindsym XF86MonBrightnessDown exec /home/kaan/.config/sway/backlight.py -5
|
||||
|
||||
#
|
||||
# Resizing containers:
|
||||
|
@ -265,7 +263,7 @@ mode "resize" {
|
|||
|
||||
# Preset sizes
|
||||
bindsym q resize set width 60ppt
|
||||
bindsym e resize set width 40ppt
|
||||
bindsym e resize set width 25ppt
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
|
@ -284,5 +282,20 @@ bar {
|
|||
|
||||
gaps inner 12
|
||||
gaps outer 16
|
||||
default_border pixel
|
||||
|
||||
client.focused #F10086 #F10086 #ffffff #F10086 #F10086
|
||||
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
|
||||
client.focused_tab_title #333333 #5f676a #ffffff
|
||||
client.unfocused #711A75 #711A75 #ffffff #711A75 #711A75
|
||||
client.urgent #F582A7 #F582A7 #000000 #F582A7 #F582A7
|
||||
|
||||
default_border pixel
|
||||
|
||||
client.focused #F10086 #F10086 #ffffff #F10086 #F10086
|
||||
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
|
||||
client.focused_tab_title #333333 #5f676a #ffffff
|
||||
client.unfocused #711A75 #711A75 #ffffff #711A75 #711A75
|
||||
client.urgent #F582A7 #F582A7 #000000 #F582A7 #F582A7
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
|
|
|
@ -5,9 +5,9 @@ StartLimitIntervalSec=600
|
|||
StartLimitBurst=5
|
||||
|
||||
[Service]
|
||||
Type=basic
|
||||
Type=simple
|
||||
ExecStart=/usr/lib/kdeconnectd
|
||||
Restart=on-failure
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description=Run noisetorch input supressor.
|
||||
After=graphical-session.target
|
||||
After=pipewire.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
// "layer": "top", // Waybar at top layer
|
||||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 30, // Waybar height (to be removed for auto height)
|
||||
//"height": 16, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
"spacing": 0, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": ["sway/window"],
|
||||
"modules-right": ["custom/media", "pulseaudio", "cpu", "memory", "temperature", "sway/language", "clock", "tray"],
|
||||
"modules-right": ["custom/media", "battery", "pulseaudio", "cpu", "memory", "temperature", "sway/language", "clock", "tray"],
|
||||
// Modules configuration
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
|
@ -66,6 +66,9 @@
|
|||
"device": "intel_backlight",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", ""],
|
||||
"on-scroll-up": "/home/kaan/.config/sway/backlight.py +1",
|
||||
"on-scroll-down": "/home/kaan/.config/sway/backlight.py -1",
|
||||
"on-click": "/home/kaan/.config/sway/backlight.py --off"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: FontAwesome, Fira Code;
|
||||
font-size: 13px;
|
||||
font-size: 16px;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ window#waybar.chromium {
|
|||
} */
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
padding: 0 0.5rem;
|
||||
background-color: #D6882D;
|
||||
color: rgba(0,0,0,0.8);
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
|
@ -89,7 +89,7 @@ window#waybar.chromium {
|
|||
#mode,
|
||||
#idle_inhibitor,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
#window,
|
||||
|
@ -97,6 +97,11 @@ window#waybar.chromium {
|
|||
margin: 0 4px;
|
||||
}
|
||||
|
||||
.modules-left > *, .modules-right > * {
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
|
@ -199,7 +204,7 @@ label:focus {
|
|||
}
|
||||
|
||||
#keyboard-state > label {
|
||||
padding: 0 5px;
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
#keyboard-state > label.locked {
|
||||
|
@ -217,7 +222,7 @@ label:focus {
|
|||
}
|
||||
#language {
|
||||
background: #9B551E;
|
||||
padding: 0 5px;
|
||||
padding: 0 0.5rem;
|
||||
min-width: 16px;
|
||||
}
|
||||
#temperature {
|
||||
|
|
Loading…
Reference in a new issue