Add old dotfiles

This commit is contained in:
venomade committed 2025-02-27 17:06:42 +00:00
commit 1cace80e48
192 files changed
+13538

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
# My Dotfiles
**Purple & Black i3-style SwayWM config**
font: [ZedMono Nerd Font](https://www.nerdfonts.com/font-downloads)
+27
View File
@@ -0,0 +1,27 @@
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
alias ec=emacsclient
+471
View File
@@ -0,0 +1,471 @@
# See dunst(5) for all configuration options
[global]
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a window manager that exports the
# _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern window managers.
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = none
### Geometry ###
# dynamic width from 0 to 300
# width = (0, 300)
# constant width of 300
width = (220,300)
# The maximum height of a single notification, excluding the frame.
height = 300
# Position the notification in the top right corner
origin = bottom-right
# Offset from the origin
offset = 4x4
# Scale factor. It is auto-detected if value is 0.
scale = 0
# Maximum number of notification (0 means no limit)
notification_limit = 20
### Progress bar ###
# Turn on the progess bar. It appears when a progress hint is passed with
# for example dunstify -h int:value:12
progress_bar = true
# Set the progress bar height. This includes the frame, so make sure
# it's at least twice as big as the frame width.
progress_bar_height = 10
# Set the frame width of the progress bar
progress_bar_frame_width = 1
# Set the minimum width for the progress bar
progress_bar_min_width = 150
# Set the maximum width for the progress bar
progress_bar_max_width = 300
# Corner radius for the progress bar. 0 disables rounded corners.
progress_bar_corner_radius = 0
# Corner radius for the icon image.
icon_corner_radius = 0
# Show how many messages are currently hidden (because of
# notification_limit).
indicate_hidden = yes
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing window manager is
# present (e.g. xcompmgr, compiz, etc.). (X11 only)
transparency = 0
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
# If gap_size is greater than 0, this setting will be ignored.
separator_height = 2
# Padding between text and separator.
padding = 8
# Horizontal padding.
horizontal_padding = 8
# Padding between text and icon.
text_icon_padding = 0
# Defines width in pixels of frame around the notification window.
# Set to 0 to disable.
frame_width = 3
# Defines color of the frame around the notification window.
frame_color = "#000000"
# Size of gap to display between notifications - requires a compositor.
# If value is greater than 0, separator_height will be ignored and a border
# of size frame_width will be drawn around each notification instead.
# Click events on gaps do not currently propagate to applications below.
gap_size = 0
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = frame
# Sort type.
# possible values are:
# * id: sort by id
# * urgency_ascending: sort by urgency (low then normal then critical)
# * urgency_descending: sort by urgency (critical then normal then low)
# * update: sort by update (most recent always at the top)
sort = yes
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
# A client can set the 'transient' hint to bypass this. See the rules
# section for how to disable this if necessary
# idle_threshold = 120
### Text ###
font = ZedMono Nerd Font 10
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.
line_height = 0
# Possible values are:
# full: Allow a small subset of html markup in notifications:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
# <https://docs.gtk.org/Pango/pango_markup.html>.
#
# strip: This setting is provided for compatibility with some broken
# clients that send markup even though it's not enabled on the
# server. Dunst will try to strip the markup but the parsing is
# simplistic so using this option outside of matching rules for
# specific applications *IS GREATLY DISCOURAGED*.
#
# no: Disable markup parsing, incoming notifications will be treated as
# plain text. Dunst will not advertise that it has the body-markup
# capability if this is set as a global setting.
#
# It's important to note that markup inside the format option will be parsed
# regardless of what this is set to.
markup = full
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# %n progress value if set without any extra characters
# %% Literal %
# Markup is allowed
format = "<b>%s</b>\n%b"
# Alignment of message text.
# Possible values are "left", "center" and "right".
alignment = left
# Vertical alignment of message text and icon.
# Possible values are "top", "center" and "bottom".
vertical_alignment = center
# Show age of message if message is older than show_age_threshold
# seconds.
# Set to -1 to disable.
show_age_threshold = 60
# Specify where to make an ellipsis in long lines.
# Possible values are "start", "middle" and "end".
ellipsize = middle
# Ignore newlines '\n' in notifications.
ignore_newline = no
# Stack together notifications with the same content
stack_duplicates = true
# Hide the count of stacked notifications with the same content
hide_duplicate_count = false
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
### Icons ###
# Recursive icon lookup. You can set a single theme, instead of having to
# define all lookup paths.
enable_recursive_icon_lookup = true
# Set icon theme (only used for recursive icon lookup)
icon_theme = Adwaita
# You can also set multiple icon themes, with the leftmost one being used first.
# icon_theme = "Adwaita, breeze"
# Align icons left/right/top/off
icon_position = left
# Scale small icons up to this size, set to 0 to disable. Helpful
# for e.g. small files or high-dpi screens. In case of conflict,
# max_icon_size takes precedence over this.
min_icon_size = 16
# Scale larger icons down to this size, set to 0 to disable
max_icon_size = 16
# Paths to default icons (only neccesary when not using recursive icon lookup)
icon_path = /usr/share/icons/Adwaita/symbolic/status/:/usr/share/icons/Adwaita/symbolic/devices/
### History ###
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 20
### Misc/Advanced ###
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/xdg-open
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true
# Define the title of the windows spawned by dunst
title = Dunst
# Define the class of the windows spawned by dunst
class = Dunst
# Define the corner radius of the notification window
# in pixel size. If the radius is 0, you have no rounded
# corners.
# The radius will be automatically lowered if it exceeds half of the
# notification height to avoid clipping text and/or icons.
corner_radius = 0
# Ignore the dbus closeNotification message.
# Useful to enforce the timeout set by dunst configuration. Without this
# parameter, an application may close the notification sent before the
# user defined timeout.
ignore_dbusclose = false
### Wayland ###
# These settings are Wayland-specific. They have no effect when using X11
# Uncomment this if you want to let notications appear under fullscreen
# applications (default: overlay)
# layer = top
# Set this to true to use X11 output on Wayland.
force_xwayland = false
### Legacy
# Use the Xinerama extension instead of RandR for multi-monitor support.
# This setting is provided for compatibility with older nVidia drivers that
# do not support RandR and using it on systems that support RandR is highly
# discouraged.
#
# By enabling this setting dunst will not be able to detect when a monitor
# is connected or disconnected which might break follow mode if the screen
# layout changes.
force_xinerama = false
### mouse
# Defines list of actions for each mouse event
# Possible values are:
# * none: Don't do anything.
# * do_action: Invoke the action determined by the action_name rule. If there is no
# such action, open the context menu.
# * open_url: If the notification has exactly one url, open it. If there are multiple
# ones, open the context menu.
# * close_current: Close current notification.
# * close_all: Close all notifications.
# * context: Open context menu for the notification.
# * context_all: Open context menu for all notifications.
# These values can be strung together for each mouse event, and
# will be executed in sequence.
mouse_left_click = close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all
# Experimental features that may or may not work correctly. Do not expect them
# to have a consistent behaviour across releases.
[experimental]
# Calculate the dpi to use on a per-monitor basis.
# If this setting is enabled the Xft.dpi value will be ignored and instead
# dunst will attempt to calculate an appropriate dpi value for each monitor
# using the resolution and physical size. This might be useful in setups
# where there are multiple screens with very different dpi values.
per_monitor_dpi = false
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#b09ade"
foreground = "#000000"
timeout = 10
# Icon for notifications with low urgency, uncomment to enable
#default_icon = /path/to/icon
[urgency_normal]
background = "#b09ade"
foreground = "#000000"
timeout = 10
override_pause_level = 30
# Icon for notifications with normal urgency, uncomment to enable
#default_icon = /path/to/icon
[urgency_critical]
background = "#900000"
foreground = "#ffffff"
frame_color = "#ff0000"
timeout = 0
override_pause_level = 60
# Icon for notifications with critical urgency, uncomment to enable
#default_icon = /path/to/icon
# Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages.
#
# Messages can be matched by
# appname (discouraged, see desktop_entry)
# body
# category
# desktop_entry
# icon
# match_transient
# msg_urgency
# stack_tag
# summary
#
# and you can override the
# background
# foreground
# format
# frame_color
# fullscreen
# new_icon
# set_stack_tag
# set_transient
# set_category
# timeout
# urgency
# icon_position
# skip_display
# history_ignore
# action_name
# word_wrap
# ellipsize
# alignment
# hide_text
# override_pause_level
#
# Shell-like globbing will get expanded.
#
# Instead of the appname filter, it's recommended to use the desktop_entry filter.
# GLib based applications export their desktop-entry name. In comparison to the appname,
# the desktop-entry won't get localized.
#
# You can also allow a notification to appear even when paused. Notification will appear whenever notification's override_pause_level >= dunst's paused level.
# This can be used to set partial pause modes, where more urgent notifications get through, but less urgent stay paused. To do that, you can override the following in the rules:
# override_pause_level = X
# SCRIPTING
# You can specify a script that gets run when the rule matches by
# setting the "script" option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: It might be helpful to run dunst -print in a terminal in order
# to find fitting options for rules.
# Disable the transient hint so that idle_threshold cannot be bypassed from the
# client
#[transient_disable]
# match_transient = yes
# set_transient = no
#
# Make the handling of transient notifications more strict by making them not
# be placed in history.
#[transient_history_ignore]
# match_transient = yes
# history_ignore = yes
# fullscreen values
# show: show the notifications, regardless if there is a fullscreen window opened
# delay: displays the new notification, if there is no fullscreen window active
# If the notification is already drawn, it won't get undrawn.
# pushback: same as delay, but when switching into fullscreen, the notification will get
# withdrawn from screen again and will get delayed like a new notification
#[fullscreen_delay_everything]
# fullscreen = delay
#[fullscreen_show_critical]
# msg_urgency = critical
# fullscreen = show
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
# # This notification will not be displayed
# summary = "foobar"
# skip_display = true
#[history-ignore]
# # This notification will not be saved in history
# summary = "foobar"
# history_ignore = yes
#[skip-display]
# # This notification will not be displayed, but will be included in the history
# summary = "foobar"
# skip_display = yes
#[signed_on]
# appname = Pidgin
# summary = "*signed on*"
# urgency = low
#
#[signed_off]
# appname = Pidgin
# summary = *signed off*
# urgency = low
#
#[says]
# appname = Pidgin
# summary = *says*
# urgency = critical
#
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#
#[stack-volumes]
# appname = "some_volume_notifiers"
# set_stack_tag = "volume"
#
# vim: ft=cfg
+8
View File
@@ -0,0 +1,8 @@
font=ZedMono Nerd Font:size=14
[cursor]
style=beam
[colors]
background=181818
foreground=e4e4ef
+108
View File
@@ -0,0 +1,108 @@
# i3status configuration file.
# b
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
output_format = "i3bar"
colors = true
# color_good = "#ffff66" #"#00e6ac" #"#33cc3" #"#F08D0C"
interval = 5
markup="pango"
}
#pink #ff80bf #fa4c7e
#yellow #ffff66 #fdd243
#green #aaff80 #78da59
#Dark blue #1a8cff #166cd6
#light blue #99ccff #33bdf5
#Grey Shadow #b3b3b3 #8d8e90
#Orange #ffa64d #fba137
order += "read_file powerprofile"
order += "cpu_usage"
order += "memory"
order += "disk /"
order += "wireless _first_"
#order += "ethernet enp4s0"
order += "battery 0"
order += "read_file brightness"
order += "volume master"
order += "time"
wireless _first_ {
# format_up = " [%essid ]"
# format_down = " [down]"
format_up = "<span color='#73ABFF'>  %essid </span>"
format_down = "  Wifi down "
}
battery 0 {
format = "<span color='#FEFF72'> %status %percentage </span>"
format_down = "No battery"
#'#fa4c7e'
status_chr = " "
status_bat = " "
status_full = " "
status_unk = "[? ukwn ] "
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = 10
#last_full_capacity = true
hide_seconds = true
integer_battery_capacity = true
}
volume master {
#format = "<span color='#CEA8FF'>[ ]: %volume </span>"
format = "<span color='#6fdc6f'>  %volume </span>"
format_muted = "<span color='#cfafc8'>  %volume </span>"
device = "default"
mixer = "Master"
mixer_idx = 0
}
time {
#format = "<span color='#ffc125'>%time</span>"
format = "<span color='#bdbbba'> %Y-%m-%d %H:%M:%S </span>"
#format = "<span color='#ffff00'>%time</span>"
#format_time = "  %I:%M %p |  %a [%d]-%b [%m]"
#format_time = "%H:%M %Z"
separator_block_width = 0
min_width = 100
#format_time = "  %I:%M %p // %a [%d]-%b [%m]"
}
ethernet enp4s0 {
# if you use %speed, i3status requires root privileges
format_up =" <span color='#33bdf5'> enp4s0:  %ip</span>"
format_down = ""
}
disk "/" {
format = "<span color='#e42269' > 󰋊 %used </span>"
}
cpu_usage {
format = "<span color='#e42269' >  %usage </span>"
}
memory {
format = "<span color='#e42269' >  %used </span>"
}
read_file powerprofile {
path = "/tmp/powerprofile"
format = "<span color='#e42269' > %content </span>"
format_bad = "..."
}
read_file brightness {
path = "/tmp/brightness_status"
format = "<span color='#6fdc6f' > %content </span>"
format_bad = "..."
}
+266
View File
@@ -0,0 +1,266 @@
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left n
set $down e
set $up i
set $right o
# Your preferred terminal emulator
set $term foot
# 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 | wmenu | xargs swaymsg exec --
set $menu "dmenu_run -fn 'ZedMono Nerd Font-12' -i -b -nb '#000000' -nf '#ffffff' -sb '#b299db' -sf '#000000' -p 'run>'"
set $dmenu "~/.local/bin/j4dmenu"
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg /home/venomade/Pictures/Papes/PurplePhoneLines.jpg fill
output eDP-1 resolution 1920x1080
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### 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.
input * {
xkb_layout us
xkb_variant colemak
}
input "2:7:SynPS/2_Synaptics_TouchPad" {
tap enabled
natural_scroll enabled
}
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Return exec $term
# Open an emacs frame
bindsym $mod+Shift+Return exec emacsclient -c -a emacs
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $dmenu
bindsym $mod+Shift+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+r reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+c 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+h 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"
### Utility Buttons
# Volume Mute
bindsym XF86AudioMute exec ~/.local/bin/volume mute
# Microphone Mute
bindsym XF86AudioMicMute exec ~/.local/bin/volume mute-mic
# Volume Up/Down
bindsym XF86AudioRaiseVolume exec ~/.local/bin/volume up
bindsym XF86AudioLowerVolume exec ~/.local/bin/volume down
# Brightness Up/Down
bindsym XF86MonBrightnessUp exec ~/.local/bin/brightness up
bindsym XF86MonBrightnessDown exec ~/.local/bin/brightness down
# Power Profiles
bindsym XF86Go exec ~/.local/bin/ppctl power-saver
bindsym Cancel exec ~/.local/bin/ppctl balanced
bindsym XF86Favorites exec ~/.local/bin/ppctl performance
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position bottom
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command i3status
font "ZedMono Nerd Font 10"
colors {
statusline #ffffff
# background #323232
background #000000
inactive_workspace #00000000 #00000000 #25312b
focused_workspace #00000000 #000000ff #ffffffaa
}
}
gaps inner 4
# for_window [title="^.*"] title_format ""
default_border pixel 3
default_floating_border pixel 3
# Dracula theme [https://draculatheme.com/]
# class border bground text indicator child_border
#client.focused #6272A4 #6272A4 #F8F8F2 #6272A4 #6272A4
client.focused #000000 #000000 #F8F8F2 #000000 #000000
client.focused_inactive #44475A #44475A #F8F8F2 #44475A #44475A
client.unfocused #282A36 #282A36 #BFBFBF #282A36 #282A36
client.urgent #44475A #FF5555 #F8F8F2 #FF5555 #FF5555
client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36
client.background #F8F8F2
include /etc/sway/config.d/*
+52
View File
@@ -0,0 +1,52 @@
#!/bin/bash
function get_brightness {
cntb=$(brightnessctl g)
maxb=$(brightnessctl m)
echo $(( ($cntb * 100) / $maxb ))
}
# Function to get the icon based on the brightness level
function get_brightness_icon {
brightness_level=$1
if [ $brightness_level -le 33 ]; then
echo "󰃞"
elif [ $brightness_level -le 66 ]; then
echo "󰃟"
else
echo "󰃠"
fi
}
# Function to set the contents of "/tmp/brightness_status" to the current brightness level
function set_tmp_brightness_status {
brightness_level=$(get_brightness)
icon=$(get_brightness_icon $brightness_level)
echo "$icon $brightness_level%" > /tmp/brightness_status
}
function send_notification {
brightness_level=$(get_brightness)
icon=$(get_brightness_icon $brightness_level)
# Make the bar with the special character ─ (it's not dash -)
# https://en.wikipedia.org/wiki/Box-drawing_character
bar=$(seq -s "─" $(($brightness_level / 5)) | sed 's/[0-9]//g')
# Send the notification
dunstify -i display-brightness-symbolic -t 2500 -r 2593 -u normal " $bar"
}
case $1 in
up)
# Set the brightness level up (+ 5%)
brightnessctl s 5%+
send_notification
set_tmp_brightness_status
;;
down)
# Set the brightness level down (- 5%)
brightnessctl s 5%-
send_notification
set_tmp_brightness_status
;;
esac
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
i3status | (read line; echo "$line"; read line ; echo "$line" ; read line ; echo "$line" ; while true
do
read line
json_array="$(echo $line | sed -e 's/^,//')"
echo ",$json_array"
done)
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
j4-dmenu-desktop --dmenu="dmenu -fn 'ZedMono Nerd Font-12' -i -b -nb '#000000' -nf '#ffffff' -sb '#b299db' -sf '#000000' -p 'drun>'"
+66
View File
@@ -0,0 +1,66 @@
#!/bin/bash
function set_profile {
case $1 in
performance)
powerprofilesctl set performance
;;
balanced)
powerprofilesctl set balanced
;;
power-saver)
powerprofilesctl set power-saver
;;
*)
echo "Invalid profile. Please use 'performance', 'balanced', or 'power-saver'."
;;
esac
}
function get_profile {
powerprofilesctl get
}
function get_nficon {
profile=$1
case $profile in
performance)
echo "󰓅"
;;
balanced)
echo "󰾅"
;;
power-saver)
echo "󰾆"
;;
*)
echo "Invalid profile"
;;
esac
}
function send_notification {
profile=$(get_profile)
icon="power-profile-$profile-symbolic"
# Send the notification
dunstify -i $icon -t 2500 -r 2593 -u normal "Power Profile: $profile"
}
# Function to set the contents of "/tmp/powerprofile" to the current profile
function set_tmp_powerprofile {
profile=$(get_profile)
nficon=$(get_nficon $profile)
echo "$nficon $profile" > /tmp/powerprofile
}
case $1 in
performance|balanced|power-saver)
set_profile $1
send_notification
set_tmp_powerprofile
;;
*)
echo "Usage: $0 {performance|balanced|power-saver}"
exit 1
;;
esac
+78
View File
@@ -0,0 +1,78 @@
#!/bin/bash
function get_volume {
pactl get-sink-volume @DEFAULT_SINK@ | awk '/Volume:/ {print $5}' | cut -d '/' -f 1 | sed 's/%//g'
}
function is_mute {
#amixer get Master | grep '%' | grep -oE '[^ ]+$' | grep off > /dev/null
pactl list sinks | grep -A 10 'State: ' | grep -q 'Mute: yes'
}
function is_mic_mute {
pactl list sources | grep -A 10 'State: ' | grep -q 'Mute: yes'
}
function get_icon {
volume=$(get_volume)
if is_mute; then
echo "audio-volume-muted-symbolic"
elif (( volume <= 39 )); then
echo "audio-volume-low-symbolic"
elif (( volume <= 74 )); then
echo "audio-volume-medium-symbolic"
elif (( volume <= 100 )); then
echo "audio-volume-high-symbolic"
else
echo "audio-volume-overamplified-symbolic"
fi
}
function send_notification {
volume=$(get_volume)
icon=$(get_icon)
# Make the bar with the special character ─ (it's not dash -)
# https://en.wikipedia.org/wiki/Box-drawing_character
bar=$(seq -s "─" $(($volume / 5)) | sed 's/[0-9]//g')
# Send the notification
dunstify -i "$icon" -t 2500 -r 2593 -u normal " $bar"
}
case $1 in
up)
# Set the volume on (if it was muted)
#amixer -D pulse set Master on > /dev/null
# Up the volume (+ 5%)
# amixer -D pu lse sset Master 5%+ > /dev/null
volume=$(get_volume)
if [[ $volume -le 99 ]]; then
pactl set-sink-volume @DEFAULT_SINK@ +5%
else
pactl set-sink-volume @DEFAULT_SINK@ 100%
fi
send_notification
;;
down)
# amixer -D pulse set Master on > /dev/null
# amixer -D pulse sset Master 5%- > /dev/null
pactl set-sink-volume @DEFAULT_SINK@ -5%
send_notification
;;
mute)
# Toggle mute
pactl set-sink-mute @DEFAULT_SINK@ toggle
if is_mute ; then
dunstify -i audio-volume-muted -t 2500 -r 2593 -u normal "Mute"
else
send_notification
fi
;;
mute-mic)
pactl set-source-mute @DEFAULT_SOURCE@ toggle
if is_mic_mute ; then
dunstify -i microphone-sensitivity-muted-symbolic -t 2500 -r 2593 -u normal "Microphone Muted"
else
dunstify -i microphone-sensitivity-high-symbolic -t 2500 -r 2593 -u normal "Microphone Unmuted"
fi
;;
esac
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

+42
View File
@@ -0,0 +1,42 @@
#!/bin/bash
# Define an associative array mapping dotfile names to their corresponding paths
declare -A dotfiles=(
["bashrc"]="$HOME/.bashrc"
["papes/PurplePhoneLines.jpg"]="$HOME/Pictures/Papes/PurplePhoneLines.jpg"
["local/bin"]="$HOME/.local/bin"
["config/foot"]="$HOME/.config/foot"
["config/sway"]="$HOME/.config/sway"
["config/dunst"]="$HOME/.config/dunst"
["config/i3status/"]="$HOME/.config/i3status"
# Add more dotfiles here as needed
)
# Function to create symbolic links
create_symlink() {
local source=$1
local target=$2
# Check if the target file already exists
if [ -e "$target" ]; then
echo "Target file '$target' already exists. Skipping..."
return
fi
# Check if the target directory exists, if not, create it
local target_dir=$(dirname "$target")
if [ ! -d "$target_dir" ]; then
mkdir -p "$target_dir"
fi
# Create symbolic link
ln -s "$source" "$target"
echo "Created symbolic link: $source -> $target"
}
# Loop through each dotfile and create symbolic links
for file in "${!dotfiles[@]}"; do
create_symlink "$(pwd)/$file" "${dotfiles[$file]}"
done
echo "Dotfile setup complete."
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
#GIT PUSH
git add *
git commit -m "Dotfiles Update: $(date)"
git push -u origin master