This commit is contained in:
shijil
2025-05-27 12:52:45 +05:30
parent 1784e58039
commit 94ecb26c95
19 changed files with 779 additions and 0 deletions

View File

@ -0,0 +1 @@
### DotFiles of Dev

22
alacritty/alacritty.toml Executable file
View File

@ -0,0 +1,22 @@
[keyboard]
bindings = [
{ key = "Return", mods = "Control|Shift", action = "SpawnNewInstance" }
]
[font]
size = 14.0
[font.bold]
family = "Iosevka"
style = "Bold"
[font.bold_italic]
family = "Iosevka"
style = "Bold Italic"
[font.italic]
family = "Iosevka"
style = "Italic"
[font.normal]
family = "Iosevka"
style = "Regular"

11
river/autostart.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
#waybar -c ~/.config/waybar/river/config-river -s ~/.config/waybar/river/river-style.css
#creek -fn Terminus:size=12 -hg 18 -nf 0xffffff -nb 0x000000
/bin/wired &
#swaybg -i Downloads/mononoke026.jpg &
swaybg -i Downloads/1388190-miyazaki-wallpaper-1920x1080-hd.jpg &
#( while date ; do sleep 1; done ) | creek -fn Terminus:size=18 -hg 18 -nf 0xffffff -nb 0x000000
( while echo "RAM:$(free -h | awk '/^Mem:/ {print $3 "/" $2}') Disk:$(df -Ph | grep "/home" | awk {'print $4"/"$2'}) Vol:$(amixer get Master | tail -1 | awk '{ print $5 }' | tr -d '[]') $(date '+%e %b %Y %a %k:%M:%S')"; do sleep 1; done ) | creek -fn Terminus:size=18 -hg 18 -nf 0xfbf1c7 -nb 0x1d2021 -fb 0xebdbb2
#creek -fn Terminus:size=18 -hg 18 -nf 0xfbf1c7 -nb 0x1d2021 -fb 0xebdbb2

17
river/bar Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env sh
FIFO="$XDG_RUNTIME_DIR/sandbar"
[ -e "$FIFO" ] && rm -f "$FIFO"
mkfifo "$FIFO"
while cat "$FIFO"; do :; done | sandbar \
-font "Iosevka:Pixelsize" \
-active-fg-color "#000000" \
-active-bg-color "#fbf1c7" \
-inactive-fg-color "#ebdbb2" \
-inactive-bg-color "#000000" \
-urgent-fg-color "#000000" \
-urgent-bg-color "#cc241d" \
-title-fg-color "#000000" \
-title-bg-color "#fbf1c7" \
-vertical-padding "4"

1
river/bar.sh Normal file
View File

@ -0,0 +1 @@
( while echo "RAM:$(free -h | awk '/^Mem:/ {print $3 "/" $2}') DiskFree:$(df -Ph | grep "/root" | awk {'print $4"/"$2'}) Vol:$(amixer get Master | tail -1 | awk '{ print $5 }' | tr -d '[]') $(date '+%e %b %Y %a %k:%M')"; do sleep 1; done ) | creek -fn Terminus:size=18 -hg 18 -nf 0xffffff -nb 0x000000

221
river/init Executable file
View File

