- hyprland & qtile
This commit is contained in:
17
obsolete/dots/hypridle/hypridle.conf
Normal file
17
obsolete/dots/hypridle/hypridle.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
# timeout in seconds
|
||||
#
|
||||
# https://github.com/hyprwm/hypridle
|
||||
# https://github.com/hyprwm/hypridle/issues/7
|
||||
|
||||
general {
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 1800 # 30x60
|
||||
on-timeout = hyprlock
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 2400 # 45x60
|
||||
on-timeout = hyprctl dispatch dpms off
|
||||
}
|
||||
359
obsolete/dots/hyprland/hyprland.conf
Normal file
359
obsolete/dots/hyprland/hyprland.conf
Normal file
@@ -0,0 +1,359 @@
|
||||
# --------------------------------------------------
|
||||
# klevstul
|
||||
# -----
|
||||
# source documentation:
|
||||
# https://wiki.hyprland.org/
|
||||
# --------------------------------------------------
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# monitors
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Monitors/
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
monitor=,preferred,auto,auto
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# keywords
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Keywords/
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# execute at launch
|
||||
exec-once = startup.sh
|
||||
|
||||
# Source a file (multi-file configs)
|
||||
# source = ~/.config/hypr/myColors.conf
|
||||
|
||||
# Some default env vars.
|
||||
env = XCURSOR_SIZE,24
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# input
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
input {
|
||||
|
||||
# switch keyboard layout
|
||||
# https://wiki.hyprland.org/Configuring/Uncommon-tips--tricks/
|
||||
kb_layout = us,no
|
||||
kb_options = grp:caps_toggle,grp_led:scroll
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
natural_scroll = no
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# input
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
general {
|
||||
|
||||
gaps_in = 4
|
||||
gaps_out = 4
|
||||
border_size = 2
|
||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||
col.inactive_border = rgba(595959aa)
|
||||
|
||||
layout = dwindle # {dwindle, master}
|
||||
|
||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false
|
||||
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# decoration
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
decoration {
|
||||
|
||||
rounding = 10
|
||||
|
||||
blur {
|
||||
enabled = true
|
||||
size = 3
|
||||
passes = 1
|
||||
}
|
||||
|
||||
drop_shadow = yes
|
||||
shadow_range = 4
|
||||
shadow_render_power = 3
|
||||
col.shadow = rgba(1a1a1aee)
|
||||
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# animations
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Animations/
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
animations {
|
||||
|
||||
enabled = yes
|
||||
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 6, default
|
||||
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# dwindle layout
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Dwindle-Layout/
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
dwindle {
|
||||
|
||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = yes # you probably want this
|
||||
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# master layout
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Master-Layout/
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
master {
|
||||
|
||||
new_is_master = true
|
||||
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# gestures
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
gestures {
|
||||
|
||||
workspace_swipe = off
|
||||
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# binds
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#binds
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
binds {
|
||||
|
||||
allow_workspace_cycles = yes
|
||||
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# misc
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
misc {
|
||||
|
||||
disable_hyprland_logo = false
|
||||
force_default_wallpaper = 0
|
||||
|
||||
# only key presses will turn the screen on
|
||||
mouse_move_enables_dpms = false
|
||||
key_press_enables_dpms = true
|
||||
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# per-device input configssc
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
device {
|
||||
|
||||
name=epic-mouse-v1
|
||||
sensitivity = -0.5
|
||||
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# window rules
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Window-Rules/
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Example windowrule v1
|
||||
# windowrule = float, ^(kitty)$
|
||||
# Example windowrule v2
|
||||
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
# `hyprctl clients` - for class names
|
||||
windowrulev2 = tile,class:^(ONLYOFFICE Desktop Editors)$ # something is off with onlyoffice, as it is floating by default. hence this one.
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# plugins
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Plugins/Using-Plugins/
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
plugin {
|
||||
}
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# binds
|
||||
# - - - - -
|
||||
# https://wiki.hyprland.org/Configuring/Binds/
|
||||
#
|
||||
# keysyms (use segment after XKB_KEY_):
|
||||
# https://github.com/xkbcommon/libxkbcommon/blob/master/include/xkbcommon/xkbcommon-keysyms.h
|
||||
#
|
||||
# three keys bind example:
|
||||
# bind = $mainMod_SHIFT, space, togglefloating
|
||||
#
|
||||
# bind[flags]=..
|
||||
# bindrl=MOD,KEY,exec,amongus
|
||||
# flags:
|
||||
# l -> locked, aka. works also when an an input inhibitor (e.g. a lockscreen) is active
|
||||
# r -> release, will trigger on release of a key
|
||||
# e -> repeat, will repeat when held.
|
||||
# m -> mouse
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
$mainMod = SUPER
|
||||
|
||||
# execute programs
|
||||
bind = $mainMod, RETURN, exec, kitty
|
||||
bind = $mainMod, Q, killactive,
|
||||
bind = $mainMod, F3, exec, pcmanfm
|
||||
bind = $mainMod, D, exec, wofi --show drun
|
||||
bind = $mainMod, O, exec, sleep 1; hyprctl dispatch dpms off; hyprlock # monitor off & lock (had to sleep to avoid immediate wakeup)
|
||||
bind = $mainMod, L, exec, hyprlock # lock
|
||||
bind = $mainMod, T, togglegroup
|
||||
|
||||
# misc
|
||||
bind = SHIFT, TAB, changegroupactive, t # t: forward, b: backwards
|
||||
bind = $mainMod, Escape, exit, # exit
|
||||
bind = $mainMod, space, togglefloating # floting (toggle)
|
||||
bind = $mainMod, TAB, workspace, previous # cycle workspace
|
||||
|
||||
# window cycle
|
||||
# https://github.com/hyprwm/Hyprland/issues/2061
|
||||
#bind = ALT, TAB, cyclenext # cycle windows in same workspace
|
||||
#bind = ALT, TAB, bringactivetotop # bring focused window to top
|
||||
bind = ALT, Tab, focuscurrentorlast # switch focus from current to previous window
|
||||
|
||||
# screenshot
|
||||
bind = $mainMod SHIFT, PRINT, exec, hyprshot -m output # monitor
|
||||
bind = $mainMod, PRINT, exec, hyprshot -m window # window
|
||||
bind = , PRINT, exec, hyprshot -m region # region
|
||||
|
||||
# fullscreen
|
||||
bind = $mainMod, F, fullscreen, 1 # fullscreen, with border
|
||||
bind = $mainMod, G, fullscreen, 0 # fullscreen, fill entire screen
|
||||
|
||||
# special workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, magic
|
||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
||||
|
||||
# change keyboard layout
|
||||
# `hyprctl devices` - for keyboard names
|
||||
# https://wiki.hyprland.org/Configuring/Using-hyprctl/#switchxkblayout
|
||||
#bind = , Caps_Lock, exec, hyprctl switchxkblayout at-translated-set-2-keyboard next
|
||||
#bind = , Caps_Lock, exec, hyprctl switchxkblayout usb-keyboard next
|
||||
|
||||
# view mode
|
||||
bind = $mainMod, M, exec, hyprctl keyword general:layout "master" # M(master)
|
||||
bind = $mainMod, N, exec, hyprctl keyword general:layout "dwindle" # (dwi)N(dle)
|
||||
bind = $mainMod, P, pseudo, # dwindle mode - pseudotiled windows retain their floating size when tiled.
|
||||
bind = $mainMod, W, togglesplit, # dwindle mode - toggle split mode (top/side)
|
||||
|
||||
# split mode
|
||||
bind = $mainMod, H, layoutmsg, preselect r # next window to the right (horizontal mode)
|
||||
bind = $mainMod SHIFT, H, layoutmsg, preselect r # next window to the left
|
||||
bind = $mainMod, V, layoutmsg, preselect d # next window to the top (vertical mode)
|
||||
bind = $mainMod SHIFT, V, layoutmsg, preselect d # next window to the bottom
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
||||
bind = $mainMod, right, movefocus, r
|
||||
bind = $mainMod, up, movefocus, u
|
||||
bind = $mainMod, down, movefocus, d
|
||||
|
||||
# media player control
|
||||
bind = $mainMod, XF86AudioPlay, exec, playerctl play
|
||||
bind = $mainMod, XF86AudioStop, exec, playerctl pause
|
||||
bind = $mainMod, XF86AudioNext, exec, playerctl next
|
||||
bind = $mainMod, XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
# volume control
|
||||
bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
||||
bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
|
||||
# focus window
|
||||
# `hyprctl clients` - for window names
|
||||
bind = $mainMod, semicolon, focuswindow, kitty # cli
|
||||
bind = $mainMod, G, focuswindow, gimp
|
||||
bind = $mainMod, K, focuswindow, GitKraken # git[K]raken
|
||||
bind = $mainMod, C, focuswindow, VSCodium # vs[C]odium
|
||||
bind = $mainMod, B, focuswindow, Sublime Text # su[B]lime
|
||||
bind = $mainMod, Y, focuswindow, reaper # [y] not reaper
|
||||
bind = $mainMod, I, focuswindow, firefox # [I]nternet
|
||||
|
||||
# move window
|
||||
bind = $mainMod SHIFT, left, movewindoworgroup, l
|
||||
bind = $mainMod SHIFT, right, movewindoworgroup, r
|
||||
bind = $mainMod SHIFT, up, movewindoworgroup, u
|
||||
bind = $mainMod SHIFT, down, movewindoworgroup, d
|
||||
|
||||
bind = $mainMod ALT, left, moveactive, -40 0
|
||||
bind = $mainMod ALT, right, moveactive, 40 0
|
||||
bind = $mainMod ALT, up, moveactive, 0 -40
|
||||
bind = $mainMod ALT, down, moveactive, 0 40
|
||||
|
||||
# resize window
|
||||
bind = $mainMod CTRL, left, resizeactive, -40 0
|
||||
bind = $mainMod CTRL, right, resizeactive, 40 0
|
||||
bind = $mainMod CTRL, up, resizeactive, 0 -40
|
||||
bind = $mainMod CTRL, down, resizeactive, 0 40
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
bind = $mainMod, 4, workspace, 4
|
||||
bind = $mainMod, 5, workspace, 5
|
||||
bind = $mainMod, 6, workspace, 6
|
||||
bind = $mainMod, 7, workspace, 7
|
||||
bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
bind = $mainMod, 0, workspace, 10
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
#bindm = $mainMod, mouse:273, resizewindow
|
||||
44
obsolete/dots/hyprlock/hyprlock.conf
Normal file
44
obsolete/dots/hyprlock/hyprlock.conf
Normal file
@@ -0,0 +1,44 @@
|
||||
background {
|
||||
monitor =
|
||||
path = ~/.config/hypr/3840x2160_retroSunsetDreamscape_backiee-285012-landscape.png # only png supported for now
|
||||
color = rgba(25, 20, 20, 1.0)
|
||||
|
||||
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
||||
blur_passes = 0 # 0 disables blurring
|
||||
blur_size = 7
|
||||
noise = 0.0117
|
||||
contrast = 0.8916
|
||||
brightness = 0.8172
|
||||
vibrancy = 0.1696
|
||||
vibrancy_darkness = 0.0
|
||||
}
|
||||
|
||||
input-field {
|
||||
monitor =
|
||||
size = 200, 50
|
||||
outline_thickness = 1
|
||||
dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8
|
||||
dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0
|
||||
dots_center = true
|
||||
dots_rounding = -1 # -1 default circle, -2 follow input-field rounding
|
||||
outer_color = rgb(253, 168, 47)
|
||||
inner_color = rgb(30, 28, 50)
|
||||
font_color = rgb(255, 94, 84)
|
||||
fade_on_empty = true
|
||||
fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered.
|
||||
placeholder_text = <i>Input Password...</i> # Text rendered in the input box when it's empty.
|
||||
hide_input = false
|
||||
rounding = -1 # -1 means complete rounding (circle/oval)
|
||||
check_color = rgb(204, 136, 34)
|
||||
fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color
|
||||
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i> # can be set to empty
|
||||
fail_transition = 300 # transition time in ms between normal outer_color and fail_color
|
||||
capslock_color = rgb(255, 255, 0) # -1 for no change
|
||||
numlock_color = rgb(0, 255, 0)
|
||||
bothlock_color = rgb(255, 255, 255) # when both locks are active. -1 means don't change outer color (same for above)
|
||||
invert_numlock = false # change color if numlock is off
|
||||
|
||||
position = 0, -20
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
9
obsolete/dots/hyprpaper/hyprpaper.conf
Normal file
9
obsolete/dots/hyprpaper/hyprpaper.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
# klevstul
|
||||
|
||||
# https://github.com/hyprwm/hyprpaper
|
||||
|
||||
# list monitors with: `hyprctl monitors`
|
||||
|
||||
preload = ~/.config/hypr/3840x2160_tropicalSunsetDreamscape_backiee-291530-landscape.jpg
|
||||
wallpaper = eDP-1,~/.config/hypr/3840x2160_tropicalSunsetDreamscape_backiee-291530-landscape.jpg
|
||||
wallpaper = HDMI-A-1,~/.config/hypr/3840x2160_tropicalSunsetDreamscape_backiee-291530-landscape.jpg
|
||||
241
obsolete/dots/qtile/config.py
Normal file
241
obsolete/dots/qtile/config.py
Normal file
@@ -0,0 +1,241 @@
|
||||
# Copyright (c) 2010 Aldo Cortesi
|
||||
# Copyright (c) 2010, 2014 dequis
|
||||
# Copyright (c) 2012 Randall Ma
|
||||
# Copyright (c) 2012-2014 Tycho Andersen
|
||||
# Copyright (c) 2012 Craig Barnes
|
||||
# Copyright (c) 2013 horsik
|
||||
# Copyright (c) 2013 Tao Sauvage
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
# in the Software without restriction, including without limitation the rights
|
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
from libqtile import bar, layout, qtile, widget
|
||||
from libqtile.config import Click, Drag, Group, Key, Match, Screen
|
||||
from libqtile.lazy import lazy
|
||||
from libqtile.utils import guess_terminal
|
||||
|
||||
mod = "mod4"
|
||||
terminal = guess_terminal()
|
||||
|
||||
# special keys
|
||||
# https://docs.qtile.org/en/latest/manual/config/keys.html#special-keys
|
||||
|
||||
keys = [
|
||||
# A list of available commands that can be bound to keys can be found
|
||||
# at https://docs.qtile.org/en/latest/manual/config/lazy.html
|
||||
# Switch between windows
|
||||
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"),
|
||||
Key([mod], "l", lazy.layout.right(), desc="Move focus to right"),
|
||||
Key([mod], "j", lazy.layout.down(), desc="Move focus down"),
|
||||
Key([mod], "k", lazy.layout.up(), desc="Move focus up"),
|
||||
Key([mod], "Left", lazy.layout.left(), desc="Move focus to left"),
|
||||
Key([mod], "Right", lazy.layout.right(), desc="Move focus to right"),
|
||||
Key([mod], "Down", lazy.layout.down(), desc="Move focus down"),
|
||||
Key([mod], "Up", lazy.layout.up(), desc="Move focus up"),
|
||||
|
||||
Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"),
|
||||
# Move windows between left/right columns or move up/down in current stack.
|
||||
# Moving out of range in Columns layout will create new column.
|
||||
Key([mod, "shift"], "h", lazy.layout.shuffle_left(), desc="Move window to the left"),
|
||||
Key([mod, "shift"], "l", lazy.layout.shuffle_right(), desc="Move window to the right"),
|
||||
Key([mod, "shift"], "j", lazy.layout.shuffle_down(), desc="Move window down"),
|
||||
Key([mod, "shift"], "k", lazy.layout.shuffle_up(), desc="Move window up"),
|
||||
Key([mod, "shift"], "Left", lazy.layout.shuffle_left(), desc="Move window to the left"),
|
||||
Key([mod, "shift"], "Right", lazy.layout.shuffle_right(), desc="Move window to the right"),
|
||||
Key([mod, "shift"], "Down", lazy.layout.shuffle_down(), desc="Move window down"),
|
||||
Key([mod, "shift"], "Up", lazy.layout.shuffle_up(), desc="Move window up"),
|
||||
|
||||
# Grow windows. If current window is on the edge of screen and direction
|
||||
# will be to screen edge - window would shrink.
|
||||
Key([mod, "control"], "h", lazy.layout.grow_left(), desc="Grow window to the left"),
|
||||
Key([mod, "control"], "l", lazy.layout.grow_right(), desc="Grow window to the right"),
|
||||
Key([mod, "control"], "j", lazy.layout.grow_down(), desc="Grow window down"),
|
||||
Key([mod, "control"], "k", lazy.layout.grow_up(), desc="Grow window up"),
|
||||
Key([mod, "control"], "Left", lazy.layout.grow_left(), desc="Grow window to the left"),
|
||||
Key([mod, "control"], "Right", lazy.layout.grow_right(), desc="Grow window to the right"),
|
||||
Key([mod, "control"], "Down", lazy.layout.grow_down(), desc="Grow window down"),
|
||||
Key([mod, "control"], "Up", lazy.layout.grow_up(), desc="Grow window up"),
|
||||
Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),
|
||||
# Toggle between split and unsplit sides of stack.
|
||||
# Split = all windows displayed
|
||||
# Unsplit = 1 window displayed, like Max layout, but still with
|
||||
# multiple stack panes
|
||||
Key(
|
||||
[mod, "shift"],
|
||||
"Return",
|
||||
lazy.layout.toggle_split(),
|
||||
desc="Toggle between split and unsplit sides of stack",
|
||||
),
|
||||
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
|
||||
# Toggle between different layouts as defined below
|
||||
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
|
||||
Key([mod], "w", lazy.window.kill(), desc="Kill focused window"),
|
||||
Key(
|
||||
[mod],
|
||||
"f",
|
||||
lazy.window.toggle_fullscreen(),
|
||||
desc="Toggle fullscreen on the focused window",
|
||||
),
|
||||
Key([mod], "t", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"),
|
||||
Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
|
||||
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
|
||||
Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"),
|
||||
]
|
||||
|
||||
# Add key bindings to switch VTs in Wayland.
|
||||
# We can't check qtile.core.name in default config as it is loaded before qtile is started
|
||||
# We therefore defer the check until the key binding is run by using .when(func=...)
|
||||
for vt in range(1, 8):
|
||||
keys.append(
|
||||
Key(
|
||||
["control", "mod1"],
|
||||
f"f{vt}",
|
||||
lazy.core.change_vt(vt).when(func=lambda: qtile.core.name == "wayland"),
|
||||
desc=f"Switch to VT{vt}",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
groups = [Group(i) for i in "123456789"]
|
||||
|
||||
for i in groups:
|
||||
keys.extend(
|
||||
[
|
||||
# mod1 + group number = switch to group
|
||||
Key(
|
||||
[mod],
|
||||
i.name,
|
||||
lazy.group[i.name].toscreen(),
|
||||
desc="Switch to group {}".format(i.name),
|
||||
),
|
||||
# mod1 + shift + group number = switch to & move focused window to group
|
||||
Key(
|
||||
[mod, "shift"],
|
||||
i.name,
|
||||
lazy.window.togroup(i.name, switch_group=True),
|
||||
desc="Switch to & move focused window to group {}".format(i.name),
|
||||
),
|
||||
# Or, use below if you prefer not to switch to that group.
|
||||
# # mod1 + shift + group number = move focused window to group
|
||||
# Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
|
||||
# desc="move focused window to group {}".format(i.name)),
|
||||
]
|
||||
)
|
||||
|
||||
layouts = [
|
||||
layout.Columns(border_focus_stack=["#d75f5f", "#8f3d3d"], border_width=4),
|
||||
#layout.Max(),
|
||||
# Try more layouts by unleashing below layouts.
|
||||
layout.Stack(num_stacks=2),
|
||||
#layout.Bsp(),
|
||||
#layout.Matrix(),
|
||||
layout.MonadTall(),
|
||||
#layout.MonadWide(),
|
||||
#layout.RatioTile(),
|
||||
#layout.ScreenSplit(),
|
||||
layout.Tile(),
|
||||
layout.TreeTab(),
|
||||
#layout.VerticalTile(),
|
||||
#layout.Zoomy(),
|
||||
]
|
||||
|
||||
widget_defaults = dict(
|
||||
font="sans",
|
||||
fontsize=12,
|
||||
padding=3,
|
||||
)
|
||||
extension_defaults = widget_defaults.copy()
|
||||
|
||||
screens = [
|
||||
Screen(
|
||||
bottom=bar.Bar(
|
||||
[
|
||||
widget.CurrentLayout(),
|
||||
widget.GroupBox(),
|
||||
widget.Prompt(),
|
||||
widget.WindowName(),
|
||||
widget.Chord(
|
||||
chords_colors={
|
||||
"launch": ("#ff0000", "#ffffff"),
|
||||
},
|
||||
name_transform=lambda name: name.upper(),
|
||||
),
|
||||
widget.TextBox("config ➔ wip", name="default"),
|
||||
widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"),
|
||||
# NB Systray is incompatible with Wayland, consider using StatusNotifier instead
|
||||
# widget.StatusNotifier(),
|
||||
widget.Systray(),
|
||||
widget.Clock(format="%Y-%m-%d %a %I:%M %p"),
|
||||
widget.QuickExit(),
|
||||
],
|
||||
24,
|
||||
# border_width=[2, 0, 2, 0], # Draw top and bottom borders
|
||||
# border_color=["ff00ff", "000000", "ff00ff", "000000"] # Borders are magenta
|
||||
),
|
||||
# You can uncomment this variable if you see that on X11 floating resize/moving is laggy
|
||||
# By default we handle these events delayed to already improve performance, however your system might still be struggling
|
||||
# This variable is set to None (no cap) by default, but you can set it to 60 to indicate that you limit it to 60 events per second
|
||||
# x11_drag_polling_rate = 60,
|
||||
),
|
||||
]
|
||||
|
||||
# Drag floating layouts.
|
||||
mouse = [
|
||||
Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
|
||||
Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()),
|
||||
Click([mod], "Button2", lazy.window.bring_to_front()),
|
||||
]
|
||||
|
||||
dgroups_key_binder = None
|
||||
dgroups_app_rules = [] # type: list
|
||||
follow_mouse_focus = True
|
||||
bring_front_click = False
|
||||
floats_kept_above = True
|
||||
cursor_warp = False
|
||||
floating_layout = layout.Floating(
|
||||
float_rules=[
|
||||
# Run the utility of `xprop` to see the wm class and name of an X client.
|
||||
*layout.Floating.default_float_rules,
|
||||
Match(wm_class="confirmreset"), # gitk
|
||||
Match(wm_class="makebranch"), # gitk
|
||||
Match(wm_class="maketag"), # gitk
|
||||
Match(wm_class="ssh-askpass"), # ssh-askpass
|
||||
Match(title="branchdialog"), # gitk
|
||||
Match(title="pinentry"), # GPG key password entry
|
||||
]
|
||||
)
|
||||
auto_fullscreen = True
|
||||
focus_on_window_activation = "smart"
|
||||
reconfigure_screens = True
|
||||
|
||||
# If things like steam games want to auto-minimize themselves when losing
|
||||
# focus, should we respect this or not?
|
||||
auto_minimize = True
|
||||
|
||||
# When using the Wayland backend, this can be used to configure input devices.
|
||||
wl_input_rules = None
|
||||
|
||||
# XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this
|
||||
# string besides java UI toolkits; you can see several discussions on the
|
||||
# mailing lists, GitHub issues, and other WM documentation that suggest setting
|
||||
# this string if your java app doesn't work correctly. We may as well just lie
|
||||
# and say that we're a working one by default.
|
||||
#
|
||||
# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in
|
||||
# java that happens to be on java's whitelist.
|
||||
wmname = "LG3D"
|
||||
165
obsolete/dots/waybar/config.jsonc
Normal file
165
obsolete/dots/waybar/config.jsonc
Normal file
@@ -0,0 +1,165 @@
|
||||
/*
|
||||
klevstul
|
||||
*/
|
||||
|
||||
{
|
||||
|
||||
"layer": "top" // Waybar at top layer
|
||||
, "position": "bottom" // Waybar position (top|bottom|left|right)
|
||||
, "height": 30
|
||||
, "modules-left":
|
||||
[
|
||||
"hyprland/workspaces"
|
||||
, "tray"
|
||||
]
|
||||
, "modules-center":
|
||||
[
|
||||
"hyprland/window" // display title of focused window
|
||||
]
|
||||
, "modules-right":
|
||||
[
|
||||
"idle_inhibitor"
|
||||
, "pulseaudio"
|
||||
, "network"
|
||||
, "memory"
|
||||
, "disk"
|
||||
, "cpu"
|
||||
, "battery"
|
||||
, "temperature"
|
||||
, "clock"
|
||||
]
|
||||
// https://github.com/Alexays/Waybar/wiki/Module:-Battery
|
||||
, "battery":
|
||||
{
|
||||
"format": "{capacity}% {icon}"
|
||||
, "format-icons": ["", "", "", "", ""]
|
||||
}
|
||||
// # https://github.com/Alexays/Waybar/wiki/Module:-Clock
|
||||
, "clock":
|
||||
{
|
||||
"format": "{:%H:%M} "
|
||||
, "format-alt": "{:%A, %B %d, %Y (%R)} "
|
||||
, "tooltip-format": "<tt><small>{calendar}</small></tt>"
|
||||
, "calendar":
|
||||
{
|
||||
"mode": "year"
|
||||
, "mode-mon-col": 3
|
||||
, "weeks-pos": "right"
|
||||
, "on-scroll": 1
|
||||
, "on-click-right": "mode"
|
||||
, "format":
|
||||
{
|
||||
"months": "<span color='#ffead3'><b>{}</b></span>"
|
||||
, "days": "<span color='#ecc6d9'><b>{}</b></span>"
|
||||
, "weeks": "<span color='#99ffdd'><b>W{}</b></span>"
|
||||
, "weekdays": "<span color='#ffcc66'><b>{}</b></span>"
|
||||
, "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
||||
}
|
||||
}
|
||||
, "actions":
|
||||
{
|
||||
"on-click-right": "mode"
|
||||
, "on-click-forward": "tz_up"
|
||||
, "on-click-backward": "tz_down"
|
||||
, "on-scroll-up": "shift_up"
|
||||
, "on-scroll-down": "shift_down"
|
||||
}
|
||||
}
|
||||
// https://wiki.hyprland.org/Useful-Utilities/Status-Bars/#window-title-is-missing
|
||||
// https://manpages.opensuse.org/Tumbleweed/waybar/waybar-hyprland-window.5.en.html
|
||||
, "hyprland/window":
|
||||
{
|
||||
"max-length": 200
|
||||
, "separate-outputs": true
|
||||
}
|
||||
// https://github.com/Alexays/Waybar/wiki/Module:-Workspaces
|
||||
// https://github.com/Alexays/Waybar/wiki/Module:-Hyprland
|
||||
, "hyprland/workspaces":
|
||||
{
|
||||
"format": "{icon}{name}"
|
||||
, "format-icons":
|
||||
{
|
||||
"default": " "
|
||||
, "active": " ."
|
||||
, "urgent": " !"
|
||||
}
|
||||
, "on-scroll-up": "hyprctl dispatch workspace e+1"
|
||||
, "on-scroll-down": "hyprctl dispatch workspace e-1"
|
||||
}
|
||||
// The idle_inhibitor module can inhibit idle behavior such as screen blanking,
|
||||
// locking, and screensaving, also known as "presentation mode".
|
||||
// https://github.com/Alexays/Waybar/wiki/Module:-Idle-Inhibitor
|
||||
, "idle_inhibitor":
|
||||
{
|
||||
"format": "{icon}"
|
||||
, "format-icons":
|
||||
{
|
||||
"activated": ""
|
||||
, "deactivated": ""
|
||||
}
|
||||
}
|
||||
// https://github.com/Alexays/Waybar/wiki/Module:-CPU
|
||||
, "cpu":
|
||||
{
|
||||
"interval": 10
|
||||
, "format": "{}% "
|
||||
, "max-length": 10
|
||||
}
|
||||
// https://github.com/Alexays/Waybar/wiki/Module:-Disk
|
||||
, "disk":
|
||||
{
|
||||
"interval": 30
|
||||
, "format": "{path}:{used}/{total} ({percentage_used}%)"
|
||||
, "path": "/"
|
||||
}
|
||||
// https://github.com/Alexays/Waybar/wiki/Module:-Memory
|
||||
, "memory":
|
||||
{
|
||||
"interval": 30
|
||||
, "format": "{used:0.1f}/{total:0.1f}G ({}%) "
|
||||
}
|
||||
// https://github.com/Alexays/Waybar/wiki/Module:-Network
|
||||
, "network":
|
||||
{
|
||||
//"interface" = "wlp2s0";
|
||||
"format": "{ifname}"
|
||||
, "format-wifi": "{essid} ({signalStrength}%) "
|
||||
, "format-ethernet": "{ipaddr}/{cidr} "
|
||||
, "format-disconnected": " " // An empty format will hide the module
|
||||
, "tooltip-format": "{ifname} via {gwaddr} "
|
||||
, "tooltip-format-wifi": "{essid} ({signalStrength}%) "
|
||||
, "tooltip-format-ethernet": "{ifname} "
|
||||
, "tooltip-format-disconnected": "Disconnected"
|
||||
, "max-length": 50
|
||||
, "on-click": "nm-applet"
|
||||
}
|
||||
// https://github.com/Alexays/Waybar/wiki/Module:-PulseAudio
|
||||
, "pulseaudio":
|
||||
{
|
||||
"format": "{volume}% {icon}"
|
||||
, "format-bluetooth": "{volume}% {icon}"
|
||||
, "format-muted": ""
|
||||
, "format-icons":
|
||||
{
|
||||
"headphone": ""
|
||||
, "hands-free": ""
|
||||
, "headset": ""
|
||||
, "phone": ""
|
||||
, "portable": ""
|
||||
, "car": ""
|
||||
, "default": ["", ""]
|
||||
}
|
||||
, "scroll-step": 1
|
||||
, "on-click": "pavucontrol"
|
||||
, "ignored-sinks": ["Easy Effects Sink"]
|
||||
}
|
||||
// https://github.com/Alexays/Waybar/wiki/Module:-Temperature
|
||||
, "temperature":
|
||||
{
|
||||
// "thermal-zone": 2
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input"
|
||||
// "critical-threshold": 80
|
||||
// "format-critical": "{temperatureC}°C "
|
||||
"format": "{temperatureC}°C "
|
||||
}
|
||||
}
|
||||
127
obsolete/dots/waybar/style.css
Normal file
127
obsolete/dots/waybar/style.css
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
https://gist.github.com/genofire/07234e810fcd16f9077710d4303f9a9e
|
||||
*/
|
||||
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: "monospace";
|
||||
font-size: 9px;
|
||||
min-height: 0;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
color: rgba(255, 0, 200, 1);
|
||||
}
|
||||
|
||||
window {
|
||||
color: #e4e4e4;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
workspaces {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
workspaces button {
|
||||
padding: 0 2px;
|
||||
margin: 0px;
|
||||
background: transparent;
|
||||
color: #ff8700;
|
||||
/*
|
||||
color: #00afd7;
|
||||
color: #ffffff;
|
||||
border: 1px solid #00afd7;
|
||||
*/
|
||||
border: 1px solid #1b1d1e;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
workspaces button:hover {
|
||||
box-shadow: inherit;
|
||||
text-shadow: inherit;
|
||||
}
|
||||
|
||||
workspaces button.focused {
|
||||
background: #e88939;
|
||||
background: #00afd7;
|
||||
color: #1b1d1e;
|
||||
}
|
||||
|
||||
workspaces button.urgent {
|
||||
background: #af005f;
|
||||
color: #1b1d1e;
|
||||
}
|
||||
|
||||
mode {
|
||||
background: #af005f;
|
||||
color: #1b1d1e;
|
||||
}
|
||||
|
||||
clock, #battery, #clock, #cpu, #disk, #idle_inhibitor, #memory, #network, #pulseaudio, #temperature {
|
||||
padding: 0 3px;
|
||||
margin: 0 2px;
|
||||
}
|
||||
|
||||
clock {
|
||||
}
|
||||
|
||||
battery {
|
||||
}
|
||||
|
||||
battery icon {
|
||||
color: red;
|
||||
}
|
||||
|
||||
battery.charging {
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #af005f;
|
||||
}
|
||||
}
|
||||
|
||||
battery.warning:not(.charging) {
|
||||
background-color: #ff8700;
|
||||
color: #1b1d1e;
|
||||
}
|
||||
|
||||
battery.critical:not(.charging) {
|
||||
color: white;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
cpu {
|
||||
}
|
||||
|
||||
memory {
|
||||
}
|
||||
|
||||
network {
|
||||
}
|
||||
|
||||
network.disconnected {
|
||||
background: #f53c3c;
|
||||
}
|
||||
|
||||
pulseaudio {
|
||||
}
|
||||
|
||||
pulseaudio.muted {
|
||||
}
|
||||
|
||||
custom-spotify {
|
||||
color: rgb(102, 220, 105);
|
||||
}
|
||||
|
||||
tray {
|
||||
}
|
||||
|
||||
263
obsolete/scripts/99_deploy.wHyprland.sh
Normal file
263
obsolete/scripts/99_deploy.wHyprland.sh
Normal file
@@ -0,0 +1,263 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# klevstul
|
||||
|
||||
echo "<< 99_deploy.sh >>"
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "error: run as 'root'"
|
||||
exit
|
||||
fi
|
||||
|
||||
this_file_name=`basename "$0"`
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "usage: '$this_file_name {all}'"
|
||||
exit 1
|
||||
fi
|
||||
operation=$1
|
||||
|
||||
options_url=https://git.mz.fo/fro/lnx-arch/raw/branch/master/dots/archinstall/${HOSTNAME}/options.sh
|
||||
options_trg=/tmp/options.sh
|
||||
rm -rf ${options_trg}
|
||||
rm -rf ${options_trg}.tmp
|
||||
wget -q ${options_url} -O ${options_trg}
|
||||
source ${options_trg}
|
||||
if [ -z "${OPTIONS_LOADED}" ]; then
|
||||
echo "error: unable to load options"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
user=${USER}
|
||||
clone_trg=${CLONE_TARGET_DIR}
|
||||
|
||||
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||
|
||||
# helper functions
|
||||
download_repo() {
|
||||
|
||||
_targz_url=$1
|
||||
|
||||
# make clone target directory, if it doesn't exist
|
||||
mkdir -p ${clone_trg}
|
||||
|
||||
# instead of doing a git clone (like `git clone ${clone_url} ${clone_trg}`),
|
||||
# where i would have emptied the target dir each time, i download the
|
||||
# source as a tar.gz.
|
||||
wget --show-progress ${_targz_url} -O ${clone_trg}/tmp.tar.gz
|
||||
tar -xzf ${clone_trg}/tmp.tar.gz -C ${clone_trg}
|
||||
rm ${clone_trg}/tmp.tar.gz
|
||||
|
||||
}
|
||||
|
||||
create_dir() {
|
||||
_directory=$1
|
||||
|
||||
mkdir -p ${_directory}
|
||||
chown ${user}:${user} ${_directory}
|
||||
}
|
||||
|
||||
deploy_file() {
|
||||
_src_path=$1
|
||||
_trg_path=$2
|
||||
_no_chown=$3
|
||||
|
||||
file_name=$(basename ${_trg_path})
|
||||
echo ""
|
||||
echo "${file_name}:"
|
||||
|
||||
cp -f ${_src_path} ${_trg_path}
|
||||
|
||||
# only chown if _no_chown variable is empty
|
||||
if [ -z "${_no_chown}" ]; then
|
||||
# if the target path ends with a slash, we have a directory
|
||||
if [[ "$_trg_path" == */ ]]
|
||||
then
|
||||
echo "(ignore potential \"chown: cannot access\" error, which will occur if there are no dot-files in the directory)"
|
||||
chown ${user}:${user} ${_trg_path}*
|
||||
# https://serverfault.com/questions/156437/how-to-chown-a-directory-recursively-including-hidden-files-or-directories
|
||||
chown ${user}:${user} ${_trg_path}.[^.]*
|
||||
else
|
||||
chown ${user}:${user} ${_trg_path}
|
||||
fi
|
||||
fi
|
||||
|
||||
suffix=".sh"
|
||||
if [[ ${file_name} == *$suffix ]] ; then
|
||||
chmod 755 ${_trg_path}/*.sh
|
||||
elif [[ ${file_name} == "bin" ]] ; then
|
||||
chmod 755 ${_trg_path}/*
|
||||
fi
|
||||
|
||||
ls -al ${_trg_path}
|
||||
}
|
||||
|
||||
# locate profile folder
|
||||
firefox_profile_dir() {
|
||||
ffdir=/home/${user}/.mozilla/firefox/
|
||||
|
||||
if ! [ -d "$ffdir" ]
|
||||
then
|
||||
echo "error: firefox main directory not found: '${ffdir}'"
|
||||
else
|
||||
pattern=".default-release"
|
||||
old_dir=`pwd`
|
||||
cd ${ffdir}
|
||||
for _dir in *"${pattern}"*; do
|
||||
[ -d "${_dir}" ] && dir="${_dir}" && break
|
||||
done
|
||||
cd ${old_dir}
|
||||
|
||||
if [ -z "$dir" ]
|
||||
then
|
||||
echo "error: firefox profile directory not found"
|
||||
else
|
||||
ffprofiledir=${ffdir}${dir}
|
||||
echo "${ffprofiledir}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||
|
||||
# dots (dot files)
|
||||
if [ ${operation} == "dots" ] ; then
|
||||
|
||||
# declarations
|
||||
targz_dots_url=https://git.mz.fo/fro/lnx-arch/archive/master.tar.gz
|
||||
dots_trg=${clone_trg}/lnx-arch/dots
|
||||
|
||||
echo "***** ${operation} *****"
|
||||
rm -rf ${clone_trg}/lnx-arch
|
||||
download_repo ${targz_dots_url}
|
||||
tree ${clone_trg}/lnx-arch
|
||||
|
||||
# ----------
|
||||
# system
|
||||
# ----------
|
||||
|
||||
# bashrc
|
||||
file_name=.bashrc
|
||||
file_path=/home/${user}
|
||||
deploy_file "${dots_trg}/bash/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
# bin (executable binaries, scripts)
|
||||
file_path=/usr/local/bin
|
||||
deploy_file "${dots_trg}/bin/*" "${file_path}/"
|
||||
|
||||
# environment
|
||||
file_name=environment
|
||||
file_path=/etc
|
||||
deploy_file "${dots_trg}/environment/${file_name}" "${file_path}/${file_name}" no_chown
|
||||
|
||||
# ----------
|
||||
# programs
|
||||
# ----------
|
||||
|
||||
# firefox
|
||||
file_name=policies.json
|
||||
file_path=/usr/lib/firefox/distribution
|
||||
deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}" no_chown
|
||||
|
||||
ffpd=$(firefox_profile_dir)
|
||||
if [[ ${ffpd} == error* ]] ; then
|
||||
echo ${ffpd}
|
||||
else
|
||||
file_name=user.js
|
||||
file_path=${ffpd}
|
||||
deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
file_name=userChrome.css
|
||||
file_path=${ffpd}/chrome
|
||||
mkdir -p ${file_path}
|
||||
deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}"
|
||||
fi
|
||||
|
||||
# hyprland
|
||||
if [ ${HYPRLAND} == "true" ] ; then
|
||||
|
||||
# hypridle
|
||||
file_name=hypridle.conf
|
||||
file_path=/home/${user}/.config/hypr
|
||||
deploy_file ${dots_trg}/hypridle/${file_name} ${file_path}/${file_name}
|
||||
|
||||
# hyprland
|
||||
file_name=hyprland.conf
|
||||
file_path=/home/${user}/.config/hypr
|
||||
deploy_file ${dots_trg}/hyprland/${file_name} ${file_path}/${file_name}
|
||||
|
||||
# hyprlock
|
||||
file_name=hyprlock.conf
|
||||
file_path=/home/${user}/.config/hypr
|
||||
deploy_file ${dots_trg}/hyprlock/${file_name} ${file_path}/${file_name}
|
||||
|
||||
# hyprpaper
|
||||
file_name=hyprpaper.conf
|
||||
file_path=/home/${user}/.config/hypr
|
||||
deploy_file ${dots_trg}/hyprpaper/${file_name} ${file_path}/${file_name}
|
||||
|
||||
# waybar
|
||||
file_path=/home/${user}/.config/waybar
|
||||
mkdir -p ${file_path}
|
||||
deploy_file "${dots_trg}/waybar/*" "${file_path}/"
|
||||
|
||||
fi
|
||||
|
||||
# qtile
|
||||
if [ ${QTILE} == "true" ] ; then
|
||||
|
||||
# qtile
|
||||
file_name=config.py
|
||||
file_path=/home/${user}/.config/qtile
|
||||
mkdir -p ${file_path}
|
||||
deploy_file "${dots_trg}/qtile/${file_name}" "${file_path}/"
|
||||
|
||||
fi
|
||||
|
||||
# i3wm
|
||||
if [ ${I3WM} == "true" ] ; then
|
||||
|
||||
# i3
|
||||
file_name=config
|
||||
file_path=/home/${user}/.config/i3
|
||||
mkdir -p ${file_path}
|
||||
deploy_file "${dots_trg}/i3wm/${file_name}" "${file_path}/"
|
||||
|
||||
fi
|
||||
|
||||
if [ ${I3WM} == "true" ] || [ ${QTILE} == "true" ] ; then
|
||||
|
||||
# xorg
|
||||
file_path=/home/${user}
|
||||
deploy_file "${dots_trg}/xorg/.*" "${file_path}/"
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# dots+ (wallpapers, fonts ++)
|
||||
if [ ${operation} == "dots+" ] ; then
|
||||
|
||||
# declarations
|
||||
targz_dotsplus_url=https://gitlab.com/pqq/dotsplus/-/archive/main/dotsplus-main.tar.gz
|
||||
dotsplus_trg=${clone_trg}/dotsplus-main
|
||||
|
||||
echo "***** ${operation} *****"
|
||||
rm -rf ${dotsplus_trg}
|
||||
download_repo ${targz_dotsplus_url}
|
||||
tree ${clone_trg}
|
||||
|
||||
# ----------
|
||||
# fonts
|
||||
# ----------
|
||||
file_path=/home/${user}/.local/share/fonts
|
||||
mkdir -p ${file_path}
|
||||
deploy_file "${dotsplus_trg}/fonts/install/*" "${file_path}/"
|
||||
|
||||
# ----------
|
||||
# wallpapers
|
||||
# ----------
|
||||
file_path=/home/${user}/.local/share/wp
|
||||
mkdir -p ${file_path}
|
||||
deploy_file "${dotsplus_trg}/wallpapers/install/*" "${file_path}/"
|
||||
|
||||
fi
|
||||
Reference in New Issue
Block a user