initial commit
This commit is contained in:
parent
cf739bec5b
commit
a56c76f01e
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
\#*
|
||||
err-*
|
||||
*.log
|
5
addts
Executable file
5
addts
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
while read -r line ; do
|
||||
echo "[$(date +"%F %T")]: ${line}"
|
||||
done
|
||||
|
251
conf/config/alacritty/alacritty.yml
Normal file
251
conf/config/alacritty/alacritty.yml
Normal file
@ -0,0 +1,251 @@
|
||||
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
||||
|
||||
# Any items in the `env` entry below will be added as
|
||||
# environment variables. Some entries may override variables
|
||||
# set by alacritty itself.
|
||||
env:
|
||||
TERM: alacritty
|
||||
|
||||
window:
|
||||
padding:
|
||||
x: 4
|
||||
y: 4
|
||||
|
||||
scrolling:
|
||||
history: 10000
|
||||
multiplier: 3
|
||||
|
||||
# Font configuration
|
||||
font:
|
||||
normal:
|
||||
family: monospace
|
||||
|
||||
bold:
|
||||
family: monospace
|
||||
italic:
|
||||
family: monospace
|
||||
size: 12.0
|
||||
|
||||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
background: '0x141c25'
|
||||
foreground: '0xb6c0cc'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '0x141c25'
|
||||
red: '0xb03b22'
|
||||
green: '0x3fa534'
|
||||
yellow: '0xc4b22d'
|
||||
blue: '0x5fb5f1'
|
||||
magenta: '0xbb6cb5'
|
||||
cyan: '0x478f9c'
|
||||
white: '0x85888b'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '0x384657'
|
||||
red: '0xda8040'
|
||||
green: '0x6ad461'
|
||||
yellow: '0xd7db7a'
|
||||
blue: '0x47c0d6'
|
||||
magenta: '0xd19fce'
|
||||
cyan: '0xa8bcbe'
|
||||
white: '0xd2dcdb'
|
||||
|
||||
visual_bell:
|
||||
animation: EaseOutExpo
|
||||
duration: 0
|
||||
color: '#ffffff'
|
||||
|
||||
|
||||
#background_opacity: 0.80
|
||||
|
||||
selection:
|
||||
save_to_clipboard: true
|
||||
|
||||
# Allow terminal applications to change Alacritty's window title.
|
||||
dynamic_title: true
|
||||
|
||||
cursor:
|
||||
style: Block
|
||||
unfocused_hollow: true
|
||||
|
||||
live_config_reload: true
|
||||
|
||||
# Send ESC (\x1b) before characters when alt is pressed.
|
||||
#alt_send_esc: true
|
||||
|
||||
#mouse:
|
||||
# Click settings
|
||||
#
|
||||
# The `double_click` and `triple_click` settings control the time
|
||||
# alacritty should wait for accepting multiple clicks as one double
|
||||
# or triple click.
|
||||
#double_click: { threshold: 300 }
|
||||
#triple_click: { threshold: 300 }
|
||||
|
||||
# If this is `true`, the cursor is temporarily hidden when typing.
|
||||
#hide_when_typing: false
|
||||
|
||||
#url:
|
||||
# URL launcher
|
||||
#
|
||||
# This program is executed when clicking on a text which is recognized as a URL.
|
||||
# The URL is always added to the command as the last parameter.
|
||||
#
|
||||
# When set to `None`, URL launching will be disabled completely.
|
||||
#
|
||||
# Default:
|
||||
# - (macOS) open
|
||||
# - (Linux/BSD) xdg-open
|
||||
# - (Windows) explorer
|
||||
#launcher:
|
||||
# program: xdg-open
|
||||
# args: []
|
||||
|
||||
# URL modifiers
|
||||
#
|
||||
# These are the modifiers that need to be held down for opening URLs when clicking
|
||||
# on them. The available modifiers are documented in the key binding section.
|
||||
#modifiers: None
|
||||
|
||||
# Mouse bindings
|
||||
#
|
||||
# Mouse bindings are specified as a list of objects, much like the key
|
||||
# bindings further below.
|
||||
#
|
||||
# To trigger mouse bindings when an application running within Alacritty captures the mouse, the
|
||||
# `Shift` modifier is automatically added as a requirement.
|
||||
#
|
||||
# Each mouse binding will specify a:
|
||||
#
|
||||
# - `mouse`:
|
||||
#
|
||||
# - Middle
|
||||
# - Left
|
||||
# - Right
|
||||
# - Numeric identifier such as `5`
|
||||
#
|
||||
# - `action` (see key bindings)
|
||||
#
|
||||
# And optionally:
|
||||
#
|
||||
# - `mods` (see key bindings)
|
||||
#mouse_bindings:
|
||||
# - { mouse: Middle, action: PasteSelection }
|
||||
|
||||
# Key bindings
|
||||
#
|
||||
# Key bindings are specified as a list of objects. For example, this is the
|
||||
# default paste binding:
|
||||
#
|
||||
# `- { key: V, mods: Control|Shift, action: Paste }`
|
||||
#
|
||||
# Each key binding will specify a:
|
||||
#
|
||||
# - `key`: Identifier of the key pressed
|
||||
#
|
||||
# - A-Z
|
||||
# - F1-F24
|
||||
# - Key0-Key9
|
||||
#
|
||||
# A full list with available key codes can be found here:
|
||||
# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
|
||||
#
|
||||
# Instead of using the name of the keys, the `key` field also supports using
|
||||
# the scancode of the desired key. Scancodes have to be specified as a
|
||||
# decimal number. This command will allow you to display the hex scancodes
|
||||
# for certain keys:
|
||||
#
|
||||
# `showkey --scancodes`.
|
||||
#
|
||||
# Then exactly one of:
|
||||
#
|
||||
# - `chars`: Send a byte sequence to the running application
|
||||
#
|
||||
# The `chars` field writes the specified string to the terminal. This makes
|
||||
# it possible to pass escape sequences. To find escape codes for bindings
|
||||
# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
|
||||
# of tmux. Note that applications use terminfo to map escape sequences back
|
||||
# to keys. It is therefore required to update the terminfo when changing an
|
||||
# escape sequence.
|
||||
#
|
||||
# - `action`: Execute a predefined action
|
||||
#
|
||||
# - Copy
|
||||
# - Paste
|
||||
# - PasteSelection
|
||||
# - IncreaseFontSize
|
||||
# - DecreaseFontSize
|
||||
# - ResetFontSize
|
||||
# - ScrollPageUp
|
||||
# - ScrollPageDown
|
||||
# - ScrollLineUp
|
||||
# - ScrollLineDown
|
||||
# - ScrollToTop
|
||||
# - ScrollToBottom
|
||||
# - ClearHistory
|
||||
# - Hide
|
||||
# - Minimize
|
||||
# - Quit
|
||||
# - ToggleFullscreen
|
||||
# - SpawnNewInstance
|
||||
# - ClearLogNotice
|
||||
# - ReceiveChar
|
||||
# - None
|
||||
#
|
||||
# (macOS only):
|
||||
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
|
||||
#
|
||||
# - `command`: Fork and execute a specified command plus arguments
|
||||
#
|
||||
# The `command` field must be a map containing a `program` string and an
|
||||
# `args` array of command line parameter strings. For example:
|
||||
# `{ program: "alacritty", args: ["-e", "vttest"] }`
|
||||
#
|
||||
# And optionally:
|
||||
#
|
||||
# - `mods`: Key modifiers to filter binding actions
|
||||
#
|
||||
# - Command
|
||||
# - Control
|
||||
# - Option
|
||||
# - Super
|
||||
# - Shift
|
||||
# - Alt
|
||||
#
|
||||
# Multiple `mods` can be combined using `|` like this:
|
||||
# `mods: Control|Shift`.
|
||||
# Whitespace and capitalization are relevant and must match the example.
|
||||
#
|
||||
# - `mode`: Indicate a binding for only specific terminal reported modes
|
||||
#
|
||||
# This is mainly used to send applications the correct escape sequences
|
||||
# when in different modes.
|
||||
#
|
||||
# - AppCursor
|
||||
# - AppKeypad
|
||||
# - Alt
|
||||
#
|
||||
# A `~` operator can be used before a mode to apply the binding whenever
|
||||
# the mode is *not* active, e.g. `~Alt`.
|
||||
#
|
||||
# Bindings are always filled by default, but will be replaced when a new
|
||||
# binding with the same triggers is defined. To unset a default binding, it can
|
||||
# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
|
||||
# a no-op if you do not wish to receive input characters for that binding.
|
||||
#
|
||||
# If the same trigger is assigned to multiple actions, all of them are executed
|
||||
# at once.
|
||||
key_bindings:
|
||||
# (Windows, Linux, and BSD only)
|
||||
- { key: V, mods: Control|Shift, action: Paste }
|
||||
- { key: C, mods: Control|Shift, action: Copy }
|
||||
- { key: Insert, mods: Shift, action: PasteSelection }
|
||||
- { key: Home, mods: Control, action: ResetFontSize }
|
||||
- { key: Equals, mods: Control, action: IncreaseFontSize }
|
||||
- { key: Add, mods: Control, action: IncreaseFontSize }
|
||||
- { key: Subtract, mods: Control, action: DecreaseFontSize }
|
||||
- { key: Minus, mods: Control, action: DecreaseFontSize }
|
18
conf/config/bspwm/bspwmrc
Executable file
18
conf/config/bspwm/bspwmrc
Executable file
@ -0,0 +1,18 @@
|
||||
#! /bin/sh
|
||||
|
||||
sxhkd &
|
||||
|
||||
bspc monitor -d I II III IV V VI VII VIII IX X
|
||||
|
||||
bspc config border_width 1
|
||||
bspc config window_gap 16
|
||||
|
||||
bspc config split_ratio 0.52
|
||||
bspc config borderless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
|
||||
#bspc rule -a Gimp desktop='^8' state=floating follow=on
|
||||
bspc rule -a Firefox desktop='^9'
|
||||
#bspc rule -a mplayer2 state=floating
|
||||
#bspc rule -a Kupfer.py focus=on
|
||||
#bspc rule -a Screenkey manage=off
|
19
conf/config/bspwm/bspwmrc~
Executable file
19
conf/config/bspwm/bspwmrc~
Executable file
@ -0,0 +1,19 @@
|
||||
#! /bin/sh
|
||||
|
||||
sxhkd &
|
||||
|
||||
bspc monitor -d I II III IV V VI VII VIII IX X
|
||||
|
||||
bspc config border_width 1
|
||||
bspc config window_gap 16
|
||||
bspc config border_radius 25
|
||||
|
||||
bspc config split_ratio 0.52
|
||||
bspc config borderless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
|
||||
bspc rule -a Gimp desktop='^8' state=floating follow=on
|
||||
bspc rule -a Chromium desktop='^2'
|
||||
bspc rule -a mplayer2 state=floating
|
||||
bspc rule -a Kupfer.py focus=on
|
||||
bspc rule -a Screenkey manage=off
|
121
conf/config/geany/colorschemes/bespin.conf
Normal file
121
conf/config/geany/colorschemes/bespin.conf
Normal file
@ -0,0 +1,121 @@
|
||||
#
|
||||
# This file was generated from a textmate theme named Bespin
|
||||
# with tm2gtksw2 tool. (Alexandre da Silva)
|
||||
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Library General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Library General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Library General Public
|
||||
# License along with this library; if not, write to the
|
||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
# Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Ported to Geany by Matthew Brush <matt(at)geany(dot)org>
|
||||
#
|
||||
|
||||
[theme_info]
|
||||
name=Bespin
|
||||
description=A port of the Bespin theme.
|
||||
# incremented automatically, do not change manually
|
||||
version=1225
|
||||
author=Alexandre da Silva (tm2gtksw2)
|
||||
url=https://github.com/gmate/gmate/blob/master/styles/Bespin.xml
|
||||
# list of each compatible Geany release version
|
||||
compat=1.22;1.23;1.23.1;1.24
|
||||
|
||||
[named_styles]
|
||||
|
||||
default=#baae9e;#28211c;false;false
|
||||
error=#f8f8f8;#4a2947
|
||||
|
||||
# Editor styles
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
selection=#baae9e;#4c4a49;true;true
|
||||
current_line=#000;#2e2723;true
|
||||
brace_good=#00f;#2e2723;true;false
|
||||
brace_bad=#df4545;#2e2723;true;false
|
||||
margin_line_number=#baae9e;#2e2723
|
||||
margin_folding=#baae9e;#2e2723
|
||||
fold_symbol_highlight=#2e2723
|
||||
indent_guide=#40342c
|
||||
white_space=#40342c;#fff;true;false
|
||||
caret=#a7a7a7;#000;false
|
||||
marker_line=#000;#ff0;
|
||||
marker_search=#000;#0000f0;
|
||||
marker_mark=#000;#b8f4b8;
|
||||
call_tips=#c0c0c0;#fff;false;false
|
||||
|
||||
# Programming languages
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
comment=#666;;;true
|
||||
comment_doc=comment
|
||||
comment_line=comment
|
||||
comment_line_doc=comment_doc
|
||||
comment_doc_keyword=comment_doc,bold
|
||||
comment_doc_keyword_error=comment_doc,italic
|
||||
|
||||
number=#cf6a4c
|
||||
number_1=number
|
||||
number_2=number_1
|
||||
|
||||
type=#9b859d;;true
|
||||
class=type
|
||||
function=#937121
|
||||
parameter=function
|
||||
|
||||
keyword=#5ea6ea;;true
|
||||
keyword_1=keyword
|
||||
keyword_2=type
|
||||
keyword_3=keyword_1
|
||||
keyword_4=keyword_1
|
||||
|
||||
identifier=default
|
||||
identifier_1=identifier
|
||||
identifier_2=identifier_1
|
||||
identifier_3=identifier_1
|
||||
identifier_4=identifier_1
|
||||
|
||||
string=#54be0d
|
||||
string_1=string
|
||||
string_2=string_1
|
||||
string_3=default
|
||||
string_4=default
|
||||
string_eol=string_1,italic
|
||||
character=string_1
|
||||
backticks=string_2
|
||||
here_doc=string_2
|
||||
|
||||
scalar=string_2
|
||||
label=default,bold
|
||||
preprocessor=#cf6a4c
|
||||
regex=#e9c062
|
||||
operator=#5ea6ea
|
||||
decorator=string_1,bold
|
||||
other=#ddf2a4
|
||||
|
||||
# Markup-type languages
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
tag=#ac885b
|
||||
tag_unknown=#ac885b
|
||||
tag_end=#ac885b
|
||||
attribute=#937121
|
||||
attribute_unknown=#937121
|
||||
value=string_1
|
||||
entity=default
|
||||
|
||||
# Diff
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
line_added=#f8f8f8;#253b22
|
||||
line_removed=#f8f8f8;#420e09
|
||||
line_changed=#f8f8f8;#4a410d
|
2
conf/config/geany/filedefs/filetypes.README
Normal file
2
conf/config/geany/filedefs/filetypes.README
Normal file
@ -0,0 +1,2 @@
|
||||
Copy files from /usr/share/geany/filedefs to this directory to overwrite them. To use the defaults, just delete the file in this directory.
|
||||
For more information read the documentation (in /usr/share/doc/geany/html/index.html or visit https://www.geany.org/).
|
211
conf/config/geany/geany.conf
Normal file
211
conf/config/geany/geany.conf
Normal file
@ -0,0 +1,211 @@
|
||||
[geany]
|
||||
default_open_path=
|
||||
cmdline_new_files=true
|
||||
notebook_double_click_hides_widgets=false
|
||||
tab_close_switch_to_mru=false
|
||||
tab_pos_sidebar=2
|
||||
sidebar_pos=0
|
||||
symbols_sort_mode=0
|
||||
msgwin_orientation=1
|
||||
highlighting_invert_all=false
|
||||
pref_main_search_use_current_word=true
|
||||
check_detect_indent=false
|
||||
detect_indent_width=false
|
||||
use_tab_to_indent=true
|
||||
pref_editor_tab_width=4
|
||||
indent_mode=2
|
||||
indent_type=1
|
||||
virtualspace=1
|
||||
autocomplete_doc_words=false
|
||||
completion_drops_rest_of_word=false
|
||||
autocompletion_max_entries=30
|
||||
autocompletion_update_freq=250
|
||||
color_scheme=bespin.conf
|
||||
scroll_lines_around_cursor=0
|
||||
mru_length=10
|
||||
disk_check_timeout=30
|
||||
show_editor_scrollbars=true
|
||||
brace_match_ltgt=false
|
||||
use_gtk_word_boundaries=true
|
||||
complete_snippets_whilst_editing=false
|
||||
indent_hard_tab_width=8
|
||||
editor_ime_interaction=0
|
||||
use_atomic_file_saving=false
|
||||
gio_unsafe_save_backup=false
|
||||
use_gio_unsafe_file_saving=true
|
||||
keep_edit_history_on_reload=true
|
||||
show_keep_edit_history_on_reload_msg=true
|
||||
reload_clean_doc_on_file_change=false
|
||||
extract_filetype_regex=-\\*-\\s*([^\\s]+)\\s*-\\*-
|
||||
allow_always_save=false
|
||||
find_selection_type=0
|
||||
replace_and_find_by_default=true
|
||||
show_symbol_list_expanders=true
|
||||
compiler_tab_autoscroll=true
|
||||
statusbar_template=line: %l / %L col: %c sel: %s %w %t %mmode: %M encoding: %e filetype: %f scope: %S
|
||||
new_document_after_close=false
|
||||
msgwin_status_visible=true
|
||||
msgwin_compiler_visible=true
|
||||
msgwin_messages_visible=true
|
||||
msgwin_scribble_visible=true
|
||||
documents_show_paths=true
|
||||
sidebar_page=0
|
||||
pref_main_load_session=true
|
||||
pref_main_project_session=true
|
||||
pref_main_project_file_in_basedir=false
|
||||
pref_main_save_winpos=true
|
||||
pref_main_save_wingeom=true
|
||||
pref_main_confirm_exit=false
|
||||
pref_main_suppress_status_messages=false
|
||||
switch_msgwin_pages=false
|
||||
beep_on_errors=true
|
||||
auto_focus=false
|
||||
sidebar_symbol_visible=true
|
||||
sidebar_openfiles_visible=true
|
||||
editor_font=Monospace 12
|
||||
tagbar_font=Sans 9
|
||||
msgwin_font=Monospace 9
|
||||
show_notebook_tabs=true
|
||||
show_tab_cross=true
|
||||
tab_order_ltr=true
|
||||
tab_order_beside=false
|
||||
tab_pos_editor=2
|
||||
tab_pos_msgwin=0
|
||||
use_native_windows_dialogs=false
|
||||
show_indent_guide=false
|
||||
show_white_space=false
|
||||
show_line_endings=false
|
||||
show_markers_margin=true
|
||||
show_linenumber_margin=true
|
||||
long_line_enabled=true
|
||||
long_line_type=0
|
||||
long_line_column=72
|
||||
long_line_color=#C2EBC2
|
||||
symbolcompletion_max_height=10
|
||||
symbolcompletion_min_chars=4
|
||||
use_folding=true
|
||||
unfold_all_children=false
|
||||
use_indicators=true
|
||||
line_wrapping=false
|
||||
auto_close_xml_tags=true
|
||||
complete_snippets=true
|
||||
auto_complete_symbols=true
|
||||
pref_editor_disable_dnd=false
|
||||
pref_editor_smart_home_key=true
|
||||
pref_editor_newline_strip=false
|
||||
line_break_column=72
|
||||
auto_continue_multiline=true
|
||||
comment_toggle_mark=~
|
||||
scroll_stop_at_last_line=true
|
||||
autoclose_chars=0
|
||||
pref_editor_default_new_encoding=UTF-8
|
||||
pref_editor_default_open_encoding=none
|
||||
default_eol_character=2
|
||||
pref_editor_new_line=true
|
||||
pref_editor_ensure_convert_line_endings=false
|
||||
pref_editor_replace_tabs=false
|
||||
pref_editor_trail_space=false
|
||||
pref_toolbar_show=true
|
||||
pref_toolbar_append_to_menu=false
|
||||
pref_toolbar_use_gtk_default_style=true
|
||||
pref_toolbar_use_gtk_default_icon=true
|
||||
pref_toolbar_icon_style=0
|
||||
pref_toolbar_icon_size=0
|
||||
pref_template_developer=Alessandro Mauri
|
||||
pref_template_company=
|
||||
pref_template_mail=ale@ideal
|
||||
pref_template_initial=AM
|
||||
pref_template_version=1.0
|
||||
pref_template_year=%Y
|
||||
pref_template_date=%Y-%m-%d
|
||||
pref_template_datetime=%d.%m.%Y %H:%M:%S %Z
|
||||
context_action_cmd=
|
||||
sidebar_visible=true
|
||||
statusbar_visible=true
|
||||
msgwindow_visible=true
|
||||
fullscreen=false
|
||||
scribble_text=Type here what you want, use it as a notice/scratch board
|
||||
scribble_pos=57
|
||||
treeview_position=156
|
||||
msgwindow_position=779
|
||||
geometry=0;0;931;1011;1;
|
||||
custom_date_format=
|
||||
|
||||
[build-menu]
|
||||
number_ft_menu_items=0
|
||||
number_non_ft_menu_items=0
|
||||
number_exec_menu_items=0
|
||||
|
||||
[search]
|
||||
pref_search_hide_find_dialog=false
|
||||
pref_search_always_wrap=false
|
||||
pref_search_current_file_dir=true
|
||||
find_all_expanded=false
|
||||
replace_all_expanded=false
|
||||
position_find_x=0
|
||||
position_find_y=0
|
||||
position_replace_x=-1
|
||||
position_replace_y=-1
|
||||
position_fif_x=-1
|
||||
position_fif_y=-1
|
||||
fif_regexp=false
|
||||
fif_case_sensitive=true
|
||||
fif_match_whole_word=false
|
||||
fif_invert_results=false
|
||||
fif_recursive=false
|
||||
fif_extra_options=
|
||||
fif_use_extra_options=false
|
||||
fif_files=
|
||||
fif_files_mode=0
|
||||
find_regexp=false
|
||||
find_regexp_multiline=false
|
||||
find_case_sensitive=false
|
||||
find_escape_sequences=false
|
||||
find_match_whole_word=false
|
||||
find_match_word_start=false
|
||||
find_close_dialog=true
|
||||
replace_regexp=false
|
||||
replace_regexp_multiline=false
|
||||
replace_case_sensitive=false
|
||||
replace_escape_sequences=false
|
||||
replace_match_whole_word=false
|
||||
replace_match_word_start=false
|
||||
replace_search_backwards=false
|
||||
replace_close_dialog=true
|
||||
|
||||
[plugins]
|
||||
load_plugins=true
|
||||
custom_plugin_path=
|
||||
active_plugins=;
|
||||
|
||||
[VTE]
|
||||
send_cmd_prefix=
|
||||
send_selection_unsafe=false
|
||||
load_vte=true
|
||||
|
||||
[tools]
|
||||
terminal_cmd=xterm -e "/bin/sh %c"
|
||||
browser_cmd=firefox
|
||||
grep_cmd=grep
|
||||
|
||||
[printing]
|
||||
print_cmd=lpr '%f'
|
||||
use_gtk_printing=true
|
||||
print_line_numbers=true
|
||||
print_page_numbers=true
|
||||
print_page_header=true
|
||||
page_header_basename=false
|
||||
page_header_datefmt=%c
|
||||
|
||||
[project]
|
||||
session_file=
|
||||
project_file_path=/home/ale/projects
|
||||
|
||||
[files]
|
||||
recent_files=/tmp/mozilla_ale0/index.md;/home/ale/sw/startw;/home/ale/Documents/projects/distro/software.txt;/home/ale/Documents/projects/distro/distro.txt;
|
||||
recent_projects=
|
||||
current_page=3
|
||||
FILE_NAME_0=0;None;0;EUTF-8;1;1;0;%2Fhome%2Fale%2FDocuments%2Fprojects%2Fdistro%2Fdistro.txt;0;4
|
||||
FILE_NAME_1=498;None;0;EUTF-8;1;1;0;%2Fhome%2Fale%2FDocuments%2Fprojects%2Fdistro%2Fsoftware.txt;0;4
|
||||
FILE_NAME_2=1355;Sh;0;EUTF-8;1;1;0;%2Fhome%2Fale%2Fsw%2Fstartw;0;4
|
||||
FILE_NAME_3=0;Markdown;0;EUTF-8;1;1;0;%2Ftmp%2Fmozilla_ale0%2Findex.md;0;4
|
0
conf/config/geany/keybindings.conf
Normal file
0
conf/config/geany/keybindings.conf
Normal file
2
conf/config/geany/templates/templates.README
Normal file
2
conf/config/geany/templates/templates.README
Normal file
@ -0,0 +1,2 @@
|
||||
There are several template files in this directory. For these templates you can use wildcards.
|
||||
For more information read the documentation (in /usr/share/doc/geany/html/index.html or visit https://www.geany.org/).
|
@ -0,0 +1,157 @@
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(56, 70, 87, 1.0);
|
||||
/*border-bottom: 2px solid rgba(20, 28, 37, 1.0); */
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background-color: #141c25;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 0px;
|
||||
/*background-color: transparent;*/
|
||||
color: #b6c0cc;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
#workspaces button:hover {
|
||||
background: rgba(100, 100, 100, 0.2);
|
||||
box-shadow: inherit;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #5fb5f1;
|
||||
color: #141c25;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
|
||||
#mode {
|
||||
background-color: #141c25;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#custom-media,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#alsa,
|
||||
#mpd {
|
||||
padding: 0 16px;
|
||||
margin: 0 1px;
|
||||
color: #b6c0cc;
|
||||
background-color: #141c25;
|
||||
}
|
||||
|
||||
#clock {
|
||||
}
|
||||
|
||||
#battery {
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
}
|
||||
|
||||
#cpu {
|
||||
}
|
||||
|
||||
#memory {
|
||||
}
|
||||
|
||||
#backlight {
|
||||
}
|
||||
|
||||
#alsa {
|
||||
}
|
||||
|
||||
#network {
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
|
||||
}
|
||||
|
||||
#temperature {
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
}
|
||||
|
||||
#tray {
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
background-color: #47c0d6;
|
||||
font-size: 18px;
|
||||
color: #141c25;
|
||||
}
|
||||
|
||||
#mpd {
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#mpd.disconnected {
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
}
|
3
conf/config/micro/bindings.json
Normal file
3
conf/config/micro/bindings.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Alt-/": "lua:comment.comment"
|
||||
}
|
BIN
conf/config/micro/buffers/history
Normal file
BIN
conf/config/micro/buffers/history
Normal file
Binary file not shown.
59
conf/config/micro/settings.json
Normal file
59
conf/config/micro/settings.json
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
"autoclose": true,
|
||||
"autoindent": true,
|
||||
"autosave": 0,
|
||||
"autosu": false,
|
||||
"backup": true,
|
||||
"basename": false,
|
||||
"colorcolumn": 0,
|
||||
"colorscheme": "simple",
|
||||
"comment": true,
|
||||
"cursorline": true,
|
||||
"diff": true,
|
||||
"diffgutter": false,
|
||||
"encoding": "utf-8",
|
||||
"eofnewline": true,
|
||||
"fastdirty": false,
|
||||
"fileformat": "unix",
|
||||
"filetype": "unknown",
|
||||
"ftoptions": true,
|
||||
"ignorecase": false,
|
||||
"indentchar": " ",
|
||||
"infobar": true,
|
||||
"keepautoindent": false,
|
||||
"keymenu": false,
|
||||
"linter": true,
|
||||
"literate": true,
|
||||
"matchbrace": true,
|
||||
"mkparents": false,
|
||||
"mouse": true,
|
||||
"paste": true,
|
||||
"pluginchannels": [
|
||||
"https://raw.githubusercontent.com/micro-editor/plugin-channel/master/channel.json"
|
||||
],
|
||||
"pluginrepos": [],
|
||||
"readonly": false,
|
||||
"rmtrailingws": false,
|
||||
"ruler": true,
|
||||
"savecursor": false,
|
||||
"savehistory": true,
|
||||
"saveundo": false,
|
||||
"scrollbar": true,
|
||||
"scrollmargin": 3,
|
||||
"scrollspeed": 2,
|
||||
"smartpaste": true,
|
||||
"softwrap": false,
|
||||
"splitbottom": true,
|
||||
"splitright": true,
|
||||
"status": true,
|
||||
"statusformatl": "$(filename) $(modified)($(line),$(col)) $(status.paste)| ft:$(opt:filetype) | $(opt:fileformat) | $(opt:encoding)",
|
||||
"statusformatr": "$(bind:ToggleKeyMenu): bindings, $(bind:ToggleHelp): help",
|
||||
"statusline": true,
|
||||
"sucmd": "sudo",
|
||||
"syntax": true,
|
||||
"tabmovement": false,
|
||||
"tabsize": 4,
|
||||
"tabstospaces": false,
|
||||
"useprimary": true,
|
||||
"xterm": false
|
||||
}
|
1
conf/config/mpv/mpv.conf
Normal file
1
conf/config/mpv/mpv.conf
Normal file
@ -0,0 +1 @@
|
||||
gpu-context=wayland
|
385
conf/config/polybar/config
Normal file
385
conf/config/polybar/config
Normal file
@ -0,0 +1,385 @@
|
||||
;==========================================================
|
||||
;
|
||||
;
|
||||
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||
;
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/polybar/polybar
|
||||
;
|
||||
; The README contains a lot of information
|
||||
;
|
||||
;==========================================================
|
||||
|
||||
[colors]
|
||||
;background = ${xrdb:color0:#222}
|
||||
background = #222
|
||||
background-alt = #444
|
||||
;foreground = ${xrdb:color7:#222}
|
||||
foreground = #dfdfdf
|
||||
foreground-alt = #555
|
||||
primary = #ffb52a
|
||||
secondary = #e60053
|
||||
alert = #bd2c40
|
||||
|
||||
[bar/vantagev1]
|
||||
;monitor = ${env:MONITOR:HDMI-1}
|
||||
width = 100%
|
||||
height = 27
|
||||
;offset-x = 1%
|
||||
;offset-y = 1%
|
||||
radius = 0.0
|
||||
fixed-center = false
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3
|
||||
line-color = #f00
|
||||
|
||||
border-size = 0
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 2
|
||||
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
|
||||
font-0 = monospace:pixelsize=10;1
|
||||
font-1 = monospace:fontformat=truetype:size=8:antialias=false;0
|
||||
font-2 = siji:pixelsize=10;1
|
||||
|
||||
modules-left = bspwm
|
||||
modules-center = xwindow
|
||||
modules-right = backlight-acpi alsa xkeyboard cpu temperature battery date powermenu
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 0
|
||||
;tray-background = #0063ff
|
||||
|
||||
wm-restack = bspwm
|
||||
;wm-restack = i3
|
||||
|
||||
;override-redirect = true
|
||||
|
||||
scroll-up = bspwm-desknext
|
||||
scroll-down = bspwm-deskprev
|
||||
|
||||
;scroll-up = i3wm-wsnext
|
||||
;scroll-down = i3wm-wsprev
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:30:...%
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
|
||||
;format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-prefix-underline = ${colors.secondary}
|
||||
|
||||
label-layout = %layout%
|
||||
label-layout-underline = ${colors.secondary}
|
||||
|
||||
label-indicator-padding = 2
|
||||
label-indicator-margin = 1
|
||||
label-indicator-background = ${colors.secondary}
|
||||
label-indicator-underline = ${colors.secondary}
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
|
||||
label-focused = %index%
|
||||
label-focused-background = ${colors.background-alt}
|
||||
label-focused-underline= ${colors.primary}
|
||||
label-focused-padding = 2
|
||||
|
||||
label-occupied = %index%
|
||||
label-occupied-padding = 2
|
||||
|
||||
label-urgent = %index%!
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 2
|
||||
|
||||
label-empty = %index%
|
||||
label-empty-foreground = ${colors.foreground-alt}
|
||||
label-empty-padding = 2
|
||||
|
||||
; Separator in between workspaces
|
||||
; label-separator = |
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
||||
|
||||
;icon-prev =
|
||||
;icon-stop =
|
||||
;icon-play =
|
||||
;icon-pause =
|
||||
;icon-next =
|
||||
|
||||
label-song-maxlen = 25
|
||||
label-song-ellipsis = true
|
||||
|
||||
[module/xbacklight]
|
||||
type = internal/xbacklight
|
||||
|
||||
format = <label> <bar>
|
||||
label = BL
|
||||
|
||||
bar-width = 10
|
||||
bar-indicator = |
|
||||
bar-indicator-foreground = #fff
|
||||
bar-indicator-font = 2
|
||||
bar-fill = ─
|
||||
bar-fill-font = 2
|
||||
bar-fill-foreground = #9f78e1
|
||||
bar-empty = ─
|
||||
bar-empty-font = 2
|
||||
bar-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/backlight-acpi]
|
||||
inherit = module/xbacklight
|
||||
type = internal/backlight
|
||||
card = amdgpu_bl0
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
;format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #f90000
|
||||
label = %percentage:2%%
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
;format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #4bffdc
|
||||
label = %percentage_used%%
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp2s0
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <label-connected>
|
||||
format-connected-underline = #9f78e1
|
||||
label-connected = %essid%
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
;ramp-signal-0 =
|
||||
;ramp-signal-1 =
|
||||
;ramp-signal-2 =
|
||||
;ramp-signal-3 =
|
||||
;ramp-signal-4 =
|
||||
ramp-signal-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/eth]
|
||||
type = internal/network
|
||||
interface = enp0s31f6
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = #55aa55
|
||||
;format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||
label-connected = %local_ip%
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 5
|
||||
|
||||
date =
|
||||
date-alt = " %Y-%m-%d"
|
||||
|
||||
time = %H:%M
|
||||
time-alt = %H:%M:%S
|
||||
|
||||
;format-prefix =
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #0a6cf5
|
||||
|
||||
label = %date% %time%
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume = VOL %percentage%%
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
label-muted = muted
|
||||
label-muted-foreground = #666
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 = #55aa55
|
||||
bar-volume-foreground-1 = #55aa55
|
||||
bar-volume-foreground-2 = #55aa55
|
||||
bar-volume-foreground-3 = #55aa55
|
||||
bar-volume-foreground-4 = #55aa55
|
||||
bar-volume-foreground-5 = #f5a70a
|
||||
bar-volume-foreground-6 = #ff5555
|
||||
bar-volume-gradient = false
|
||||
bar-volume-indicator = |
|
||||
bar-volume-indicator-font = 2
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 2
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 2
|
||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/alsa]
|
||||
type = internal/alsa
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume = VOL
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
;format-muted-prefix = " "
|
||||
format-muted-foreground = ${colors.foreground-alt}
|
||||
label-muted = sound muted
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 = #55aa55
|
||||
bar-volume-foreground-1 = #55aa55
|
||||
bar-volume-foreground-2 = #55aa55
|
||||
bar-volume-foreground-3 = #55aa55
|
||||
bar-volume-foreground-4 = #55aa55
|
||||
bar-volume-foreground-5 = #f5a70a
|
||||
bar-volume-foreground-6 = #ff5555
|
||||
bar-volume-gradient = false
|
||||
bar-volume-indicator = |
|
||||
bar-volume-indicator-font = 2
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 2
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 2
|
||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT1
|
||||
adapter = ADP1
|
||||
full-at = 98
|
||||
|
||||
format-charging = <label-charging>
|
||||
format-charging-underline = #ffb52a
|
||||
|
||||
format-discharging = <label-discharging>
|
||||
format-discharging-underline = ${self.format-charging-underline}
|
||||
|
||||
;format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||
format-full-underline = ${self.format-charging-underline}
|
||||
|
||||
;ramp-capacity-0 =
|
||||
;ramp-capacity-1 =
|
||||
;ramp-capacity-2 =
|
||||
ramp-capacity-foreground = ${colors.foreground-alt}
|
||||
|
||||
;animation-charging-0 =
|
||||
;animation-charging-1 =
|
||||
;animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground-alt}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
;animation-discharging-0 =
|
||||
;animation-discharging-1 =
|
||||
;animation-discharging-2 =
|
||||
animation-discharging-foreground = ${colors.foreground-alt}
|
||||
animation-discharging-framerate = 750
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 60
|
||||
|
||||
format = <label>
|
||||
format-underline = #f50a4d
|
||||
format-warn = <label-warn>
|
||||
format-warn-underline = ${self.format-underline}
|
||||
|
||||
label = %temperature-c%
|
||||
label-warn = %temperature-c%
|
||||
label-warn-foreground = ${colors.secondary}
|
||||
|
||||
;ramp-0 =
|
||||
;ramp-1 =
|
||||
;ramp-2 =
|
||||
ramp-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/powermenu]
|
||||
type = custom/menu
|
||||
|
||||
expand-right = true
|
||||
|
||||
format-spacing = 1
|
||||
|
||||
label-open = @
|
||||
label-open-foreground = ${colors.secondary}
|
||||
label-close = cancel
|
||||
label-close-foreground = ${colors.secondary}
|
||||
label-separator = |
|
||||
label-separator-foreground = ${colors.foreground-alt}
|
||||
|
||||
menu-0-0 = reboot
|
||||
menu-0-0-exec = menu-open-1
|
||||
menu-0-1 = power off
|
||||
menu-0-1-exec = menu-open-2
|
||||
|
||||
menu-1-0 = cancel
|
||||
menu-1-0-exec = menu-open-0
|
||||
menu-1-1 = reboot
|
||||
menu-1-1-exec = qsudo reboot
|
||||
|
||||
menu-2-0 = power off
|
||||
menu-2-0-exec = qsudo poweroff
|
||||
menu-2-1 = cancel
|
||||
menu-2-1-exec = menu-open-0
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
;compositing-background = screen
|
||||
;compositing-foreground = source
|
||||
;compositing-border = over
|
||||
;pseudo-transparency = false
|
||||
|
||||
[global/wm]
|
||||
margin-top = 0
|
||||
margin-bottom = 0
|
||||
|
||||
; vim:ft=dosini
|
423
conf/config/polybar/config~
Normal file
423
conf/config/polybar/config~
Normal file
@ -0,0 +1,423 @@
|
||||
;==========================================================
|
||||
;
|
||||
;
|
||||
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||
;
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/polybar/polybar
|
||||
;
|
||||
; The README contains a lot of information
|
||||
;
|
||||
;==========================================================
|
||||
|
||||
[colors]
|
||||
;background = ${xrdb:color0:#222}
|
||||
background = #222
|
||||
background-alt = #444
|
||||
;foreground = ${xrdb:color7:#222}
|
||||
foreground = #dfdfdf
|
||||
foreground-alt = #555
|
||||
primary = #ffb52a
|
||||
secondary = #e60053
|
||||
alert = #bd2c40
|
||||
|
||||
[bar/vantagev1]
|
||||
;monitor = ${env:MONITOR:HDMI-1}
|
||||
width = 100%
|
||||
height = 27
|
||||
;offset-x = 1%
|
||||
;offset-y = 1%
|
||||
radius = 0.0
|
||||
fixed-center = false
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3
|
||||
line-color = #f00
|
||||
|
||||
border-size = 0
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 2
|
||||
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
|
||||
font-0 = fixed:pixelsize=10;1
|
||||
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||
font-2 = siji:pixelsize=10;1
|
||||
|
||||
modules-left = bspwm i3
|
||||
;modules-center = mpd
|
||||
modules-right = xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 0
|
||||
;tray-background = #0063ff
|
||||
|
||||
wm-restack = bspwm
|
||||
;wm-restack = i3
|
||||
|
||||
;override-redirect = true
|
||||
|
||||
;scroll-up = bspwm-desknext
|
||||
;scroll-down = bspwm-deskprev
|
||||
|
||||
;scroll-up = i3wm-wsnext
|
||||
;scroll-down = i3wm-wsprev
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:30:...%
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-prefix-underline = ${colors.secondary}
|
||||
|
||||
label-layout = %layout%
|
||||
label-layout-underline = ${colors.secondary}
|
||||
|
||||
label-indicator-padding = 2
|
||||
label-indicator-margin = 1
|
||||
label-indicator-background = ${colors.secondary}
|
||||
label-indicator-underline = ${colors.secondary}
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
|
||||
label-focused = %index%
|
||||
label-focused-background = ${colors.background-alt}
|
||||
label-focused-underline= ${colors.primary}
|
||||
label-focused-padding = 2
|
||||
|
||||
label-occupied = %index%
|
||||
label-occupied-padding = 2
|
||||
|
||||
label-urgent = %index%!
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 2
|
||||
|
||||
label-empty = %index%
|
||||
label-empty-foreground = ${colors.foreground-alt}
|
||||
label-empty-padding = 2
|
||||
|
||||
; Separator in between workspaces
|
||||
; label-separator = |
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
format = <label-state> <label-mode>
|
||||
index-sort = true
|
||||
wrapping-scroll = false
|
||||
|
||||
; Only show workspaces on the same output as the bar
|
||||
;pin-workspaces = true
|
||||
|
||||
label-mode-padding = 2
|
||||
label-mode-foreground = #000
|
||||
label-mode-background = ${colors.primary}
|
||||
|
||||
; focused = Active workspace on focused monitor
|
||||
label-focused = %index%
|
||||
label-focused-background = ${colors.background-alt}
|
||||
label-focused-underline= ${colors.primary}
|
||||
label-focused-padding = 2
|
||||
|
||||
; unfocused = Inactive workspace on any monitor
|
||||
label-unfocused = %index%
|
||||
label-unfocused-padding = 2
|
||||
|
||||
; visible = Active workspace on unfocused monitor
|
||||
label-visible = %index%
|
||||
label-visible-background = ${self.label-focused-background}
|
||||
label-visible-underline = ${self.label-focused-underline}
|
||||
label-visible-padding = ${self.label-focused-padding}
|
||||
|
||||
; urgent = Workspace with urgency hint set
|
||||
label-urgent = %index%
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 2
|
||||
|
||||
; Separator in between workspaces
|
||||
; label-separator = |
|
||||
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
||||
|
||||
icon-prev =
|
||||
icon-stop =
|
||||
icon-play =
|
||||
icon-pause =
|
||||
icon-next =
|
||||
|
||||
label-song-maxlen = 25
|
||||
label-song-ellipsis = true
|
||||
|
||||
[module/xbacklight]
|
||||
type = internal/xbacklight
|
||||
|
||||
format = <label> <bar>
|
||||
label = BL
|
||||
|
||||
bar-width = 10
|
||||
bar-indicator = |
|
||||
bar-indicator-foreground = #fff
|
||||
bar-indicator-font = 2
|
||||
bar-fill = ─
|
||||
bar-fill-font = 2
|
||||
bar-fill-foreground = #9f78e1
|
||||
bar-empty = ─
|
||||
bar-empty-font = 2
|
||||
bar-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/backlight-acpi]
|
||||
inherit = module/xbacklight
|
||||
type = internal/backlight
|
||||
card = amdgpu_bl0
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #f90000
|
||||
label = %percentage:2%%
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #4bffdc
|
||||
label = %percentage_used%%
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = net1
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <ramp-signal> <label-connected>
|
||||
format-connected-underline = #9f78e1
|
||||
label-connected = %essid%
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-4 =
|
||||
ramp-signal-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/eth]
|
||||
type = internal/network
|
||||
interface = enp0s31f6
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = #55aa55
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||
label-connected = %local_ip%
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 5
|
||||
|
||||
date =
|
||||
date-alt = " %Y-%m-%d"
|
||||
|
||||
time = %H:%M
|
||||
time-alt = %H:%M:%S
|
||||
|
||||
format-prefix =
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #0a6cf5
|
||||
|
||||
label = %date% %time%
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume = VOL %percentage%%
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
label-muted = 🔇 muted
|
||||
label-muted-foreground = #666
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 = #55aa55
|
||||
bar-volume-foreground-1 = #55aa55
|
||||
bar-volume-foreground-2 = #55aa55
|
||||
bar-volume-foreground-3 = #55aa55
|
||||
bar-volume-foreground-4 = #55aa55
|
||||
bar-volume-foreground-5 = #f5a70a
|
||||
bar-volume-foreground-6 = #ff5555
|
||||
bar-volume-gradient = false
|
||||
bar-volume-indicator = |
|
||||
bar-volume-indicator-font = 2
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 2
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 2
|
||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/alsa]
|
||||
type = internal/alsa
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume = VOL
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
format-muted-prefix = " "
|
||||
format-muted-foreground = ${colors.foreground-alt}
|
||||
label-muted = sound muted
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 = #55aa55
|
||||
bar-volume-foreground-1 = #55aa55
|
||||
bar-volume-foreground-2 = #55aa55
|
||||
bar-volume-foreground-3 = #55aa55
|
||||
bar-volume-foreground-4 = #55aa55
|
||||
bar-volume-foreground-5 = #f5a70a
|
||||
bar-volume-foreground-6 = #ff5555
|
||||
bar-volume-gradient = false
|
||||
bar-volume-indicator = |
|
||||
bar-volume-indicator-font = 2
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 2
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 2
|
||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = ADP1
|
||||
full-at = 98
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-charging-underline = #ffb52a
|
||||
|
||||
format-discharging = <animation-discharging> <label-discharging>
|
||||
format-discharging-underline = ${self.format-charging-underline}
|
||||
|
||||
format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||
format-full-underline = ${self.format-charging-underline}
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-foreground = ${colors.foreground-alt}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground-alt}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
animation-discharging-0 =
|
||||
animation-discharging-1 =
|
||||
animation-discharging-2 =
|
||||
animation-discharging-foreground = ${colors.foreground-alt}
|
||||
animation-discharging-framerate = 750
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 60
|
||||
|
||||
format = <ramp> <label>
|
||||
format-underline = #f50a4d
|
||||
format-warn = <ramp> <label-warn>
|
||||
format-warn-underline = ${self.format-underline}
|
||||
|
||||
label = %temperature-c%
|
||||
label-warn = %temperature-c%
|
||||
label-warn-foreground = ${colors.secondary}
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/powermenu]
|
||||
type = custom/menu
|
||||
|
||||
expand-right = true
|
||||
|
||||
format-spacing = 1
|
||||
|
||||
label-open =
|
||||
label-open-foreground = ${colors.secondary}
|
||||
label-close = cancel
|
||||
label-close-foreground = ${colors.secondary}
|
||||
label-separator = |
|
||||
label-separator-foreground = ${colors.foreground-alt}
|
||||
|
||||
menu-0-0 = reboot
|
||||
menu-0-0-exec = menu-open-1
|
||||
menu-0-1 = power off
|
||||
menu-0-1-exec = menu-open-2
|
||||
|
||||
menu-1-0 = cancel
|
||||
menu-1-0-exec = menu-open-0
|
||||
menu-1-1 = reboot
|
||||
menu-1-1-exec = sudo reboot
|
||||
|
||||
menu-2-0 = power off
|
||||
menu-2-0-exec = sudo poweroff
|
||||
menu-2-1 = cancel
|
||||
menu-2-1-exec = menu-open-0
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
;compositing-background = screen
|
||||
;compositing-foreground = source
|
||||
;compositing-border = over
|
||||
;pseudo-transparency = false
|
||||
|
||||
[global/wm]
|
||||
margin-top = 5
|
||||
margin-bottom = 5
|
||||
|
||||
; vim:ft=dosini
|
1
conf/config/rofi
Submodule
1
conf/config/rofi
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit eb98d5ff4f34a60aa3e2e85c9b78cb8a6d2004a1
|
16
conf/config/scripts/brightness
Executable file
16
conf/config/scripts/brightness
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
back="$(xbacklight -get)"
|
||||
|
||||
case $1 in
|
||||
-i)
|
||||
scale="2.0"
|
||||
;;
|
||||
-d)
|
||||
scale="0.5"
|
||||
;;
|
||||
*)
|
||||
scale="1.0"
|
||||
esac
|
||||
|
||||
val="$(echo "${back} * ${scale}" | bc)"
|
||||
exec xbacklight -fps 30 -set $val
|
9
conf/config/scripts/status/battery
Executable file
9
conf/config/scripts/status/battery
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
CHARGE=$(acpi -b | awk '{print $4}')
|
||||
STAT=""
|
||||
if [ "$(acpi -a | awk '{print $3}')" = "on-line" ]; then
|
||||
STAT="++"
|
||||
fi
|
||||
|
||||
echo "BAT $CHARGE $STAT"
|
2
conf/config/scripts/status/brightness
Executable file
2
conf/config/scripts/status/brightness
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
echo "BL $(xbacklight -get)%"
|
2
conf/config/scripts/status/layout
Executable file
2
conf/config/scripts/status/layout
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
swaymsg -t get_inputs | jq '.[0].xkb_active_layout_name' | cut -d '"' -f2
|
2
conf/config/scripts/status/volume
Executable file
2
conf/config/scripts/status/volume
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
echo "VOL $(amixer sget Master | tail -1 | cut -d '[' -f 2 | cut -d ']' -f 1)"
|
207
conf/config/sway/config
Normal file
207
conf/config/sway/config
Normal file
@ -0,0 +1,207 @@
|
||||
### Variables
|
||||
set $mod Mod4
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
set $term alacritty
|
||||
set $menu wofi --show drun
|
||||
|
||||
# Disable xwaylnad
|
||||
# xwayland disable
|
||||
|
||||
exec swaybg -o "*" -i "$HOME"/Images/walls/lake.jpg -m fill
|
||||
|
||||
### Output configuration
|
||||
|
||||
# Idle configuration
|
||||
exec swayidle -w \
|
||||
timeout 30 '$SCRIPT_DIR/brightness -d' \
|
||||
resume '$SCRIPT_DIR/brightness -i' \
|
||||
timeout 360 'swaylock -f -c 000000' \
|
||||
timeout 600 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"'
|
||||
|
||||
### Input configuration
|
||||
# Touchpad settings
|
||||
input type:touchpad {
|
||||
dwt enabled
|
||||
tap enabled
|
||||
natural_scroll enabled
|
||||
middle_emulation enabled
|
||||
}
|
||||
# Keyboard layout
|
||||
input type:keyboard {
|
||||
xkb_layout it
|
||||
}
|
||||
|
||||
### Key bindings
|
||||
# backlight keys
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -fps 30 -inc 5
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -fps 30 -dec 5
|
||||
|
||||
#audio control
|
||||
bindsym XF86AudioRaiseVolume exec amixer -q sset Master 3%+
|
||||
bindsym XF86AudioLowerVolume exec amixer -q sset Master 3%-
|
||||
bindsym XF86AudioMute exec amixer -q sset Master toggle
|
||||
bindsym XF86AudioMicMute exec amixer -q sset Capture toggle
|
||||
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
|
||||
# Kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# Start your launcher
|
||||
bindsym $mod+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+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 1
|
||||
bindsym $mod+2 workspace 2
|
||||
bindsym $mod+3 workspace 3
|
||||
bindsym $mod+4 workspace 4
|
||||
bindsym $mod+5 workspace 5
|
||||
bindsym $mod+6 workspace 6
|
||||
bindsym $mod+7 workspace 7
|
||||
bindsym $mod+8 workspace 8
|
||||
bindsym $mod+9 workspace 9
|
||||
bindsym $mod+0 workspace 10
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace 1
|
||||
bindsym $mod+Shift+2 move container to workspace 2
|
||||
bindsym $mod+Shift+3 move container to workspace 3
|
||||
bindsym $mod+Shift+4 move container to workspace 4
|
||||
bindsym $mod+Shift+5 move container to workspace 5
|
||||
bindsym $mod+Shift+6 move container to workspace 6
|
||||
bindsym $mod+Shift+7 move container to workspace 7
|
||||
bindsym $mod+Shift+8 move container to workspace 8
|
||||
bindsym $mod+Shift+9 move container to workspace 9
|
||||
bindsym $mod+Shift+0 move container to workspace 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:
|
||||
#
|
||||
|
||||
# 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"
|
||||
#
|
||||
# Visual stuff
|
||||
#
|
||||
|
||||
# Disable title bars
|
||||
default_border pixel 2
|
||||
default_floating_border pixel 2
|
||||
for_window [class=".*"] border pixel 2
|
||||
|
||||
# Set the gaps
|
||||
# smart_gaps on
|
||||
# smart_borders on
|
||||
gaps inner 10
|
||||
gaps outer 10
|
||||
|
||||
# Status Bar:
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
# position top
|
||||
# status_command i3blocks
|
||||
# colors {
|
||||
# statusline #ffffff
|
||||
# background #323232
|
||||
# inactive_workspace #505050 #323232 #ffffff
|
||||
# }
|
||||
}
|
||||
|
||||
include /etc/sway/config.d/*
|
135
conf/config/sxhkd/sxhkdrc
Normal file
135
conf/config/sxhkd/sxhkdrc
Normal file
@ -0,0 +1,135 @@
|
||||
#
|
||||
# wm independent hotkeys
|
||||
#
|
||||
|
||||
# backlight keys
|
||||
XF86MonBrightness{Up,Down}
|
||||
xbacklight -fps 25 -{inc,dec} 5
|
||||
|
||||
# audio control
|
||||
XF86Audio{Raise,Lower}Volume
|
||||
amixer -q sset Master 3%{+,-}
|
||||
|
||||
XF86AudioMute
|
||||
amixer -q sset Master toggle
|
||||
|
||||
XF86AudioMicMute
|
||||
amixer -q sset Capture toggle
|
||||
|
||||
# terminal emulator
|
||||
super + Return
|
||||
alacritty
|
||||
|
||||
# program launcher
|
||||
super + @space
|
||||
rofi -show drun
|
||||
|
||||
# make sxhkd reload its configuration files:
|
||||
super + Escape
|
||||
pkill -USR1 -x sxhkd
|
||||
|
||||
#
|
||||
# bspwm hotkeys
|
||||
#
|
||||
|
||||
# quit/restart bspwm
|
||||
super + alt + {q,r}
|
||||
bspc {quit,wm -r}
|
||||
|
||||
# close and kill
|
||||
super + {_,shift + }w
|
||||
bspc node -{c,k}
|
||||
|
||||
# alternate between the tiled and monocle layout
|
||||
super + m
|
||||
bspc desktop -l next
|
||||
|
||||
# send the newest marked node to the newest preselected node
|
||||
super + y
|
||||
bspc node newest.marked.local -n newest.!automatic.local
|
||||
|
||||
# swap the current node and the biggest node
|
||||
super + g
|
||||
bspc node -s biggest
|
||||
|
||||
#
|
||||
# state/flags
|
||||
#
|
||||
|
||||
# set the window state
|
||||
super + {t,shift + t,s,f}
|
||||
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
||||
|
||||
# set the node flags
|
||||
super + ctrl + {m,x,y,z}
|
||||
bspc node -g {marked,locked,sticky,private}
|
||||
|
||||
#
|
||||
# focus/swap
|
||||
#
|
||||
|
||||
# focus the node in the given direction
|
||||
super + {_,shift + }{h,j,k,l}
|
||||
bspc node -{f,s} {west,south,north,east}
|
||||
|
||||
# focus the node for the given path jump
|
||||
super + {p,b,comma,period}
|
||||
bspc node -f @{parent,brother,first,second}
|
||||
|
||||
# focus the next/previous node in the current desktop
|
||||
super + {_,shift + }c
|
||||
bspc node -f {next,prev}.local
|
||||
|
||||
# focus the next/previous desktop in the current monitor
|
||||
super + bracket{left,right}
|
||||
bspc desktop -f {prev,next}.local
|
||||
|
||||
# focus the last node/desktop
|
||||
super + {grave,Tab}
|
||||
bspc {node,desktop} -f last
|
||||
|
||||
# focus the older or newer node in the focus history
|
||||
super + {o,i}
|
||||
bspc wm -h off; \
|
||||
bspc node {older,newer} -f; \
|
||||
bspc wm -h on
|
||||
|
||||
# focus or send to the given desktop
|
||||
super + {_,shift + }{1-9,0}
|
||||
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||
|
||||
#
|
||||
# preselect
|
||||
#
|
||||
|
||||
# preselect the direction
|
||||
super + ctrl + {h,j,k,l}
|
||||
bspc node -p {west,south,north,east}
|
||||
|
||||
# preselect the ratio
|
||||
super + ctrl + {1-9}
|
||||
bspc node -o 0.{1-9}
|
||||
|
||||
# cancel the preselection for the focused node
|
||||
super + ctrl + space
|
||||
bspc node -p cancel
|
||||
|
||||
# cancel the preselection for the focused desktop
|
||||
super + ctrl + shift + space
|
||||
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
||||
|
||||
#
|
||||
# move/resize
|
||||
#
|
||||
|
||||
# expand a window by moving one of its side outward
|
||||
super + alt + {h,j,k,l}
|
||||
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
||||
|
||||
# contract a window by moving one of its side inward
|
||||
super + shift + alt + {h,j,k,l}
|
||||
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
|
||||
|
||||
# move a floating window
|
||||
super + {Left,Down,Up,Right}
|
||||
bspc node -v {-20 0,0 20,0 -20,20 0}
|
121
conf/config/sxhkd/sxhkdrc~
Normal file
121
conf/config/sxhkd/sxhkdrc~
Normal file
@ -0,0 +1,121 @@
|
||||
#
|
||||
# wm independent hotkeys
|
||||
#
|
||||
|
||||
# terminal emulator
|
||||
super + Return
|
||||
kitty
|
||||
|
||||
# program launcher
|
||||
super + @space
|
||||
rofi -show drun
|
||||
|
||||
# make sxhkd reload its configuration files:
|
||||
super + Escape
|
||||
pkill -USR1 -x sxhkd
|
||||
|
||||
#
|
||||
# bspwm hotkeys
|
||||
#
|
||||
|
||||
# quit/restart bspwm
|
||||
super + alt + {q,r}
|
||||
bspc {quit,wm -r}
|
||||
|
||||
# close and kill
|
||||
super + {_,shift + }w
|
||||
bspc node -{c,k}
|
||||
|
||||
# alternate between the tiled and monocle layout
|
||||
super + m
|
||||
bspc desktop -l next
|
||||
|
||||
# send the newest marked node to the newest preselected node
|
||||
super + y
|
||||
bspc node newest.marked.local -n newest.!automatic.local
|
||||
|
||||
# swap the current node and the biggest node
|
||||
super + g
|
||||
bspc node -s biggest
|
||||
|
||||
#
|
||||
# state/flags
|
||||
#
|
||||
|
||||
# set the window state
|
||||
super + {t,shift + t,s,f}
|
||||
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
||||
|
||||
# set the node flags
|
||||
super + ctrl + {m,x,y,z}
|
||||
bspc node -g {marked,locked,sticky,private}
|
||||
|
||||
#
|
||||
# focus/swap
|
||||
#
|
||||
|
||||
# focus the node in the given direction
|
||||
super + {_,shift + }{h,j,k,l}
|
||||
bspc node -{f,s} {west,south,north,east}
|
||||
|
||||
# focus the node for the given path jump
|
||||
super + {p,b,comma,period}
|
||||
bspc node -f @{parent,brother,first,second}
|
||||
|
||||
# focus the next/previous node in the current desktop
|
||||
super + {_,shift + }c
|
||||
bspc node -f {next,prev}.local
|
||||
|
||||
# focus the next/previous desktop in the current monitor
|
||||
super + bracket{left,right}
|
||||
bspc desktop -f {prev,next}.local
|
||||
|
||||
# focus the last node/desktop
|
||||
super + {grave,Tab}
|
||||
bspc {node,desktop} -f last
|
||||
|
||||
# focus the older or newer node in the focus history
|
||||
super + {o,i}
|
||||
bspc wm -h off; \
|
||||
bspc node {older,newer} -f; \
|
||||
bspc wm -h on
|
||||
|
||||
# focus or send to the given desktop
|
||||
super + {_,shift + }{1-9,0}
|
||||
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||
|
||||
#
|
||||
# preselect
|
||||
#
|
||||
|
||||
# preselect the direction
|
||||
super + ctrl + {h,j,k,l}
|
||||
bspc node -p {west,south,north,east}
|
||||
|
||||
# preselect the ratio
|
||||
super + ctrl + {1-9}
|
||||
bspc node -o 0.{1-9}
|
||||
|
||||
# cancel the preselection for the focused node
|
||||
super + ctrl + space
|
||||
bspc node -p cancel
|
||||
|
||||
# cancel the preselection for the focused desktop
|
||||
super + ctrl + shift + space
|
||||
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
||||
|
||||
#
|
||||
# move/resize
|
||||
#
|
||||
|
||||
# expand a window by moving one of its side outward
|
||||
super + alt + {h,j,k,l}
|
||||
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
||||
|
||||
# contract a window by moving one of its side inward
|
||||
super + alt + shift + {h,j,k,l}
|
||||
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
|
||||
|
||||
# move a floating window
|
||||
super + {Left,Down,Up,Right}
|
||||
bspc node -v {-20 0,0 20,0 -20,20 0}
|
104
conf/config/waybar/config
Normal file
104
conf/config/waybar/config
Normal file
@ -0,0 +1,104 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 25, // Remove for auto height
|
||||
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
|
||||
// "modules-center": ["sway/window"],
|
||||
"modules-right": ["idle_inhibitor", "network", "cpu", "memory", "temperature", "alsa", "backlight", "battery", "clock", "tray"],
|
||||
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"spacing": 10
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"tooltip-format": "{:%Y-%m-%d | %H:%M}",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"format": "CPU {usage}%",
|
||||
"tooltip": false,
|
||||
"interval": 2
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"format": "MEM {}%"
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
"format": "TEMP {temperatureC}°C"
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"format": "BL {percent}%"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "BAT {capacity}%",
|
||||
"format-charging": "BAT {capacity}",
|
||||
"format-plugged": "PLUGGED",
|
||||
"format-alt": "{time}"
|
||||
},
|
||||
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%)",
|
||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr}",
|
||||
"format-linked": "{ifname} (No IP)",
|
||||
"format-disconnected": "Disconnected",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphones": "",
|
||||
"handsfree": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
|
||||
|
||||
"custom/alsa": {
|
||||
"exec": "amixer get Master | sed -nre 's/.*\\[off\\].*/ muted/p; s/.*\\[(.*%)\\].*/ \\1/p'",
|
||||
"on-click": "amixer set Master toggle; pkill -x -RTMIN+11 waybar",
|
||||
"on-scroll-up": "amixer set Master 1+; pkill -x -RTMIN+11 waybar",
|
||||
"on-scroll-down": "amixer set Master 1-; pkill -x -RTMIN+11 waybar",
|
||||
"signal": 11,
|
||||
"interval": 10,
|
||||
"tooltip": false
|
||||
}
|
||||
}
|
156
conf/config/waybar/style.css
Normal file
156
conf/config/waybar/style.css
Normal file
@ -0,0 +1,156 @@
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(56, 70, 87, 1.0);
|
||||
/*border-bottom: 2px solid rgba(20, 28, 37, 1.0); */
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background-color: #141c25;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 0px;
|
||||
/*background-color: transparent;*/
|
||||
color: #b6c0cc;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
#workspaces button:hover {
|
||||
background: rgba(100, 100, 100, 0.2);
|
||||
box-shadow: inherit;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #5fb5f1;
|
||||
color: #141c25;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #141c25;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#custom-media,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#alsa,
|
||||
#mpd {
|
||||
padding: 0 16px;
|
||||
margin: 0 1px;
|
||||
color: #b6c0cc;
|
||||
background-color: #141c25;
|
||||
}
|
||||
|
||||
#clock {
|
||||
}
|
||||
|
||||
#battery {
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
}
|
||||
|
||||
#cpu {
|
||||
}
|
||||
|
||||
#memory {
|
||||
}
|
||||
|
||||
#backlight {
|
||||
}
|
||||
|
||||
#alsa {
|
||||
}
|
||||
|
||||
#network {
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
|
||||
}
|
||||
|
||||
#temperature {
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
}
|
||||
|
||||
#tray {
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
background-color: #47c0d6;
|
||||
font-size: 18px;
|
||||
color: #141c25;
|
||||
}
|
||||
|
||||
#mpd {
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#mpd.disconnected {
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
}
|
307
conf/config/wayfire.ini
Normal file
307
conf/config/wayfire.ini
Normal file
@ -0,0 +1,307 @@
|
||||
# Default config for Wayfire
|
||||
#
|
||||
# Copy this to ~/.config/wayfire.ini and edit it to your liking.
|
||||
#
|
||||
# Take the tutorial to get started.
|
||||
# https://github.com/WayfireWM/wayfire/wiki/Tutorial
|
||||
#
|
||||
# Read the Configuration document for a complete reference.
|
||||
# https://github.com/WayfireWM/wayfire/wiki/Configuration
|
||||
|
||||
# Input configuration ──────────────────────────────────────────────────────────
|
||||
|
||||
# Example configuration:
|
||||
#
|
||||
# [input]
|
||||
# xkb_layout = us,fr
|
||||
# xkb_variant = dvorak,bepo
|
||||
#
|
||||
# See Input options for a complete reference.
|
||||
# https://github.com/WayfireWM/wayfire/wiki/Configuration#input
|
||||
|
||||
# Output configuration ─────────────────────────────────────────────────────────
|
||||
|
||||
# Example configuration:
|
||||
#
|
||||
# [eDP-1]
|
||||
# mode = 1920x1080@60.000000
|
||||
# layout = 0,0
|
||||
# transform = normal
|
||||
# scale = 1.000000
|
||||
#
|
||||
# You can get the names of your outputs with wlr-randr.
|
||||
# https://github.com/emersion/wlr-randr
|
||||
#
|
||||
# See also kanshi for configuring your outputs automatically.
|
||||
# https://wayland.emersion.fr/kanshi/
|
||||
#
|
||||
# See Output options for a complete reference.
|
||||
# https://github.com/WayfireWM/wayfire/wiki/Configuration#output
|
||||
|
||||
# Core options ─────────────────────────────────────────────────────────────────
|
||||
|
||||
[core]
|
||||
|
||||
# List of plugins to be enabled.
|
||||
# See the Configuration document for a complete list.
|
||||
plugins = \
|
||||
alpha \
|
||||
animate \
|
||||
autostart \
|
||||
command \
|
||||
cube \
|
||||
decoration \
|
||||
expo \
|
||||
fast-switcher \
|
||||
fisheye \
|
||||
grid \
|
||||
idle \
|
||||
invert \
|
||||
move \
|
||||
oswitch \
|
||||
place \
|
||||
resize \
|
||||
switcher \
|
||||
vswitch \
|
||||
window-rules \
|
||||
wobbly \
|
||||
wrot \
|
||||
zoom
|
||||
|
||||
# Note: [blur] is not enabled by default, because it can be resource-intensive.
|
||||
# Feel free to add it to the list if you want it.
|
||||
# You can find its documentation here:
|
||||
# https://github.com/WayfireWM/wayfire/wiki/Configuration#blur
|
||||
|
||||
# Close focused window.
|
||||
close_top_view = <super> KEY_Q | <alt> KEY_F4
|
||||
|
||||
# Workspaces arranged into a grid: 3 × 3.
|
||||
vwidth = 3
|
||||
vheight = 3
|
||||
|
||||
# Mouse bindings ───────────────────────────────────────────────────────────────
|
||||
|
||||
# Drag windows by holding down Super and left mouse button.
|
||||
[move]
|
||||
activate = <super> BTN_LEFT
|
||||
|
||||
# Resize them with right mouse button + Super.
|
||||
[resize]
|
||||
activate = <super> BTN_RIGHT
|
||||
|
||||
# Zoom in the desktop by scrolling + Super + Control.
|
||||
[zoom]
|
||||
modifier = <super>
|
||||
|
||||
# Change opacity by scrolling with Super.
|
||||
[alpha]
|
||||
modifier = <super> <alt>
|
||||
|
||||
# Rotate windows with the mouse.
|
||||
[wrot]
|
||||
activate = <super> <ctrl> BTN_RIGHT
|
||||
|
||||
# Fisheye effect.
|
||||
[fisheye]
|
||||
toggle = <super> <ctrl> KEY_F
|
||||
|
||||
# Startup commands ─────────────────────────────────────────────────────────────
|
||||
|
||||
[autostart]
|
||||
|
||||
# Automatically start background and panel.
|
||||
# Set to false if you want to override the default clients.
|
||||
autostart_wf_shell = true
|
||||
|
||||
# Set the wallpaper, start a panel and dock if you want one.
|
||||
# https://github.com/WayfireWM/wf-shell
|
||||
#
|
||||
# These are started by the autostart_wf_shell option above.
|
||||
#
|
||||
# background = wf-background
|
||||
panel = wf-panel
|
||||
dock = wf-dock
|
||||
|
||||
# Output configuration
|
||||
# https://wayland.emersion.fr/kanshi/
|
||||
outputs = kanshi
|
||||
|
||||
# Notifications
|
||||
# https://wayland.emersion.fr/mako/
|
||||
notifications = mako
|
||||
|
||||
# Screen color temperature
|
||||
# http://jonls.dk/redshift/
|
||||
# Note: Requires Redshift with Wayland support.
|
||||
# https://github.com/jonls/redshift/pull/663
|
||||
redshift = redshift -m wayland
|
||||
|
||||
# Idle configuration
|
||||
# https://github.com/swaywm/swayidle
|
||||
# https://github.com/swaywm/swaylock
|
||||
idle = swayidle before-sleep swaylock
|
||||
|
||||
# XDG desktop portal
|
||||
# Needed by some GTK applications
|
||||
portal = /usr/libexec/xdg-desktop-portal
|
||||
|
||||
# Example configuration:
|
||||
#
|
||||
# [idle]
|
||||
# toggle = <super> KEY_Z
|
||||
# screensaver_timeout = 300
|
||||
# dpms_timeout = 600
|
||||
#
|
||||
# Disables the compositor going idle with Super + z.
|
||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||
# your displays after another 300 seconds.
|
||||
|
||||
# Applications ─────────────────────────────────────────────────────────────────
|
||||
|
||||
[command]
|
||||
|
||||
# Start a terminal
|
||||
# https://github.com/alacritty/alacritty
|
||||
binding_terminal = <super> KEY_ENTER
|
||||
command_terminal = alacritty
|
||||
|
||||
# Start your launcher
|
||||
# https://hg.sr.ht/~scoopta/wofi
|
||||
# Note: Add mode=run or mode=drun to ~/.config/wofi/config.
|
||||
# You can also specify the mode with --show option.
|
||||
binding_launcher = <super> <shift> KEY_ENTER
|
||||
command_launcher = wofi --show drun
|
||||
|
||||
# Screen locker
|
||||
# https://github.com/swaywm/swaylock
|
||||
binding_lock = <super> KEY_ESC
|
||||
command_lock = swaylock
|
||||
|
||||
# Logout
|
||||
# https://github.com/ArtsyMacaw/wlogout
|
||||
binding_logout = <super> <shift> KEY_ESC
|
||||
command_logout = wlogout
|
||||
|
||||
# Screenshots
|
||||
# https://wayland.emersion.fr/grim/
|
||||
# https://wayland.emersion.fr/slurp/
|
||||
binding_screenshot = KEY_PRINT
|
||||
command_screenshot = grim $(date '+%F_%T').webp
|
||||
binding_screenshot_interactive = <shift> KEY_PRINT
|
||||
command_screenshot_interactive = slurp | grim -g - $(date '+%F_%T').webp
|
||||
|
||||
# Volume controls
|
||||
# https://alsa-project.org
|
||||
repeatable_binding_volume_up = KEY_VOLUMEUP
|
||||
command_volume_up = amixer set Master 5%+
|
||||
repeatable_binding_volume_down = KEY_VOLUMEDOWN
|
||||
command_volume_down = amixer set Master 5%-
|
||||
binding_mute = KEY_MUTE
|
||||
command_mute = amixer set Master toggle
|
||||
|
||||
# Screen brightness
|
||||
# https://haikarainen.github.io/light/
|
||||
repeatable_binding_light_up = KEY_BRIGHTNESSUP
|
||||
command_light_up = sudo light -A 5
|
||||
repeatable_binding_light_down = KEY_BRIGHTNESSDOWN
|
||||
command_light_down = sudo light -U 5
|
||||
|
||||
# Windows ──────────────────────────────────────────────────────────────────────
|
||||
|
||||
# Position the windows in certain regions of the output.
|
||||
[grid]
|
||||
#
|
||||
# ⇱ ↑ ⇲ │ 7 8 9
|
||||
# ← f → │ 4 5 6
|
||||
# ⇱ ↓ ⇲ d │ 1 2 3 0
|
||||
# ‾ ‾
|
||||
slot_bl = <super> KEY_KP1
|
||||
slot_b = <super> KEY_KP2
|
||||
slot_br = <super> KEY_KP3
|
||||
slot_l = <super> KEY_LEFT | <super> KEY_KP4
|
||||
slot_c = <super> KEY_UP | <super> KEY_KP5
|
||||
slot_r = <super> KEY_RIGHT | <super> KEY_KP6
|
||||
slot_tl = <super> KEY_KP7
|
||||
slot_t = <super> KEY_KP8
|
||||
slot_tr = <super> KEY_KP9
|
||||
# Restore default.
|
||||
restore = <super> KEY_DOWN | <super> KEY_KP0
|
||||
|
||||
# Change active window with an animation.
|
||||
[switcher]
|
||||
next_view = <alt> KEY_TAB
|
||||
prev_view = <alt> <shift> KEY_TAB
|
||||
|
||||
# Simple active window switcher.
|
||||
[fast-switcher]
|
||||
activate = <alt> KEY_ESC
|
||||
|
||||
# Workspaces ───────────────────────────────────────────────────────────────────
|
||||
|
||||
# Switch to workspace.
|
||||
[vswitch]
|
||||
binding_left = <ctrl> <super> KEY_LEFT
|
||||
binding_down = <ctrl> <super> KEY_DOWN
|
||||
binding_up = <ctrl> <super> KEY_UP
|
||||
binding_right = <ctrl> <super> KEY_RIGHT
|
||||
# Move the focused window with the same key-bindings, but add Shift.
|
||||
binding_win_left = <ctrl> <super> <shift> KEY_LEFT
|
||||
binding_win_down = <ctrl> <super> <shift> KEY_DOWN
|
||||
binding_win_up = <ctrl> <super> <shift> KEY_UP
|
||||
binding_win_right = <ctrl> <super> <shift> KEY_RIGHT
|
||||
|
||||
# Show the current workspace row as a cube.
|
||||
[cube]
|
||||
activate = <ctrl> <alt> BTN_LEFT
|
||||
# Switch to the next or previous workspace.
|
||||
#rotate_left = <super> <ctrl> KEY_H
|
||||
#rotate_right = <super> <ctrl> KEY_L
|
||||
|
||||
# Show an overview of all workspaces.
|
||||
[expo]
|
||||
toggle = <super>
|
||||
# Select a workspace.
|
||||
# Workspaces are arranged into a grid of 3 × 3.
|
||||
# The numbering is left to right, line by line.
|
||||
#
|
||||
# ⇱ k ⇲
|
||||
# h ⏎ l
|
||||
# ⇱ j ⇲
|
||||
# ‾ ‾
|
||||
# See core.vwidth and core.vheight for configuring the grid.
|
||||
select_workspace_1 = KEY_1
|
||||
select_workspace_2 = KEY_2
|
||||
select_workspace_3 = KEY_3
|
||||
select_workspace_4 = KEY_4
|
||||
select_workspace_5 = KEY_5
|
||||
select_workspace_6 = KEY_6
|
||||
select_workspace_7 = KEY_7
|
||||
select_workspace_8 = KEY_8
|
||||
select_workspace_9 = KEY_9
|
||||
|
||||
# Outputs ──────────────────────────────────────────────────────────────────────
|
||||
|
||||
# Change focused output.
|
||||
[oswitch]
|
||||
# Switch to the next output.
|
||||
next_output = <super> KEY_O
|
||||
# Same with the window.
|
||||
next_output_with_win = <super> <shift> KEY_O
|
||||
|
||||
# Invert the colors of the whole output.
|
||||
[invert]
|
||||
toggle = <super> KEY_I
|
||||
|
||||
# Rules ────────────────────────────────────────────────────────────────────────
|
||||
|
||||
# Example configuration:
|
||||
#
|
||||
# [window-rules]
|
||||
# alacritty = app-id Alacritty created -> set maximized
|
||||
#
|
||||
# You can get the properties of your applications with the following command:
|
||||
# $ WAYLAND_DEBUG=1 alacritty 2>&1 | kak
|
||||
#
|
||||
# See Window rules for a complete reference.
|
||||
# https://github.com/WayfireWM/wayfire/wiki/Configuration#window-rules
|
127
conf/config/wf-shell.ini
Normal file
127
conf/config/wf-shell.ini
Normal file
@ -0,0 +1,127 @@
|
||||
# configuration section for the background, supports just the image option
|
||||
|
||||
[background]
|
||||
# Full path to image or directory of images
|
||||
# image = /usr/share/wayfire/wallpaper.jpg
|
||||
# Whether to scale images or preserve background ratio
|
||||
preserve_aspect = 0
|
||||
# In the case of directory, timeout between changing backgrounds, in seconds
|
||||
cycle_timeout = 150
|
||||
# In the case of directory, whether or not to randomize images
|
||||
randomize = 0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# configuration for the panel
|
||||
[panel]
|
||||
|
||||
# widgets_* is a space-separated list of widgets to be displayed
|
||||
# at the corresponding part of the panel
|
||||
# Supported widgets are: launchers clock network battery
|
||||
# A special widgets is spacing widgets, it can be used to add padding everywhere on the panel
|
||||
# To use it, just append the amount of pixels you want as a padding
|
||||
# to the word "spacing" and use it as a plugin
|
||||
widgets_left = spacing4 menu spacing18 launchers
|
||||
widgets_center = clock
|
||||
widgets_right = network spacing6 battery spacing12
|
||||
|
||||
# The minimal size of the panel. Note that some widgets might force panel bigger than this size.
|
||||
# All widgets also have individual settings for size
|
||||
# Changing this requires a panel restart
|
||||
minimal_height = 24
|
||||
|
||||
# automatically hide when pointer isn't over the panel
|
||||
autohide = false
|
||||
|
||||
# layer can be top, bottom, overlay or background
|
||||
layer = top
|
||||
|
||||
# where to position panel
|
||||
# Possible values are only "top" and "bottom"
|
||||
position = top
|
||||
|
||||
# set the background color.
|
||||
background_color = gtk_headerbar # match the color of a GtkHeaderbar
|
||||
#background_color = $555555 # Hex color, for example $FFFFFF for white
|
||||
#background_color = 0.033 0.041 0.047 0.9 # RGBA color, 1.0 0.0 0.0 0.5 for semi-transparent red
|
||||
|
||||
|
||||
|
||||
# Configuration for the launchers widget
|
||||
|
||||
# can be a desktop file
|
||||
launcher_chrome = google-chrome.desktop
|
||||
launcher_firefox = firefox.desktop
|
||||
launcher_terminal1 = terminator.desktop
|
||||
launcher_terminal2 = org.gnome.Terminal.desktop
|
||||
launcher_gedit = org.gnome.gedit.desktop
|
||||
|
||||
# or a combination of bash command + icon
|
||||
launcher_cmd_1 = env XDG_CURRENT_DESKTOP=GNOME gnome-control-center
|
||||
launcher_icon_1 = /usr/share/icons/gnome/48x48/categories/preferences-system.png
|
||||
|
||||
launcher_nau = org.gnome.Nautilus.desktop
|
||||
|
||||
# spacing between widgets, can be negative
|
||||
launchers_spacing = 4
|
||||
|
||||
# size of the launcher icon
|
||||
launcher_size = 42
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Configuration for the clock widget
|
||||
# clock format, uses the Glib Time formatting
|
||||
clock_format = %e %a %H:%M
|
||||
# clock font
|
||||
clock_font = DejaVu Sans:style=Book 12
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Configuration for the battery widget
|
||||
# How much info to display:
|
||||
# 0 -> only icon, 1 -> icon + percentage, 2 -> full info
|
||||
battery_status = 1
|
||||
battery_icon_size = 32
|
||||
|
||||
# invert the colors of the icon, needs to be adjusted according to the size of the icons,
|
||||
# because some icon sizes are white, and others are black
|
||||
battery_icon_invert = 1
|
||||
|
||||
# Font to use in the battery percentage indicator
|
||||
battery_font = default
|
||||
|
||||
|
||||
# Configuration for the network widget
|
||||
# Whether to display connection details, for ex. Wifi AP name
|
||||
network_status = 1
|
||||
|
||||
network_status_font = DejaVu Sans:style=Book 10
|
||||
# network_icon_size = 30
|
||||
network_icon_invert_color = 1
|
||||
|
||||
# whether to colour the wifi signal strength
|
||||
network_status_use_color = yes
|
||||
|
||||
# whether to enable fuzzy search in the menu
|
||||
menu_fuzzy_search = 1
|
||||
|
||||
|
||||
|
||||
# Configuration for the volume widget
|
||||
# Number of seconds volume popover will display
|
||||
# after scrolling on the volume icon
|
||||
volume_display_timeout = 2.5
|
||||
|
||||
[dock]
|
||||
position = bottom # or top
|
||||
|
||||
# For applications that aren't installed/configured properly, you can manually
|
||||
# set icons for given app_id's. Below is an example for IntelliJ IDEA
|
||||
icon_mapping_jetbrains-idea-ce = /<path to intellij>/idea.png
|
36
conf/config/wlogout/layout
Normal file
36
conf/config/wlogout/layout
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"label" : "lock",
|
||||
"action" : "swaylock",
|
||||
"text" : "Lock",
|
||||
"keybind" : "l"
|
||||
}
|
||||
{
|
||||
"label" : "hibernate",
|
||||
"action" : "systemctl hibernate",
|
||||
"text" : "Hibernate",
|
||||
"keybind" : "h"
|
||||
}
|
||||
{
|
||||
"label" : "logout",
|
||||
"action" : "loginctl terminate-user $USER",
|
||||
"text" : "Logout",
|
||||
"keybind" : "e"
|
||||
}
|
||||
{
|
||||
"label" : "shutdown",
|
||||
"action" : "systemctl poweroff",
|
||||
"text" : "Shutdown",
|
||||
"keybind" : "s"
|
||||
}
|
||||
{
|
||||
"label" : "suspend",
|
||||
"action" : "systemctl suspend",
|
||||
"text" : "Suspend",
|
||||
"keybind" : "u"
|
||||
}
|
||||
{
|
||||
"label" : "reboot",
|
||||
"action" : "systemctl reboot",
|
||||
"text" : "Reboot",
|
||||
"keybind" : "r"
|
||||
}
|
44
conf/config/wlogout/style.css
Normal file
44
conf/config/wlogout/style.css
Normal file
@ -0,0 +1,44 @@
|
||||
* {
|
||||
background-image: none;
|
||||
}
|
||||
window {
|
||||
background-color: rgba(12, 12, 12, 0.9);
|
||||
}
|
||||
button {
|
||||
color: #FFFFFF;
|
||||
background-color: #1E1E1E;
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 25%;
|
||||
}
|
||||
|
||||
button:focus, button:active, button:hover {
|
||||
background-color: #3700B3;
|
||||
outline-style: none;
|
||||
}
|
||||
|
||||
#lock {
|
||||
background-image: image(url("/usr/share/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png"));
|
||||
}
|
||||
|
||||
#logout {
|
||||
background-image: image(url("/usr/share/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png"));
|
||||
}
|
||||
|
||||
#suspend {
|
||||
background-image: image(url("/usr/share/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png"));
|
||||
}
|
||||
|
||||
#hibernate {
|
||||
background-image: image(url("/usr/share/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png"));
|
||||
}
|
||||
|
||||
#shutdown {
|
||||
background-image: image(url("/usr/share/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png"));
|
||||
}
|
||||
|
||||
#reboot {
|
||||
background-image: image(url("/usr/share/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png"));
|
||||
}
|
0
conf/home/Xresources
Normal file
0
conf/home/Xresources
Normal file
32
conf/home/asoundrc
Normal file
32
conf/home/asoundrc
Normal file
@ -0,0 +1,32 @@
|
||||
pcm.custom
|
||||
{
|
||||
type plug
|
||||
slave {
|
||||
pcm "dmix:1,0"
|
||||
}
|
||||
}
|
||||
|
||||
ctl.custom
|
||||
{
|
||||
type hw
|
||||
card 1
|
||||
}
|
||||
|
||||
pcm.dsncap
|
||||
{
|
||||
type dsnoop
|
||||
slave {
|
||||
pcm "hw:1,0"
|
||||
channels 2
|
||||
}
|
||||
}
|
||||
|
||||
pcm.duplex
|
||||
{
|
||||
type asym
|
||||
playback.pcm pcm.custom
|
||||
capture.pcm pcm.dsncap
|
||||
}
|
||||
|
||||
pcm.!default pcm.duplex
|
||||
ctl.!default ctl.custom
|
8
conf/home/bashrc
Normal file
8
conf/home/bashrc
Normal file
@ -0,0 +1,8 @@
|
||||
# .bashrc
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
#PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$'
|
||||
PS1='\[\033[33m\][\u] \[\033[1;34m\]\W λ \[\033[0;00m\]'
|
11
conf/home/vim/.netrwhist
Normal file
11
conf/home/vim/.netrwhist
Normal file
@ -0,0 +1,11 @@
|
||||
let g:netrw_dirhistmax =10
|
||||
let g:netrw_dirhistcnt =9
|
||||
let g:netrw_dirhist_9='/home/ale/sw/conf/config/waybar'
|
||||
let g:netrw_dirhist_8='/home/ale/sw/conf/config/sway'
|
||||
let g:netrw_dirhist_7='/home/ale/Documents/projects/distro'
|
||||
let g:netrw_dirhist_6='/home/ale/dots/global/etc/X11/xorg.conf.d'
|
||||
let g:netrw_dirhist_5='/home/ale/Documents/projects/usc'
|
||||
let g:netrw_dirhist_4='/home/ale/Documents/projects/usc/doc/config'
|
||||
let g:netrw_dirhist_3='/home/ale/Documents/projects/distro/software'
|
||||
let g:netrw_dirhist_2='/home/ale/Documents/projects/distro'
|
||||
let g:netrw_dirhist_1='/home/ale/.config/sxhkd'
|
2597
conf/home/vim/autoload/plug.vim
Normal file
2597
conf/home/vim/autoload/plug.vim
Normal file
File diff suppressed because it is too large
Load Diff
1
conf/home/vim/plugged/lightline.vim
Submodule
1
conf/home/vim/plugged/lightline.vim
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 893bd90787abfec52a2543074e444fc6a9e0cf78
|
1
conf/home/vim/plugged/nerdtree
Submodule
1
conf/home/vim/plugged/nerdtree
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 343508e9fd981928f1e830c71c9d8b2a54edb7dd
|
1
conf/home/vim/plugged/vim-css-color
Submodule
1
conf/home/vim/plugged/vim-css-color
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 1f9fe5c1f9e0a6bfc41b14d070f4d878d445ae96
|
1
conf/home/vim/plugged/vim-fugitive
Submodule
1
conf/home/vim/plugged/vim-fugitive
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 0e35c9bbc78159318e7b7ffd228f09a96afb8fde
|
1
conf/home/vim/plugged/vim-multiple-cursors
Submodule
1
conf/home/vim/plugged/vim-multiple-cursors
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 701e92dd4cfd1b0f511e83a96d52bc590c0218dd
|
1
conf/home/vim/plugged/vimwiki
Submodule
1
conf/home/vim/plugged/vimwiki
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 64c9f3d36d632b1657616c06ea8f08f14cf6438d
|
1
conf/home/vim/vim
Symbolic link
1
conf/home/vim/vim
Symbolic link
@ -0,0 +1 @@
|
||||
/home/ale/.local/share/startw/conf/home/vim
|
44
conf/home/vimrc
Normal file
44
conf/home/vimrc
Normal file
@ -0,0 +1,44 @@
|
||||
" Install vim-plug if it is not already installed, for
|
||||
" Portability's sake
|
||||
if empty(glob('~/.vim/autoload/plug.vim'))
|
||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||
endif
|
||||
|
||||
" Plugins will be downloaded under the specified directory.
|
||||
call plug#begin('~/.vim/plugged')
|
||||
|
||||
" Declare the list of plugins.
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'terryma/vim-multiple-cursors'
|
||||
Plug 'ap/vim-css-color'
|
||||
Plug 'vimwiki/vimwiki'
|
||||
|
||||
" List ends here. Plugins become visible to Vim after this call.
|
||||
call plug#end()
|
||||
|
||||
" Syntax and some plugins
|
||||
:filetype plugin on
|
||||
:syntax on
|
||||
|
||||
" Use mouse
|
||||
set mouse=a
|
||||
set ttymouse=sgr
|
||||
|
||||
" lightline is installed so this is not necessary
|
||||
set noshowmode
|
||||
set laststatus=2
|
||||
if !has('gui_running')
|
||||
set t_Co=256
|
||||
endif
|
||||
|
||||
" NERDTree
|
||||
map <C-t> :NERDTreeToggle<CR>
|
||||
|
||||
" Start nerdtree when no file is specified
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
||||
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif
|
44
conf/home/xinitrc
Normal file
44
conf/home/xinitrc
Normal file
@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
usermodmap=$HOME/.Xmodmap
|
||||
sysresources=/etc/X11/xinit/.Xresources
|
||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
|
||||
# merge in defaults and keymaps
|
||||
|
||||
if [ -f $sysresources ]; then
|
||||
xrdb -merge $sysresources
|
||||
fi
|
||||
|
||||
if [ -f $sysmodmap ]; then
|
||||
xmodmap $sysmodmap
|
||||
fi
|
||||
|
||||
if [ -f "$userresources" ]; then
|
||||
xrdb -merge "$userresources"
|
||||
fi
|
||||
|
||||
if [ -f "$usermodmap" ]; then
|
||||
xmodmap "$usermodmap"
|
||||
fi
|
||||
|
||||
# start some nice programs
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
xsetroot -cursor_name left_ptr &
|
||||
setxkbmap it
|
||||
# set in xresources
|
||||
#xrandr --dpi 157
|
||||
nitrogen --restore &
|
||||
polybar -r vantagev1 &
|
||||
dhcpcd-gtk &
|
||||
devmon &
|
||||
exec bspwm
|
||||
|
126
startw
Executable file
126
startw
Executable file
@ -0,0 +1,126 @@
|
||||
#!/bin/sh
|
||||
# This script, much like startx, starts a wayland session.
|
||||
# Startup programs, configuration and environment variables all
|
||||
# reside in $HOME/.local/share/startw
|
||||
|
||||
#
|
||||
# PRELIMINARY CONFIGURATION
|
||||
#
|
||||
|
||||
# Variable definitions
|
||||
STARTW_ROOT=$HOME/.local/share/startw
|
||||
DOTS_ROOT=$STARTW_ROOT/conf
|
||||
STARTW_LOG_FILE=$STARTW_ROOT/"err-$(date +%F).log"
|
||||
|
||||
# Padding for systemd-less systems
|
||||
if test -z "${XDG_RUNTIME_DIR}"; then
|
||||
XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
|
||||
export XDG_RUNTIME_DIR
|
||||
if ! test -d "${XDG_RUNTIME_DIR}"; then
|
||||
mkdir "${XDG_RUNTIME_DIR}"
|
||||
chmod 0700 "${XDG_RUNTIME_DIR}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Start a local dbus daemon (required for mako)
|
||||
if ! pgrep -f "dbus-daemon --session --address=unix:path=$XDG_RUNTIME_DIR/bus"
|
||||
then
|
||||
dbus-daemon --session --address=unix:path="$XDG_RUNTIME_DIR"/bus 2>&1 |
|
||||
"$STARTW_ROOT"/addts >> "$STARTW_LOG_FILE" &
|
||||
fi
|
||||
|
||||
#
|
||||
# SET ENVIRONMENT VARIABLES
|
||||
#
|
||||
|
||||
# Enable wayland native support
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
export SDL_VIDEODRIVER=wayland
|
||||
export QT_QPA_PLATFORM=wayland-egl
|
||||
export QT_WAYLAND_FORCE_DPI=physical
|
||||
export BEMENU_BACKEND=wayland
|
||||
# Do NOT uncomment this, breaks stuff
|
||||
# export GDK_BACKEND=wayland
|
||||
# Set the hardware acceleration driver
|
||||
export LIBVA_DRIVER_NAME=vdpau
|
||||
# Set the default interface used by wpa_cli
|
||||
export WPA_CLI_INTERFACE=wlp2s0
|
||||
# Set the editor
|
||||
export EDITOR=vim
|
||||
# Application compatibility
|
||||
export GIO_USE_VFS="local"
|
||||
export GIO_USE_VOLUME_MONITOR="unix"
|
||||
# XDG specification variables
|
||||
export XDG_CURRENT_DESKTOP=Unity
|
||||
export XDG_DATA_HOME=$HOME/.local/share
|
||||
export XDG_CACHE_HOME=$HOME/.cache
|
||||
export XDG_CONFIG_HOME=$HOME/.config
|
||||
export XDG_DESKTOP_DIR="$HOME/Desktop"
|
||||
export XDG_DOCUMENTS_DIR="$HOME/Documents"
|
||||
export XDG_DOWNLOAD_DIR="$HOME/Downloads"
|
||||
export XDG_MUSIC_DIR="$HOME/Music"
|
||||
export XDG_PICTURES_DIR="$HOME/Pictures"
|
||||
export XDG_PUBLICSHARE_DIR="$HOME/Public"
|
||||
export XDG_TEMPLATES_DIR="$HOME/Templates"
|
||||
export XDG_VIDEOS_DIR="$HOME/Videos"
|
||||
# Clean home directory
|
||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
||||
export ATOM_HOME="$XDG_DATA_HOME"/atom
|
||||
export BASH_COMPLETION_USER_FILE="$XDG_CONFIG_HOME"/bash-completion/bash_completion
|
||||
export CARGO_HOME="$XDG_DATA_HOME"/cargo
|
||||
# Set user script dir
|
||||
export SCRIPT_DIR="$XDG_CONFIG_HOME"/scripts
|
||||
|
||||
#
|
||||
# APPLY USER CONFIG
|
||||
#
|
||||
|
||||
# The conf folder contains two subfolders home
|
||||
# and config, everything in the home folder will
|
||||
# be symlinked to $HOME as a hidden file/folder,
|
||||
# whereas everything in the config folder will be
|
||||
# symlinked to $HOME/.config as-is
|
||||
# Dotfiles in these folder will be ignored
|
||||
|
||||
for f in "$DOTS_ROOT"/home/* ; do
|
||||
# If the filename already exists and it is not a link override it
|
||||
if [ -e "$HOME/.$(basename "$f")" ]; then
|
||||
if [ ! -L "$HOME/.$(basename "$f")" ]; then
|
||||
rm -rf "$HOME/.$(basename "$f")"
|
||||
fi
|
||||
fi
|
||||
ln -sf "$f" "$HOME/.$(basename "$f")"
|
||||
done
|
||||
|
||||
for f in "$DOTS_ROOT"/config/* ; do
|
||||
# If the filename already exists and it is not a link override it
|
||||
if [ -e "$HOME/.config/$(basename "$f")" ]; then
|
||||
if [ ! -L "$HOME/.config/$(basename "$f")" ]; then
|
||||
rm -rf "$HOME/.config/$(basename "$f")"
|
||||
fi
|
||||
fi
|
||||
ln -sf "$f" "$HOME/.config/"
|
||||
done
|
||||
|
||||
#
|
||||
# LAUNCH APPLICATIONS
|
||||
#
|
||||
if ! pgrep -x "devmon" > /dev/null
|
||||
then
|
||||
devmon 2>&1 | "$STARTW_ROOT"/addts >> "$STARTW_LOG_FILE" &
|
||||
fi
|
||||
|
||||
# Swaybg needs to run after sway is launched
|
||||
# killall swaybg
|
||||
# swaybg -o "*" -i "$HOME"/Images/walls/roses.jpg -m tile
|
||||
|
||||
#
|
||||
# START COMPOSITOR
|
||||
#
|
||||
|
||||
# create a log file
|
||||
touch "$STARTW_LOG_FILE"
|
||||
|
||||
exec sway 2>&1 | "$STARTW_ROOT"/addts >> "$STARTW_LOG_FILE"
|
||||
# exec wayfire
|
Loading…
Reference in New Issue
Block a user