@ -0,0 +1,221 @@
#!/bin/sh
# This is the example configuration file for river.
#
# If you wish to edit this, you will probably want to copy it to
# $XDG_CONFIG_HOME/river/init or $HOME/.config/river/init first.
#
riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
riverctl spawn " dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
riverctl spawn "systemctl --user restart xdg-desktop-portal"
#
# See the river(1), riverctl(1), and rivertile(1) man pages for complete
# documentation.
# Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc.
#riverctl spawn "wbg $HOME/Downloads/1388190-miyazaki-wallpaper-1920x1080-hd.jpg"
riverctl spawn "wbg $HOME/Downloads/zaSgrn8-cowboy-bebop-backgrounds.png"
# Super+Shift+Return to start an instance of foot (https://codeberg.org/dnkl/foot)
riverctl map normal Super Return spawn alacritty
riverctl map normal Super+Shift Return spawn kitty
riverctl map normal Super M spawn 'rofi -show run'
# reload
riverctl map normal Super+Shift R spawn "pkill sandbar & $HOME/.config/river/init"
#riverctl map normal Super+Shift S spawn wayshot
riverctl map normal Super+Shift S spawn "sway-screenshot -m region"
# Super+Q to close the focused view
riverctl map normal Super C close
riverctl map normal Super+Shift Q spawn 'swaylock & $HOME/.config/river/swayidle'
# Super+Shift+E to exit river
riverctl map normal Super+Shift E exit
# Super+J and Super+K to focus the next/previous view in the layout stack
riverctl map normal Super J focus-view next
riverctl map normal Super K focus-view previous
# Super+Shift+J and Super+Shift+K to swap the focused view with the next/previous
# view in the layout stack
riverctl map normal Super+Shift J swap next
riverctl map normal Super+Shift K swap previous
# Super+Period and Super+Comma to focus the next/previous output
riverctl map normal Super Period focus-output next
riverctl map normal Super Comma focus-output previous
# Super+Shift+{Period,Comma} to send the focused view to the next/previous output
riverctl map normal Super+Shift Period send-to-output next
riverctl map normal Super+Shift Comma send-to-output previous
# Super+Return to bump the focused view to the top of the layout stack
riverctl map normal Super+Shift Z zoom
# Super+H and Super+L to decrease/increase the main ratio of rivertile(1)
riverctl map normal Super H send-layout-cmd rivertile "main-ratio -0.05"
riverctl map normal Super L send-layout-cmd rivertile "main-ratio +0.05"
# Super+Shift+H and Super+Shift+L to increment/decrement the main count of rivertile(1)
riverctl map normal Super+Shift H send-layout-cmd rivertile "main-count +1"
riverctl map normal Super+Shift L send-layout-cmd rivertile "main-count -1"
# Super+Alt+{H,J,K,L} to move views
riverctl map normal Super+Alt H move left 100
riverctl map normal Super+Alt J move down 100
riverctl map normal Super+Alt K move up 100
riverctl map normal Super+Alt L move right 100
# Super+Alt+Control+{H,J,K,L} to snap views to screen edges
riverctl map normal Super+Alt+Control H snap left
riverctl map normal Super+Alt+Control J snap down
riverctl map normal Super+Alt+Control K snap up
riverctl map normal Super+Alt+Control L snap right
# Super+Alt+Shift+{H,J,K,L} to resize views
riverctl map normal Super+Alt+Shift H resize horizontal -100
riverctl map normal Super+Alt+Shift J resize vertical 100
riverctl map normal Super+Alt+Shift K resize vertical -100
riverctl map normal Super+Alt+Shift L resize horizontal 100
# Super + Left Mouse Button to move views
riverctl map-pointer normal Super BTN_LEFT move-view
# Super + Right Mouse Button to resize views
riverctl map-pointer normal Super BTN_RIGHT resize-view
# Super + Middle Mouse Button to toggle float
riverctl map-pointer normal Super BTN_MIDDLE toggle-float
for i in $(seq 1 9)
do
tags=$((1 << ($i - 1)))
# Super+[1-9] to focus tag [0-8]
riverctl map normal Super $i set-focused-tags $tags
# Super+Shift+[1-9] to tag focused view with tag [0-8]
riverctl map normal Super+Shift $i set-view-tags $tags
# Super+Control+[1-9] to toggle focus of tag [0-8]
riverctl map normal Super+Control $i toggle-focused-tags $tags
# Super+Shift+Control+[1-9] to toggle tag [0-8] of focused view
riverctl map normal Super+Shift+Control $i toggle-view-tags $tags
done
# Super+0 to focus all tags
# Super+Shift+0 to tag focused view with all tags
all_tags=$(((1 << 32) - 1))
riverctl map normal super 0 set-focused-tags $all_tags
riverctl map normal Super+Shift 0 set-view-tags $all_tags
# Super+Space to toggle float
riverctl map normal Super Space toggle-float
# Super+F to toggle fullscreen
riverctl map normal Super F toggle-fullscreen
# Super+{Up,Right,Down,Left} to change layout orientation
riverctl map normal Super Up send-layout-cmd rivertile "main-location top"
riverctl map normal Super Right send-layout-cmd rivertile "main-location right"
riverctl map normal Super Down send-layout-cmd rivertile "main-location bottom"
riverctl map normal Super Left send-layout-cmd rivertile "main-location left"
# Declare a passthrough mode. This mode has only a single mapping to return to
# normal mode. This makes it useful for testing a nested wayland compositor
riverctl declare-mode passthrough
# Super+F11 to enter passthrough mode
riverctl map normal Super F11 enter-mode passthrough
# Super+F11 to return to normal mode
riverctl map passthrough Super F11 enter-mode normal
# The scratchpad will live on an unused tag. Which tags are used depends on your
# config, but rivers default uses the first 9 tags.
scratch_tag=$((1 << 20 ))
# Toggle the scratchpad with Super+P
riverctl map normal Super P toggle-focused-tags ${scratch_tag}
# Send windows to the scratchpad with Super+Shift+P
riverctl map normal Super+Shift P set-view-tags ${scratch_tag}
# Set spawn tagmask to ensure new windows don't have the scratchpad tag unless
# explicitly set.
all_but_scratch_tag=$(( ((1 << 32) - 1) ^ $scratch_tag ))
riverctl spawn-tagmask ${all_but_scratch_tag}
all_tags=$(((1 << 32) - 1))
sticky_tag=$((1 << 31))
all_but_sticky_tag=$(( $all_tags ^ $sticky_tag ))
riverctl map normal Super S toggle-view-tags $sticky_tag
riverctl spawn-tagmask ${all_but_sticky_tag}
# modify the normal keybind to always select the sticky tag
for i in $(seq 1 9)
do
tags=$((1 << ($i - 1)))
# Super+[1-9] to focus tag [0-8]
riverctl map normal Super $i set-focused-tags $(($sticky_tag + $tags))
done
# Various media key mapping examples for both normal and locked mode which do
# not have a modifier
for mode in normal locked
do
# Eject the optical drive (well if you still have one that is)
riverctl map $mode None XF86Eject spawn 'eject -T'
# Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
# Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'
riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
riverctl map $mode None XF86AudioNext spawn 'playerctl next'
# Control screen backlight brightness with brightnessctl (https://github.com/Hummer12007/brightnessctl)
riverctl map $mode None XF86MonBrightnessUp spawn 'brightnessctl set +5%'
riverctl map $mode None XF86MonBrightnessDown spawn 'brightnessctl set 5%-'
done
# Set background and border color
riverctl background-color 0x002b36
riverctl border-color-focused 0xebdbb2
#riverctl border-color-focused 0x93a1a1
riverctl border-color-unfocused 0xa89984
# Set keyboard repeat rate
riverctl set-repeat 50 300
# Make all views with an app-id that starts with "float" and title "foo" start floating.
riverctl rule-add -app-id 'float*' -title 'foo' float
# Make all views with app-id "bar" and any title use client-side decorations
riverctl rule-add -app-id "bar" csd
riverctl rule-add -app-id "waterfox" ssd
riverctl spawn 'gsettings set org.gnome.desktop.wm.preferences button-layout ""'
riverctl rule-add -app-id "chromium" ssd
riverctl rule-add -app-id "thunderbird" ssd
riverctl rule-add -app-id "*org.libreoffice*" ssd
riverctl rule-add -app-id "inkscape" ssd
#rule for kitty
riverctl rule-add -app-id kitty float
# Set the default layout generator to be rivertile and start it.
# River will send the process group of the init executable SIGTERM on exit.
riverctl default-layout rivertile
rivertile -view-padding 2 -outer-padding 2 &
riverctl spawn sway-audio-idle-inhibit
riverctl spawn "/usr/bin/wired"
riverctl spawn "$HOME/.config/river/status"
riverctl spawn "$HOME/.config/river/bar"
riverctl spawn "$HOME/.config/river/swayidle"
#riverctl spawn $HOME/.config/river/autostart.sh

