mirror of
https://github.com/Foltik/dotfiles
synced 2025-01-07 08:42:47 -05:00
Initial Commit
This commit is contained in:
commit
4e2b8a1803
233
config/compton/config
Normal file
233
config/compton/config
Normal file
@ -0,0 +1,233 @@
|
||||
# Thank you code_nomad: http://9m.no/ꪯ鵞
|
||||
|
||||
#################################
|
||||
#
|
||||
# Backend
|
||||
#
|
||||
#################################
|
||||
|
||||
# Backend to use: "xrender" or "glx".
|
||||
# GLX backend is typically much faster but depends on a sane driver.
|
||||
backend = "glx";
|
||||
|
||||
#################################
|
||||
#
|
||||
# GLX backend
|
||||
#
|
||||
#################################
|
||||
|
||||
glx-no-stencil = true;
|
||||
|
||||
# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
|
||||
# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
|
||||
# but a 20% increase when only 1/4 is.
|
||||
# My tests on nouveau show terrible slowdown.
|
||||
# Useful with --glx-swap-method, as well.
|
||||
glx-copy-from-front = false;
|
||||
|
||||
# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
|
||||
# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
|
||||
# May break VSync and is not available on some drivers.
|
||||
# Overrides --glx-copy-from-front.
|
||||
# glx-use-copysubbuffermesa = true;
|
||||
|
||||
# GLX backend: Avoid rebinding pixmap on window damage.
|
||||
# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
|
||||
# Recommended if it works.
|
||||
# glx-no-rebind-pixmap = true;
|
||||
|
||||
|
||||
# GLX backend: GLX buffer swap method we assume.
|
||||
# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
|
||||
# undefined is the slowest and the safest, and the default value.
|
||||
# copy is fastest, but may fail on some drivers,
|
||||
# 2-6 are gradually slower but safer (6 is still faster than 0).
|
||||
# Usually, double buffer means 2, triple buffer means 3.
|
||||
# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
|
||||
# Useless with --glx-use-copysubbuffermesa.
|
||||
# Partially breaks --resize-damage.
|
||||
# Defaults to undefined.
|
||||
glx-swap-method = "undefined";
|
||||
|
||||
#################################
|
||||
#
|
||||
# Shadows
|
||||
#
|
||||
#################################
|
||||
|
||||
# Enabled client-side shadows on windows.
|
||||
shadow = true;
|
||||
# Don't draw shadows on DND windows.
|
||||
no-dnd-shadow = true;
|
||||
# Avoid drawing shadows on dock/panel windows.
|
||||
no-dock-shadow = true;
|
||||
# Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows.
|
||||
clear-shadow = true;
|
||||
# The blur radius for shadows. (default 12)
|
||||
shadow-radius = 5;
|
||||
# The left offset for shadows. (default -15)
|
||||
shadow-offset-x = -5;
|
||||
# The top offset for shadows. (default -15)
|
||||
shadow-offset-y = -5;
|
||||
# The translucency for shadows. (default .75)
|
||||
shadow-opacity = 0.5;
|
||||
|
||||
# Set if you want different colour shadows
|
||||
# shadow-red = 0.0;
|
||||
# shadow-green = 0.0;
|
||||
# shadow-blue = 0.0;
|
||||
|
||||
# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
|
||||
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
|
||||
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
|
||||
shadow-exclude = [
|
||||
"! name~=''",
|
||||
"name = 'Notification'",
|
||||
"name = 'Plank'",
|
||||
"name = 'Docky'",
|
||||
"name = 'Kupfer'",
|
||||
"name = 'xfce4-notifyd'",
|
||||
"name *= 'VLC'",
|
||||
"name *= 'compton'",
|
||||
"name *= 'Chromium'",
|
||||
"name *= 'Chrome'",
|
||||
"class_g = 'Conky'",
|
||||
"class_g = 'Kupfer'",
|
||||
"class_g = 'Synapse'",
|
||||
"class_g ?= 'Notify-osd'",
|
||||
"class_g ?= 'Cairo-dock'",
|
||||
"class_g ?= 'Xfce4-notifyd'",
|
||||
"class_g ?= 'Xfce4-power-manager'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
];
|
||||
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
|
||||
shadow-ignore-shaped = false;
|
||||
|
||||
#################################
|
||||
#
|
||||
# Opacity
|
||||
#
|
||||
#################################
|
||||
|
||||
menu-opacity = 1;
|
||||
inactive-opacity = 1;
|
||||
active-opacity = 1;
|
||||
frame-opacity = 1;
|
||||
inactive-opacity-override = false;
|
||||
alpha-step = 0.06;
|
||||
|
||||
# Dim inactive windows. (0.0 - 1.0)
|
||||
# inactive-dim = 0.2;
|
||||
# Do not let dimness adjust based on window opacity.
|
||||
# inactive-dim-fixed = true;
|
||||
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
|
||||
# blur-background = true;
|
||||
# Blur background of opaque windows with transparent frames as well.
|
||||
# blur-background-frame = true;
|
||||
# Do not let blur radius adjust based on window opacity.
|
||||
blur-background-fixed = false;
|
||||
blur-background-exclude = [
|
||||
"window_type = 'dock'",
|
||||
"window_type = 'desktop'"
|
||||
];
|
||||
|
||||
#################################
|
||||
#
|
||||
# Fading
|
||||
#
|
||||
#################################
|
||||
|
||||
# Fade windows during opacity changes.
|
||||
fading = true;
|
||||
# The time between steps in a fade in milliseconds. (default 10).
|
||||
fade-delta = 4;
|
||||
# Opacity change between steps while fading in. (default 0.028).
|
||||
fade-in-step = 0.03;
|
||||
# Opacity change between steps while fading out. (default 0.03).
|
||||
fade-out-step = 0.03;
|
||||
# Fade windows in/out when opening/closing
|
||||
# no-fading-openclose = true;
|
||||
|
||||
# Specify a list of conditions of windows that should not be faded.
|
||||
fade-exclude = [ ];
|
||||
|
||||
#################################
|
||||
#
|
||||
# Other
|
||||
#
|
||||
#################################
|
||||
|
||||
# Try to detect WM windows and mark them as active.
|
||||
mark-wmwin-focused = true;
|
||||
# Mark all non-WM but override-redirect windows active (e.g. menus).
|
||||
mark-ovredir-focused = true;
|
||||
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
|
||||
# Usually more reliable but depends on a EWMH-compliant WM.
|
||||
use-ewmh-active-win = true;
|
||||
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
|
||||
detect-rounded-corners = true;
|
||||
|
||||
# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
|
||||
# This prevents opacity being ignored for some apps.
|
||||
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
|
||||
detect-client-opacity = true;
|
||||
|
||||
# Specify refresh rate of the screen.
|
||||
# If not specified or 0, compton will try detecting this with X RandR extension.
|
||||
refresh-rate = 0;
|
||||
|
||||
# Set VSync method. VSync methods currently available:
|
||||
# none: No VSync
|
||||
# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers.
|
||||
# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers.
|
||||
# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers.
|
||||
# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental.
|
||||
# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
|
||||
# (Note some VSync methods may not be enabled at compile time.)
|
||||
vsync = "opengl-swc";
|
||||
|
||||
# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
|
||||
# Reported to have no effect, though.
|
||||
dbe = false;
|
||||
# Painting on X Composite overlay window. Recommended.
|
||||
paint-on-overlay = true;
|
||||
|
||||
# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
|
||||
# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
|
||||
# unless you wish to specify a lower refresh rate than the actual value.
|
||||
sw-opti = true;
|
||||
|
||||
# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
|
||||
# Known to cause flickering when redirecting/unredirecting windows.
|
||||
# paint-on-overlay may make the flickering less obvious.
|
||||
unredir-if-possible = true;
|
||||
|
||||
# Specify a list of conditions of windows that should always be considered focused.
|
||||
focus-exclude = [ ];
|
||||
|
||||
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
|
||||
detect-transient = true;
|
||||
# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
|
||||
# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
|
||||
detect-client-leader = true;
|
||||
|
||||
#################################
|
||||
#
|
||||
# Window type settings
|
||||
#
|
||||
#################################
|
||||
|
||||
wintypes:
|
||||
{
|
||||
tooltip =
|
||||
{
|
||||
# fade: Fade the particular type of windows.
|
||||
fade = true;
|
||||
# shadow: Give those windows shadow
|
||||
shadow = false;
|
||||
# opacity: Default opacity for the type of windows.
|
||||
opacity = 0.85;
|
||||
# focus: Whether to always consider windows of this type focused.
|
||||
focus = true;
|
||||
};
|
||||
};
|
202
config/i3/laptop/config
Normal file
202
config/i3/laptop/config
Normal file
@ -0,0 +1,202 @@
|
||||
# This file has been auto-generated by i3-config-wizard(1).
|
||||
# It will not be overwritten, so edit it as you like.
|
||||
#
|
||||
# Should you change your keyboard layout some time, delete
|
||||
# this file and re-run i3-config-wizard(1).
|
||||
#
|
||||
|
||||
# i3 config file (v4)
|
||||
#
|
||||
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
set $mod Mod1
|
||||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
font pango:DejaVuSansMono Nerd Font 10
|
||||
|
||||
|
||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||
#font pango:DejaVu Sans Mono 8
|
||||
|
||||
# Before i3 v4.8, we used to recommend this one as the default:
|
||||
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
|
||||
# The font above is very space-efficient, that is, it looks good, sharp and
|
||||
# clear in small sizes. However, its unicode glyph coverage is limited, the old
|
||||
# X core fonts rendering does not support right-to-left and this being a bitmap
|
||||
# font, it doesn’t scale on retina/hidpi displays.
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+backslash exec termite
|
||||
bindsym $mod+b exec firefox
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+d exec dmenu_run
|
||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||
# installed.
|
||||
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||
|
||||
# change focus
|
||||
bindsym $mod+j focus left
|
||||
bindsym $mod+k focus down
|
||||
bindsym $mod+l focus up
|
||||
bindsym $mod+semicolon focus right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $mod+Shift+j move left
|
||||
bindsym $mod+Shift+k move down
|
||||
bindsym $mod+Shift+l move up
|
||||
bindsym $mod+Shift+semicolon move right
|
||||
|
||||
# alternatively, you can use the cursor 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
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $mod+h split h
|
||||
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
bindsym $mod+x exec i3lock-fancy
|
||||
|
||||
# focus the child container
|
||||
#bindsym $mod+d focus child
|
||||
|
||||
set $w1 1
|
||||
set $w2 2
|
||||
set $w10 10
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace $w1
|
||||
bindsym $mod+2 workspace $w2
|
||||
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 $w10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace $w1
|
||||
bindsym $mod+Shift+2 move container to workspace $w2
|
||||
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 $w10
|
||||
|
||||
assign [window_role="ncmpcpp"] $w10
|
||||
assign [class="Firefox"] $w1
|
||||
|
||||
# Borders
|
||||
new_window pixel 2
|
||||
hide_edge_borders none
|
||||
|
||||
# Gaps
|
||||
gaps inner 10
|
||||
workspace "$w1" gaps outer 0
|
||||
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+r restart
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
|
||||
# lock i3
|
||||
bindysm $mod+Shift+x exec i3lock
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# Pressing right will grow the window’s width.
|
||||
# Pressing up will shrink the window’s height.
|
||||
# Pressing down will grow the window’s height.
|
||||
bindsym j resize shrink width 10 px or 10 ppt
|
||||
bindsym k resize grow height 10 px or 10 ppt
|
||||
bindsym l resize shrink height 10 px or 10 ppt
|
||||
bindsym semicolon resize grow width 10 px or 10 ppt
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
bindsym Right resize grow width 10 px or 10 ppt
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Window Colors
|
||||
client.focused #42d4f4 #42d4f4 #ebdbb2 #42d4f4
|
||||
client.focused_inactive #420d70 #420d70 #ebdbb2 #420d70
|
||||
client.unfocused #420d70 #420d70 #ebdbb2 #420d70
|
||||
client.urgent #bf616a #bf616a #ee0000 #bf616a
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
status_command i3blocks
|
||||
}
|
||||
|
||||
# Pulse Audio controls
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
|
||||
|
||||
# Sreen brightness controls
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness
|
||||
|
||||
# Compositor
|
||||
exec compton --config ~/.config/compton/config -b
|
||||
|
||||
# Desktop Wallpaper
|
||||
exec_always /home/lain/Documents/tools/wallpaper.sh
|
||||
|
||||
# NCMPCPP
|
||||
exec termite -r ncmpcpp -e ncmpcpp -c /home/lain/.config/termite/ncmpcpp_config
|
4
config/i3/tools/wallpaper.sh
Executable file
4
config/i3/tools/wallpaper.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
idx=$(( (RANDOM % 3) + 1))
|
||||
feh --bg-scale /home/lain/Pictures/wallpaper$idx.jpg
|
12
config/systemd/system/suspend@.service
Normal file
12
config/systemd/system/suspend@.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=User Suspend Actions
|
||||
Before=sleep.target
|
||||
|
||||
[Service]
|
||||
User=%I
|
||||
Type=forking
|
||||
Environment=DISPLAY=:0
|
||||
ExecStart=/usr/bin/i3lock-fancy
|
||||
|
||||
[Install]
|
||||
WantedBy=sleep.target
|
11
config/systemd/user/locker.service
Normal file
11
config/systemd/user/locker.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Lock the screen automatically after a timeout
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=lain
|
||||
Environment=DISPLAY=:0
|
||||
ExecStart=/usr/bin/xautolock -time 1 -locker "/usr/bin/i3lock-fancy -t 'Station Locked'" -detectsleep
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
51
config/termite/ncmpcpp_config
Normal file
51
config/termite/ncmpcpp_config
Normal file
@ -0,0 +1,51 @@
|
||||
[options]
|
||||
font = DejaVuSansMono Nerd Font 16
|
||||
|
||||
[colors]
|
||||
# Base16 Atelier Lakeside
|
||||
# Author: Bram de Haan (http://atelierbramdehaan.nl)
|
||||
|
||||
foreground = #7ea2b4
|
||||
foreground_bold = #c1e4f6
|
||||
cursor = #c1e4f6
|
||||
background = rgba(22, 27, 29, 0.8)
|
||||
|
||||
# 16 color space
|
||||
|
||||
# Black, Gray, Silver, White
|
||||
color0 = #161b1d
|
||||
color8 = #5a7b8c
|
||||
color7 = #7ea2b4
|
||||
color15 = #ebf8ff
|
||||
|
||||
# Red
|
||||
color1 = #d22d72
|
||||
color9 = #d22d72
|
||||
|
||||
# Green
|
||||
color2 = #568c3b
|
||||
color10 = #568c3b
|
||||
|
||||
# Yellow
|
||||
color3 = #8a8a0f
|
||||
color11 = #8a8a0f
|
||||
|
||||
# Blue
|
||||
color4 = #257fad
|
||||
color12 = #257fad
|
||||
|
||||
# Purple
|
||||
color5 = #6b6bb8
|
||||
color13 = #6b6bb8
|
||||
|
||||
# Teal
|
||||
color6 = #2d8f6f
|
||||
color14 = #2d8f6f
|
||||
|
||||
# Extra colors
|
||||
color16 = #935c25
|
||||
color17 = #b72dd2
|
||||
color18 = #1f292e
|
||||
color19 = #516d7b
|
||||
color20 = #7195a8
|
||||
color21 = #c1e4f6
|
BIN
config/wallpapers/wallpaper1.jpg
Normal file
BIN
config/wallpapers/wallpaper1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 506 KiB |
BIN
config/wallpapers/wallpaper2.jpg
Normal file
BIN
config/wallpapers/wallpaper2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 752 KiB |
BIN
config/wallpapers/wallpaper3.jpg
Normal file
BIN
config/wallpapers/wallpaper3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 370 KiB |
127
configure.sh
Executable file
127
configure.sh
Executable file
@ -0,0 +1,127 @@
|
||||
#!/bin/zsh
|
||||
|
||||
lnh() {
|
||||
print -Pn '%B%F{green}### '
|
||||
print -n $1
|
||||
print -P ' ###%f%b'
|
||||
}
|
||||
|
||||
lnf() {
|
||||
print -Pn '%B%F{yellow}>>>%f%b '
|
||||
}
|
||||
|
||||
lnfb() {
|
||||
print -P '%B%F{blue}>>> [['
|
||||
|
||||
lnfbe() {
|
||||
print -P '%B%F{blue}<<<
|
||||
|
||||
ln() {
|
||||
Print -Pn '%B%F{yellow}>>> '
|
||||
Print -n $1
|
||||
Print -P '%f%b'
|
||||
}
|
||||
|
||||
install_i3() {
|
||||
if ! (pacman -Q i3-gaps >/dev/null 2>&1);
|
||||
then
|
||||
lnh "Installing i3-gaps from AUR..."
|
||||
yaourt -S i3-gaps --noconfirm
|
||||
fi;
|
||||
|
||||
if ! (pacman -Q i3blocks-gaps-git >/dev/null 2>&1);
|
||||
then
|
||||
lnh "Installing i3blocks-gaps-git from AUR..."
|
||||
yaourt -S i3blocks-gaps-git --noconfirm
|
||||
fi;
|
||||
|
||||
if ! (pacman -Q i3lock >/dev/null 2>&1);
|
||||
then
|
||||
lnh "Installing i3lock"
|
||||
pacman -S i3lock --noconfirm
|
||||
fi;
|
||||
|
||||
|
||||
if ! (pacman -Q i3lock-fancy-dualmonitors-git >/dev/null 2>&1);
|
||||
then
|
||||
lnh "Installing i3lock-fancy"
|
||||
yaourt -S i3lock-fancy-dualmonitors-git --noconfirm
|
||||
fi;
|
||||
|
||||
if ! (pacman -Q compton >/dev/null 2>&1);
|
||||
then
|
||||
lnh "Installing Compton..."
|
||||
pacman -S compton --noconfirm
|
||||
fi;
|
||||
|
||||
### Configuration Files
|
||||
lnh "Installing General Configuration Files"
|
||||
# i3
|
||||
lnf
|
||||
cp -v config/i3/laptop/config ~/.config/i3/config
|
||||
# Compton
|
||||
lnf
|
||||
cp -v config/compton/config ~/.config/compton/config
|
||||
# NCMPCPP config
|
||||
lnf
|
||||
cp -v config/termite/ncmpcpp_config ~/.config/termite/ncmpcpp_config
|
||||
|
||||
### Install Tools
|
||||
lnh "Installing General Tools"
|
||||
mkdir -p ~/Documents/tools
|
||||
# Wallpaper Tool
|
||||
lnf
|
||||
cp -v config/i3/tools/wallpaper.sh ~/Documents/tools/
|
||||
lnf
|
||||
cp -v config/wallpapers/wallpaper* ~/Pictures/
|
||||
|
||||
### Install Service Files
|
||||
lnh "Installing Services"
|
||||
lnf
|
||||
sudo cp -v config/systemd/system/suspend@.service /etc/systemd/system/
|
||||
lnf
|
||||
sudo cp -v config/systemd/user/locker.service /etc/systemd/user
|
||||
sudo systemctl daemon-reload
|
||||
lnh "Enabling Services"
|
||||
lnf
|
||||
sudo systemctl enable suspend@$USER.service
|
||||
lnf
|
||||
systemctl --user enable locker.service
|
||||
|
||||
echo "Select a Platform"
|
||||
platform_opt=("Desktop" "Laptop")
|
||||
select opt in "${platform_opt[@]}"
|
||||
do
|
||||
case $opt in
|
||||
"Desktop")
|
||||
break
|
||||
;;
|
||||
"Laptop")
|
||||
install_i3_laptop
|
||||
break
|
||||
;;
|
||||
*) echo "Invalid Option";;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
install_i3_laptop() {
|
||||
}
|
||||
|
||||
echo "Select a Window Manager"
|
||||
wm_opt=("Gnome" "i3")
|
||||
select opt in "${wm_opt[@]}"
|
||||
do
|
||||
case $opt in
|
||||
"Gnome")
|
||||
echo "gnome"
|
||||
break
|
||||
;;
|
||||
"i3")
|
||||
echo "i3"
|
||||
install_i3
|
||||
break
|
||||
;;
|
||||
*) echo "Invalid Option";;
|
||||
esac
|
||||
done
|
Loading…
Reference in New Issue
Block a user