mirror of
https://github.com/SeriousBug/dotfiles
synced 2025-10-25 09:37:05 -05:00
Compare commits
10 commits
b1b5d9cd1b
...
3a78f76556
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a78f76556 | ||
|
|
f3516673d2 | ||
|
|
522b9d30f4 | ||
|
|
efa091969b | ||
|
|
a6077cac12 | ||
|
|
5a7ff17743 | ||
|
|
f73870b141 | ||
|
|
7ce186b21d | ||
|
|
80ce410fa6 | ||
|
|
643f5e0179 |
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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
45
sway/config
45
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
|
||||
|
|
@ -66,8 +51,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 +82,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 +225,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:
|
||||
|
|
@ -285,4 +268,12 @@ 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
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
|
|
|
|||
|
|
@ -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