53
river/status Executable file
View File

@ -0,0 +1,53 @@
#!/bin/env sh
cpu() {
cpu="$(grep -o "^[^ ]*" /proc/loadavg)"
}
memory() {
memory="$(free -h | sed -n "2s/\([^ ]* *\)\{2\}\([^ ]*\).*/\2/p")"
}
disk() {
disk="$(df -h | awk 'NR==2{print $4}')"
}
datetime() {
datetime="$(date "+%a %d %b %I:%M %P")"
}
bat() {
read -r bat_status </sys/class/power_supply/BAT0/status
read -r bat_capacity </sys/class/power_supply/BAT0/capacity
bat="$bat_status $bat_capacity%"
}
vol() {
#vol="$([ "$(pamixer --get-mute)" = "false" ] && printf "%s%%" "$(pamixer --get-volume)" || printf '-')"
vol="$(amixer get Master | tail -1 | awk '{ print $5 }' | tr -d '[]')"
}
display() {
echo "all status [$memory] [$cpu] [$disk] [$vol] [$datetime]" >"$FIFO"
}
printf "%s" "$$" > "$XDG_RUNTIME_DIR/status_pid"
FIFO="$XDG_RUNTIME_DIR/sandbar"
[ -e "$FIFO" ] || mkfifo "$FIFO"
sec=0
while true; do
sleep 1 &
wait && {
[ $((sec % 15)) -eq 0 ] && memory
[ $((sec % 15)) -eq 0 ] && cpu
[ $((sec % 15)) -eq 0 ] && disk
[ $((sec % 60)) -eq 0 ] && bat
[ $((sec % 5)) -eq 0 ] && vol
[ $((sec % 5)) -eq 0 ] && datetime
[ $((sec % 5)) -eq 0 ] && display
sec=$((sec + 1))
}
done

