From e94ff95428443f93d80768daa9f285eeb70b1e9c Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 16 Apr 2021 06:09:09 -0500 Subject: [PATCH] Getting things setup for sway wayland --- alacritty/alacritty.yml | 2 +- awesome/keybindings.fnl | 2 +- bpytop/bpytop.conf | 150 +++++++++++++++++++++++++++ bpytop/error.log | 1 + bpytop/themes/snazzy.theme | 89 ++++++++++++++++ fish/config.fish | 4 +- picom.conf | 1 + qutebrowser/config.py | 17 +-- qutebrowser/qsettings/QtProject.conf | 4 +- rofi/launchers-git/laptop.rasi | 2 +- scripts/screenshot | 3 + scripts/waystart | 2 + scripts/wofipass | 62 +++++++++++ scripts/wofiqute | 51 +++++++++ scripts/yt | 4 +- sway/config | 36 +++++-- waybar/config | 6 +- waybar/style.css | 73 ++++++++----- wofi/config | 4 +- wofi/style.css | 53 ++++++++++ 20 files changed, 513 insertions(+), 53 deletions(-) create mode 100644 bpytop/bpytop.conf create mode 100644 bpytop/error.log create mode 100644 bpytop/themes/snazzy.theme create mode 100755 scripts/screenshot create mode 100755 scripts/waystart create mode 100755 scripts/wofipass create mode 100755 scripts/wofiqute create mode 100644 wofi/style.css diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml index 3533668..07739e5 100644 --- a/alacritty/alacritty.yml +++ b/alacritty/alacritty.yml @@ -318,7 +318,7 @@ colors: # # Window opacity as a floating point number from `0.0` to `1.0`. # The value `0.0` is completely transparent and `1.0` is opaque. -background_opacity: 0.70 +background_opacity: 0.80 #selection: #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index 1252e80..75bb9b5 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -109,7 +109,7 @@ {:description "lua execute prompt" :group "awesome"}) ;; utilities - (awful.key [] "Print" (fn [] (awful.spawn "flameshot gui")) + (awful.key [] "Print" (fn [] (awful.spawn "screenshot")) {:description "screenshot" :group "utilities"}) (awful.key [modkey shift] "p" (fn [] (awful.spawn "flameshot gui")) {:description "screenshot" :group "utilities"}) diff --git a/bpytop/bpytop.conf b/bpytop/bpytop.conf new file mode 100644 index 0000000..a6343ba --- /dev/null +++ b/bpytop/bpytop.conf @@ -0,0 +1,150 @@ +#? Config file for bpytop v. 1.0.63 + +#* Color theme, looks for a .theme file in "/usr/[local/]share/bpytop/themes" and "~/.config/bpytop/themes", "Default" for builtin default theme. +#* Prefix name by a plus sign (+) for a theme located in user themes folder, i.e. color_theme="+monokai" +color_theme="+snazzy" + +#* If the theme set background should be shown, set to False if you want terminal background transparency +theme_background=False + +#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false. +truecolor=True + +#* Manually set which boxes to show. Available values are "cpu mem net proc", seperate values with whitespace. +shown_boxes="cpu mem net proc" + +#* Update time in milliseconds, increases automatically if set below internal loops processing time, recommended 2000 ms or above for better sample times for graphs. +update_ms=1800 + +#* Processes update multiplier, sets how often the process list is updated as a multiplier of "update_ms". +#* Set to 2 or higher to greatly decrease bpytop cpu usage. (Only integers) +proc_update_mult=2 + +#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu responsive", +#* "cpu lazy" updates top process over time, "cpu responsive" updates top process directly. +proc_sorting="memory" + +#* Reverse sorting order, True or False. +proc_reversed=False + +#* Show processes as a tree +proc_tree=False + +#* Which depth the tree view should auto collapse processes at +tree_depth=3 + +#* Use the cpu graph colors in the process list. +proc_colors=True + +#* Use a darkening gradient in the process list. +proc_gradient=True + +#* If process cpu usage should be of the core it's running on or usage of the total available cpu power. +proc_per_core=False + +#* Show process memory as bytes instead of percent +proc_mem_bytes=True + +#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available, see: +#* https://psutil.readthedocs.io/en/latest/#psutil.cpu_times for attributes available on specific platforms. +#* Select from a list of detected attributes from the options menu +cpu_graph_upper="total" + +#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available, see: +#* https://psutil.readthedocs.io/en/latest/#psutil.cpu_times for attributes available on specific platforms. +#* Select from a list of detected attributes from the options menu +cpu_graph_lower="total" + +#* Toggles if the lower CPU graph should be inverted. +cpu_invert_lower=True + +#* Set to True to completely disable the lower CPU graph. +cpu_single_graph=False + +#* Shows the system uptime in the CPU box. +show_uptime=True + +#* Check cpu temperature, needs "osx-cpu-temp" on MacOS X. +check_temp=True + +#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors. +cpu_sensor=Auto + +#* Show temperatures for cpu cores also if check_temp is True and sensors has been found +show_coretemp=True + +#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine" +temp_scale="celsius" + +#* Draw a clock at top of screen, formatting according to strftime, empty string to disable. +draw_clock="%X" + +#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort. +background_update=True + +#* Custom cpu model name, empty string to disable. +custom_cpu_name="" + +#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with a comma ",". +#* Begin line with "exclude=" to change to exclude filter, oterwise defaults to "most include" filter. Example: disks_filter="exclude=/boot, /home/user" +disks_filter="" + +#* Show graphs instead of meters for memory values. +mem_graphs=False + +#* If swap memory should be shown in memory box. +show_swap=True + +#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk. +swap_disk=False + +#* If mem box should be split to also show disks info. +show_disks=True + +#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar. +only_physical=True + +#* Read disks list from /etc/fstab. This also disables only_physical. +use_fstab=False + +#* Toggles if io stats should be shown in regular disk usage view +show_io_stat=True + +#* Toggles io mode for disks, showing only big graphs for disk read/write speeds. +io_mode=False + +#* Set to True to show combined read/write io graphs in io mode. +io_graph_combined=False + +#* Set the top speed for the io graphs in MiB/s (10 by default), use format "device:speed" seperate disks with a comma ",". +#* Example: "/dev/sda:100, /dev/sdb:20" +io_graph_speeds="" + +#* Set fixed values for network graphs, default "10M" = 10 Mibibytes, possible units "K", "M", "G", append with "bit" for bits instead of bytes, i.e "100mbit" +net_download="10M" +net_upload="10M" + +#* Start in network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest. +net_auto=True + +#* Sync the scaling for download and upload to whichever currently has the highest scale +net_sync=False + +#* If the network graphs color gradient should scale to bandwith usage or auto scale, bandwith usage is based on "net_download" and "net_upload" values +net_color_fixed=False + +#* Starts with the Network Interface specified here. +net_iface="" + +#* Show battery stats in top right if battery is present +show_battery=True + +#* Show init screen at startup, the init screen is purely cosmetical +show_init=False + +#* Enable check for new version from github.com/aristocratos/bpytop at start. +update_check=True + +#* Set loglevel for "~/.config/bpytop/error.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG". +#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info. +log_level=WARNING diff --git a/bpytop/error.log b/bpytop/error.log new file mode 100644 index 0000000..335ee84 --- /dev/null +++ b/bpytop/error.log @@ -0,0 +1 @@ +13/04/21 (10:07:06) | WARNING: No theme named "+nord" found! diff --git a/bpytop/themes/snazzy.theme b/bpytop/themes/snazzy.theme new file mode 100644 index 0000000..49b6eb4 --- /dev/null +++ b/bpytop/themes/snazzy.theme @@ -0,0 +1,89 @@ +#Bashtop theme with snazzy palette +#by Chris Cochrun + +# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255" +# example for white: "#ffffff", "#ff" or "255 255 255". + +# All graphs and meters can be gradients +# For single color graphs leave "mid" and "end" variable empty. +# Use "start" and "end" variables for two color gradient +# Use "start", "mid" and "end" for three color gradient + +# Main background, empty for terminal default, need to be empty if you want transparent background +theme[main_bg]="" + +# Main text color +theme[main_fg]="#e2e4e5" + +# Title color for boxes +theme[title]="#57c7ff" + +# Higlight color for keyboard shortcuts +theme[hi_fg]="#f3f99d" + +# Background color of selected item in processes box +theme[selected_bg]="#34353e" + +# Foreground color of selected item in processes box +theme[selected_fg]="#eff0eb" + +# Color of inactive/disabled text +theme[inactive_fg]="#a5a5a9" + +# Misc colors for processes box including mini cpu graphs, details memory graph and details status text +theme[proc_misc]="#f3f99d" + +# Cpu box outline color +theme[cpu_box]="#f1f1f0" + +# Memory/disks box outline color +theme[mem_box]="#f1f1f0" + +# Net up/down box outline color +theme[net_box]="#f1f1f0" + +# Processes box outline color +theme[proc_box]="#f1f1f0" + +# Box divider line and small boxes line color +theme[div_line]="#f1f1f0" + +# Temperature graph colors +theme[temp_start]="#5af78e" +theme[temp_mid]="#f3f99d" +theme[temp_end]="#ff5c57" + +# CPU graph colors +theme[cpu_start]="#5af78e" +theme[cpu_mid]="#f3f99d" +theme[cpu_end]="#ff5c57" + +# Mem/Disk free meter +theme[free_start]="#5af78e" +theme[free_mid]="#f3f99d" +theme[free_end]="#ff5c57" + +# Mem/Disk cached meter +theme[cached_start]="#5af78e" +theme[cached_mid]="#f3f99d" +theme[cached_end]="#ff5c57" + +# Mem/Disk available meter +theme[available_start]="#5af78e" +theme[available_mid]="#f3f99d" +theme[available_end]="#ff5c57" + +# Mem/Disk used meter +theme[used_start]="#5af78e" +theme[used_mid]="#f3f99d" +theme[used_end]="#ff5c57" + +# Download graph colors +theme[download_start]="#5af78e" +theme[download_mid]="#f3f99d" +theme[download_end]="#ff5c57" + +# Upload graph colors +theme[upload_start]="#5af78e" +theme[upload_mid]="#f3f99d" +theme[upload_end]="#ff5c57" diff --git a/fish/config.fish b/fish/config.fish index 02d50f1..a40e2c1 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -208,5 +208,5 @@ end ### ALIASES -alias pac "paru" -alias yeet "paru -Rcs" +alias yay "paru" +alias yeet "paru -Rns" diff --git a/picom.conf b/picom.conf index 1d6c7c0..a9b0515 100644 --- a/picom.conf +++ b/picom.conf @@ -210,6 +210,7 @@ opacity-rule = [ "70:class_g = 'TelegramDesktop'", "90:class_g = 'Joplin'", "100:class_g = 'firefox'", + "100:class_g = 'Gimp-2.10'", "100:class_g = 'dolphin'", "100:class_g = 'mpv'", "100:class_g = 'libreoffice'", diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 5a342a2..5fa3183 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -1328,7 +1328,7 @@ c.downloads.remove_finished = 8000 ## font setting, it's replaced with the fonts listed here. If set to an ## empty value, a system-specific monospace default is used. ## Type: List of Font, or Font -# c.fonts.default_family = [] +c.fonts.default_family = ['VictorMono Nerd Font'] ## Default font size to use. Whenever "default_size" is used in a font ## setting, it's replaced with the size listed here. Valid values are @@ -1379,7 +1379,7 @@ c.downloads.remove_finished = 8000 ## Font family for cursive fonts. ## Type: FontFamily -# c.fonts.web.family.cursive = '' +c.fonts.web.family.cursive = 'default_family' ## Font family for fantasy fonts. ## Type: FontFamily @@ -1387,7 +1387,7 @@ c.downloads.remove_finished = 8000 ## Font family for fixed fonts. ## Type: FontFamily -# c.fonts.web.family.fixed = '' +c.fonts.web.family.fixed = 'default_family' ## Font family for sans-serif fonts. ## Type: FontFamily @@ -1399,7 +1399,7 @@ c.downloads.remove_finished = 8000 ## Font family for standard fonts. ## Type: FontFamily -# c.fonts.web.family.standard = '' +c.fonts.web.family.standard = 'default_family' ## Default font size (in pixels) for regular text. ## Type: Int @@ -1547,7 +1547,7 @@ c.hints.selectors['all'].append('label') ## Make characters in hint strings uppercase. ## Type: Bool -# c.hints.uppercase = False +c.hints.uppercase = True ## Maximum time (in minutes) between two history items for them to be ## considered being from the same browsing session. Items with less time @@ -2029,7 +2029,7 @@ c.tabs.show_switching_delay = 600 ## Open a new window for every tab. ## Type: Bool -c.tabs.tabs_are_windows = True +c.tabs.tabs_are_windows = False ## Alignment of the text inside of tabs. ## Type: TextAlignment @@ -2266,7 +2266,7 @@ config.bind("J", "tab-prev") # config.bind('b', 'set-cmd-text -s :quickmark-load') # config.bind('cd', 'download-clear') # config.bind('co', 'tab-only') -config.bind("d", "close") +# config.bind("d", "close") # config.bind('f', 'hint') # config.bind('g$', 'tab-focus -1') # config.bind('g0', 'tab-focus 1') @@ -2487,5 +2487,8 @@ config.bind( "hint links spawn alacritty -e youtube-dl -o ~/Videos/%(title)s.%(ext)s {hint-url}", ) + +config.bind('d', 'tab-close') +config.bind('b', 'set-cmd-text -s :tab-select ') ## Bindings for MPV and YTDL # config.bind('o', 'spawn --userscript rofi') diff --git a/qutebrowser/qsettings/QtProject.conf b/qutebrowser/qsettings/QtProject.conf index c7b4004..178ebf8 100644 --- a/qutebrowser/qsettings/QtProject.conf +++ b/qutebrowser/qsettings/QtProject.conf @@ -1,6 +1,6 @@ [FileDialog] -history=file:///home/chris/Pictures, file:///home/chris/Downloads, file:///home/chris, file:///home/chris/Documents/TFC Stuff/newsletterpics, file:///home/chris/Videos/vimeo -lastVisited=file:///home/chris/Pictures +history=file:///home/chris/Downloads, file:///home/chris, file:///home/chris/Documents/TFC Stuff/newsletterpics, file:///home/chris/Videos/vimeo, file:///home/chris/Pictures/tfc +lastVisited=file:///home/chris/Pictures/tfc qtVersion=5.15.2 shortcuts=file:, file:///home/chris sidebarWidth=116 diff --git a/rofi/launchers-git/laptop.rasi b/rofi/launchers-git/laptop.rasi index 061ca4b..7a3e8f8 100644 --- a/rofi/launchers-git/laptop.rasi +++ b/rofi/launchers-git/laptop.rasi @@ -10,6 +10,6 @@ configuration { - font: "VictorMono Nerd Font 30.0"; + font: "VictorMono Nerd Font 12.0"; } @import "/home/chris/.dotfiles/rofi/launchers-git/blurry.rasi" diff --git a/scripts/screenshot b/scripts/screenshot new file mode 100755 index 0000000..bbc4342 --- /dev/null +++ b/scripts/screenshot @@ -0,0 +1,3 @@ +#!/bin/sh + +maim --hidecursor --select | xclip -selection clipboard -target image/png diff --git a/scripts/waystart b/scripts/waystart new file mode 100755 index 0000000..d72f521 --- /dev/null +++ b/scripts/waystart @@ -0,0 +1,2 @@ +#!/bin/sh +export QT_QPA_PLATFORMTHEME="qt5ct" diff --git a/scripts/wofipass b/scripts/wofipass new file mode 100755 index 0000000..bc3e5c0 --- /dev/null +++ b/scripts/wofipass @@ -0,0 +1,62 @@ +#!/usr/bin/env bash +# Very basic interface for pass using wofi + +# Get all password files and create an array +root=~/.password-store +CACHE=~/.local/tmp/pass_wofi +seat=seat0 + +list_passwords() { + shopt -s nullglob globstar + cd "${root}" || exit + pw_list=(**/*.gpg) + printf '%s\n' "${pw_list[@]%.gpg}" | sort -n + +} + +prompt='search for passwords...' +SECRET=$(list_passwords | wofi -i --width 700 --lines 20 --height 250 --prompt="${prompt}" --dmenu --cache-file ${CACHE}) + +# Ask whether pass, user or both are required + +options=("Password" \ + "User" \ + "User and password" \ + "QR-Code" \ + "OTP") + +option=$(printf '%s\n' "${options[@]%}" | wofi -i --dmenu --width 400 --lines 4 --prompt="..." --cache-file /dev/null) + +echo $option + +case ${option} in + Password ) + echo "Test" + wtype $(pass ${SECRET} | head -n 1) + ;; + User ) + wtype $(pass ${SECRET} | rg user: | awk '{$1 = ""; print $0}') + ;; + "User and password" ) + wtype $(pass ${SECRET} | rg user: | awk '{$1 = ""; print $0}') + wtype -k TAB + wtype $(pass ${SECRET} | head -n 1) + ;; + "QR-Code" ) + if [[ $SECRET =~ wifi$ ]]; then + # Produce a valid wifi QR-code + WIFISSID=$(pass get_user ${SECRET}) + WIFIPASS=$(pass get_pass ${SECRET}) + WIFIQR="WIFI:T:WPA;S:${WIFISSID};P:${WIFIPASS};;" + qrencode -s 8 -o - $WIFIQR | feh --title "pass: QR-WIFI" - + else + # Only password + pass show -q1 ${SECRET} + fi + ;; + "OTP" ) + wtype $(pass otp ${SECRET}) + ;; +esac + +# wl-copy -o -s ${seat} ${PASSWD_PASS} diff --git a/scripts/wofiqute b/scripts/wofiqute new file mode 100755 index 0000000..508b84a --- /dev/null +++ b/scripts/wofiqute @@ -0,0 +1,51 @@ +#!/usr/bin/env bash +# +# Script name: dmqute +# Description: Search your qutebrowswer bookmarks and quickmarks. +# Dependencies: dmenu, qutebrowser +# GitLab: https://www.gitlab.com/dwt1/dmscripts +# License: https://www.gitlab.com/dwt1/dmscripts/LICENSE +# Contributors: Derek Taylor + +# Defining location of bookmarks file +BMFILE="$HOME/.config/qutebrowser/bookmarks/urls" + +# Defining location of quickmarks file +QMFILE="$HOME/.config/qutebrowser/quickmarks" + +# Defining location of history database +HISTDB="$HOME/.local/share/qutebrowser/history.sqlite" + +# A separator that will appear in between quickmarks, bookmarks and history urls. +SEPARATOR="----------" + +# Read array of options to choose. +readarray -t bmarks < "$BMFILE" +readarray -t qmarks < "$QMFILE" + +# Sort the bookmark, quickmark and history lists so that the url is the last field. +# We will awk print the last field later. +# History list is formed by grep'ing "http" from the history table. +bmlist=$(printf '%s\n' "${bmarks[@]}" | awk '{print $2" - "$1}') +qmlist=$(printf '%s\n' "${qmarks[@]}" | awk '{print "["$1"] - "$NF}' | sort) +SQL="SELECT h.title, h.url FROM history as h where url like 'http%';" +histlist=$(printf '%s\n' "$(sqlite3 "$HISTDB" "${SQL}")" | awk -F "|" '{print $1" - "$NF}') + +# Piping the above lists into dmenu. +# We use "printf '%s\n'" to format the array one item to a line. +# The urls are listed quickmarks first, then the SEPARATOR, and then bookmarks. +choice=$(printf '%s\n' "$qmlist" "$SEPARATOR" "$bmlist" "$SEPARATOR" "$histlist" | wofi --columns=2 -p 'Qutebrowser open:' -dmenu) "$@" || exit + +# What to do if the separator is chosen from the list. +# We simply launch qutebrowser without any url arguments. +# shellcheck disable=SC2154 +if [ "$choice" == "$SEPARATOR" ]; then + qutebrowser +# What to do when/if we choose a url to view. +elif [ "$choice" ]; then + url=$(echo "${choice}" | awk '{print $NF}') || exit + qutebrowser "$url" +# What to do if we just escape without choosing anything. +else + echo "Program terminated." && exit 0 +fi diff --git a/scripts/yt b/scripts/yt index 43c2d30..e70bd00 100755 --- a/scripts/yt +++ b/scripts/yt @@ -6,7 +6,7 @@ # yt search query takes input from the passed arg, prompts using fzf # yt -r takes input and prompts using rofi ($guicmd) -if [ $(hostname) = "chris-linuxlaptop" ]; then +if [ $(hostname) = "syl" ]; then style="laptop" #echo "this is hidpi" else @@ -14,8 +14,6 @@ else #echo "this is not hidpi" fi --no-lazy-grab -show drun -modi drun -theme launchers-git/"$style".rasi - defcmd="fzf" guicmd="rofi -no-lazy-grab -dmenu -i -theme launchers-git/"$style".rasi" #uncomment next line for dmenu #guicmd="dmenu -i -l 15" diff --git a/sway/config b/sway/config index 353b346..209867b 100644 --- a/sway/config +++ b/sway/config @@ -45,9 +45,9 @@ input type:touchpad { } ### Style -gaps outer 10 -gaps inner 10 -smart_gaps on +gaps outer 15 +gaps inner 20 +#smart_gaps on default_border none @@ -65,7 +65,13 @@ titlebar_border_thickness 1 # Start your launcher bindsym Menu exec $menu + bindsym $mod+Menu exec wofi --show run | xargs swaymsg exec -- + #Pass + bindsym $mod+p exec wofipass + + # Screenshot + bindsym Print exec grim -g "${slurp}" - | wl-copy # 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. @@ -153,7 +159,7 @@ titlebar_border_thickness 1 bindsym $mod+space focus mode_toggle # Move focus to the parent container - bindsym $mod+a focus parent + bindsym $mod+Shift+p focus parent # # Scratchpad: # @@ -166,6 +172,16 @@ titlebar_border_thickness 1 # 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 + +# +# Audio +# + + bindsym $mod+a exec alacritty --class pulsemixer -e pulsemixer + bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% && paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga + bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% + bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle + # # Resizing containers: # @@ -199,8 +215,10 @@ set $mode_launcher Launcher bindsym $mod+o mode "$mode_launcher" mode "$mode_launcher" { - bindsym e exec emacsclient -c & + bindsym e exec emacsclient -c -a emacs & bindsym b exec qutebrowser + bindsym a exec emacsclient -c -e '(org-agenda)' + bindsym i exec emacsclient -c -e '(mu4e)' bindsym Return mode "default" bindsym Escape mode "default" } @@ -214,8 +232,14 @@ bar { workspace_buttons yes } +for_window [app_id="mpv"] floating enable +for_window [app_id="imv"] floating enable +for_window [app_id="dolphin"] floating enable +for_window [app_id="emacs"] opacity 0.90 + exec emacs --daemon exec mako +exec waystart xwayland enable -include /etc/sway/config.d/* \ No newline at end of file +include /etc/sway/config.d/* diff --git a/waybar/config b/waybar/config index 8411b2c..da39c86 100644 --- a/waybar/config +++ b/waybar/config @@ -26,7 +26,7 @@ } }, "sway/mode": { - "format": "{}" + "format": " {}" }, "idle_inhibitor": { "format": "{icon}", @@ -97,7 +97,7 @@ "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": "{essid} ({signalStrength}%) ", - "format-ethernet": "{ifname}: {ipaddr} ", + "format-ethernet": "{ipaddr} ", "format-linked": "{ifname} (No IP) ", "format-disconnected": "Disconnected ⚠", "format-alt": "{ifname}: {ipaddr}/{cidr}" @@ -143,7 +143,7 @@ "on-click-middle": "close" }, "sway/window": { - "format": " {} ", + "format": " {} ", "max-length": 60, } } diff --git a/waybar/style.css b/waybar/style.css index 07cb281..347d34e 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -14,32 +14,36 @@ @define-color base0D #57c7ff; @define-color base0E #ff6ac1; @define-color base0F #b2643c; +@define-color basetransparent rgba(40, 42, 54, 0.0); +@define-color backtransparent rgba(40, 42, 54, 0.7); * { border: none; border-radius: 0; font-family: VictorMono Nerd Font; font-size: 12px; - font-weight: bold; + font-weight: normal; box-shadow: none; text-shadow: none; transition-duration: 0s; + padding-top: 0px; + padding-bottom: 0px; } window { color: @base05; - background: rgba(1, 1, 1, 0.0); + background: @basetransparent; } window#waybar.solo { - background: rgba(1, 1, 1, 0.40); + background: @basetransparent; } #workspaces { border-radius: 20px; margin-left: 10px; padding-right: 10px; - background: rgba(40, 42, 54, 0.85); + background: @backtransparent; transition: none; } @@ -54,18 +58,18 @@ window#waybar.solo { } #workspaces button.focused { - color: #9aedfe; + color: @base0C; } #workspaces button:hover { transition: none; box-shadow: inherit; text-shadow: inherit; - color: #ff79c6; + color: @base0E; } #workspaces button.urgent { - color: rgba(238, 46, 36, 1); + color: @base08; } #mode, #battery, #cpu, #memory, #network, #pulseaudio, #idle_inhibitor, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail { @@ -80,8 +84,8 @@ window#waybar.solo { padding-right: 10px; border-radius: 20px; transition: none; - color: #4d4d4d; - background: rgba(107, 142, 35, 0.85); + color: @base0B; + background: @backtransparent; } #backlight { @@ -91,20 +95,20 @@ window#waybar.solo { padding-right: 5px; border-radius: 20px; transition: none; - color: #4d4d4d; - background: rgba(188, 143, 143, 0.85); + color: @base01; + background: @base0B; } #battery.warning { - color: rgba(255, 210, 4, 1); + color: @base09; } #battery.critical { - color: rgba(238, 46, 36, 1); + color: @base08; } #battery.charging { - color: rgba(217, 216, 216, 1); + color: @base0B; } #pulseaudio { @@ -114,8 +118,8 @@ window#waybar.solo { padding-right: 10px; border-radius: 20px; transition: none; - color: #4d4d4d; - background: rgba(189, 183, 107, 0.85); + color: @base09; + background: @backtransparent; } #network { @@ -125,8 +129,8 @@ window#waybar.solo { padding-right: 14px; border-radius: 20px; transition: none; - color: #4d4d4d; - background: rgba(189, 183, 107, 0.85); + color: @base0A; + background: @backtransparent; } #cpu { @@ -136,19 +140,19 @@ window#waybar.solo { padding-right: 10px; border-radius: 20px; transition: none; - color: #4d4d4d; - background: rgba(205, 92, 92, 0.85); + color: @base0B; + background: @backtransparent; } #battery { margin-left: 2px; margin-right: 2px; - padding-left: 10px; - padding-right: 18px; + padding-left: 5px; + padding-right: 14px; border-radius: 20px; transition: none; - color: #4d4d4d; - background: rgba(176, 196, 222, 0.85); + color: @base0D; + background: @backtransparent; } #battery.bat2 { @@ -162,10 +166,27 @@ window#waybar.solo { padding-right: 10px; border-radius: 20px; transition: none; - color: #4d4d4d; - background: rgba(222, 184, 135, 0.85); + color: @base0C; + background: @backtransparent; +} + +#temperature { + margin-left: 2px; + margin-right: 2px; + padding-left: 10px; + padding-right: 10px; + border-radius: 20px; + transition: none; + color: @base0E; + background: @backtransparent; } #tray { margin-right: 10px; + padding-left: 10px; + padding-right: 10px; + border-radius: 20px; + transition: none; + color: @base0E; + background: @backtransparent; } diff --git a/wofi/config b/wofi/config index 91cedf6..ec0fc91 100644 --- a/wofi/config +++ b/wofi/config @@ -1,2 +1,4 @@ width=60% -height=50% \ No newline at end of file +height=40% +columns=2 +parse_action=true \ No newline at end of file diff --git a/wofi/style.css b/wofi/style.css new file mode 100644 index 0000000..a1f622e --- /dev/null +++ b/wofi/style.css @@ -0,0 +1,53 @@ +@define-color base00 #282a36; +@define-color base01 #34353e; +@define-color base02 #43454f; +@define-color base03 #78787e; +@define-color base04 #a5a5a9; +@define-color base05 #e2e4e5; +@define-color base06 #eff0eb; +@define-color base07 #f1f1f0; +@define-color base08 #ff5c57; +@define-color base09 #ff9f43; +@define-color base0A #f3f99d; +@define-color base0B #5af78e; +@define-color base0C #9aedfe; +@define-color base0D #57c7ff; +@define-color base0E #ff6ac1; +@define-color base0F #b2643c; +@define-color basetransparent rgba(40, 42, 54, 0.0); +@define-color backtransparent rgba(40, 42, 54, 0.85); +window { + margin: 100px; + background-color: @backtransparent; +} + +#input { + margin: 10px; + border-radius: 20px; + border-color: @base02; + background-color: @base02; + color: @base05; +} + +#inner-box { + margin: 0px; +} + +#outer-box { + margin: 0px; +} + +#scroll { + margin: 5px; + /* background-color: orange; */ +} + +#entry { + border-radius: 20px; +} + +#text { + margin: 5px; + border-radius: 20px; + color: @base05; +}