4
river/swayidle Executable file
View File

@ -0,0 +1,4 @@
swayidle -w \
timeout 600 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f -c 000000'

4
river/swayidle.sh Executable file
View File

@ -0,0 +1,4 @@
swayidle -w \
timeout 600 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f -c 000000'

8
rofi/config.rasi Normal file
View File

@ -0,0 +1,8 @@
//@theme "/usr/share/rofi/themes/paper-float.rasi"
//@theme "/usr/share/rofi/themes/Monokai.rasi"
//@theme "/usr/share/rofi/themes/gruvbox-dark-hard.rasi"
@theme "/usr/share/rofi/themes/gruvbox-dark-hard.rasi"

14
rofi/leave/leave.sh Normal file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
choice=$(printf "Lock\nLogout\nSuspend\nReboot\nShutdown" | rofi -dmenu)
if [[ $choice == "Lock" ]];then
bash ~/.config/system_scripts/wayland_session_lock
elif [[ $choice == "Logout" ]];then
pkill -KILL -u "$USER"
elif [[ $choice == "Suspend" ]];then
systemctl suspend
elif [[ $choice == "Reboot" ]];then
systemctl reboot
elif [[ $choice == "Shutdown" ]];then
systemctl poweroff
fi

1
sway/bar.sh Executable file
View File

@ -0,0 +1 @@
while echo "RAM:$(free -h | awk '/^Mem:/ {print $3 "/" $2}') Disk:$(df -Ph | grep "/home" | awk {'print $4"/"$2'}) Vol:$(amixer get Master | tail -1 | awk '{ print $5 }' | tr -d '[]') $(date '+%e %b %Y %a %k:%M:%S')"; do sleep 1; done

248
sway/config Normal file
View File

@ -0,0 +1,248 @@
# 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
#set $menu bemenu-run
#set bemenu-run -i -l 20 --fb "#282828" --ff "#ebdbb2" --nb "#282828" --nf "#ebdbb2" --tb "#282828" --hb "#282828" --tf "#fb4934" --hf "#fabd2f" --nf "#ebdbb2" --af "#ebdbb2" --ab "#282828"
set $menu rofi -show run
set $lock swaylock
set $idle-loc swaylock & swayidle -w \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f -c 000000'
#
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg /home/dev/Downloads/1388190-miyazaki-wallpaper-1920x1080-hd.jpg fill
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
output VGA-1 resolution 1920x1080 position 0,0
output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
exec /usr/bin/wired
### Idle configuration
#
# Example configuration:
#
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 '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+c kill
# Start your launcher
bindsym $mod+m exec $menu
bindsym $mod+Shift+p exec sway-screenshot -m region
# 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
#
#
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"
#
# Utilities:
#
# Special keys to adjust volume via PulseAudio
bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%
bindsym --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle
# Special keys to adjust brightness via brightnessctl
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
# Special key to take a screenshot with grim
bindsym Print exec grim
#
#custom bindings
bindsym $mod+Shift+q exec $idle-loc
# Status Bar:
#
set $mystatus = ~/.config/sway/bar.sh
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
# 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 %X'; do sleep 1; done
status_command ~/.config/sway/bar.sh
colors {
statusline #fbf1c7
background #1d2021
focused_workspace #fbf1c7 #fbf1c7 #000000
#inactive_workspace #ebdbb2 #32323200 #5c5c5c
}
}
client.background #1d2021
client.focused #fbf1c7 #fbf1c7 #000000 #fbf1c7 #fbf1c7
include ./config.d/*

View File

@ -0,0 +1,16 @@
# sway does not set DISPLAY/WAYLAND_DISPLAY in the systemd user environment
# See FS#63021
# Adapted from xorg's 50-systemd-user.sh, which achieves a similar goal.
# Upstream refuses to set XDG_CURRENT_DESKTOP so we have to.
exec systemctl --user set-environment XDG_CURRENT_DESKTOP=sway
exec systemctl --user import-environment DISPLAY \
SWAYSOCK \
WAYLAND_DISPLAY \
XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY \
SWAYSOCK \
XDG_CURRENT_DESKTOP=sway \
WAYLAND_DISPLAY

0
swayidle/config Normal file
View File

51
swaylock/config Executable file
View File

@ -0,0 +1,51 @@
ignore-empty-password
font=Ubuntu
clock
timestr=%R
datestr=%a, %e of %B
screenshots
fade-in=0.2
effect-blur=20x2
effect-greyscale
effect-scale=0.3
indicator
indicator-radius=200
indicator-thickness=20
indicator-caps-lock
key-hl-color=880033
separator-color=00000000
inside-color=00000099
inside-clear-color=ffd20400
inside-caps-lock-color=009ddc00
inside-ver-color=d9d8d800
inside-wrong-color=ee2e2400
ring-color=231f20D9
ring-clear-color=231f20D9
ring-caps-lock-color=231f20D9
ring-ver-color=231f20D9
ring-wrong-color=231f20D9
line-color=00000000
line-clear-color=ffd204FF
line-caps-lock-color=009ddcFF
line-ver-color=d9d8d8FF
line-wrong-color=ee2e24FF
text-clear-color=ffd20400
text-ver-color=d9d8d800
text-wrong-color=ee2e2400
bs-hl-color=ee2e24FF
caps-lock-key-hl-color=ffd204FF
caps-lock-bs-hl-color=ee2e24FF
disable-caps-lock-text
text-caps-lock-color=009ddc

20
wofi/config Normal file
View File

@ -0,0 +1,20 @@
hide_scroll=true
show=drun
width=40%
lines=8
line_wrap=word
term=kitty
allow_markup=true
always_parse_args=false
show_all=true
print_command=true
layer=overlay
allow_images=true
sort_order=alphabetical
gtk_dark=true
prompt=
image_size=20
display_generic=false
location=center
key_expand=Tab
insensitive=false

40
wofi/style.css Normal file
View File

@ -0,0 +1,40 @@
* {
font-family: JetBrainsMono;
color: #e5e9f0;
background: transparent;
}
#window {
background: #1d2021;
margin: auto;
padding: 10px;
border-radius: 1px;
border: 3px solid #fbf1c7;
}
#input {
padding: 8px;
margin-bottom: 10px;
border-radius: 8px;
}
#outer-box {
padding: 20px;
}
#img {
margin-right: 6px;
}
#entry {
padding: 10px;
border-radius: 10px;
}
#entry:selected {
background-color: #2e3440;
}
#text {
margin: 2px;
}

47
wofi/style_bak.css Normal file
View File

@ -0,0 +1,47 @@
window {
margin: 5px;
border: 2px solid yellow;
border-radius: 15px;
background-color: black;
}
#input {
margin: 15px;
border: 2px gray;
background-color: white;
}
#inner-box {
margin: 5px;
background-color: black;
}
#outer-box {
margin: 5px;
border: 2px black ;
border-radius: 25px;
background-color: black;
}
#scroll {
margin: 5px;
}
#text {
margin: 5px;
color: black;
}
#entry {
margin: 5px;
background-color: yellow;
border-radius: 5px;
}
#entry:selected {
background-color: white;
}
#img {
}