WiFi driver installation + emacs installation autmated now
This commit is contained in:
parent
60e0c650e1
commit
6cc86f8ea2
188
.config/i3/config-pc
Normal file
188
.config/i3/config-pc
Normal file
@ -0,0 +1,188 @@
|
||||
# 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 https://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
set $mod Mod4
|
||||
set $terminal kitty
|
||||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
font pango:monospace 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
|
||||
|
||||
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
||||
# they are included here as an example. Modify as you see fit.
|
||||
|
||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||
# screen before suspend. Use loginctl lock-session to lock your screen.
|
||||
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||
|
||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
||||
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||
exec --no-startup-id nm-applet
|
||||
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec $terminal
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+d exec --no-startup-id rofi -show run
|
||||
bindsym $mod+Shift+d exec --no-startup-id rofi-theme-selector
|
||||
|
||||
# change focus
|
||||
bindsym $mod+j focus left
|
||||
bindsym $mod+k focus down
|
||||
bindsym $mod+l focus up
|
||||
bindsym $mod+odiaeresis 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+odiaeresis 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
|
||||
|
||||
# focus the child container
|
||||
#bindsym $mod+d focus child
|
||||
|
||||
# Define names for default workspaces for which we configure key bindings later on.
|
||||
# We use variables to avoid repeating the names in multiple places.
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# 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 --no-startup-id i3 exit
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# bindings for the arrow keys
|
||||
bindsym Left resize shrink width 3 px or 3 ppt
|
||||
bindsym Down resize grow height 3 px or 3 ppt
|
||||
bindsym Up resize shrink height 3 px or 3 ppt
|
||||
bindsym Right resize grow width 3 px or 3 ppt
|
||||
|
||||
# back to normal: Enter or Escape or $mod+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+r mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
# bar {
|
||||
# status_command i3status
|
||||
# }
|
||||
|
||||
|
||||
|
||||
# i3gaps
|
||||
gaps outer 4
|
||||
gaps inner 8
|
||||
#for_window [class="^.*"] border pixel 3
|
||||
|
||||
# titlebar-border-color | titlebar-color | window-border-color |
|
||||
# titlebar-text-color | border-indicator-color
|
||||
client.focused #00ffa1 #00ffa1 #333333 #00ffa1 #00ffa1
|
||||
|
||||
# titlebar-border-color | window-border-color | titlebar-text-color
|
||||
client.unfocused #555555 #555555 #ffffff
|
||||
|
||||
# STARTUPS
|
||||
exec picom
|
||||
exec polybar top-left
|
||||
exec polybar top-right
|
||||
|
160
.config/polybar/config-pc
Normal file
160
.config/polybar/config-pc
Normal file
@ -0,0 +1,160 @@
|
||||
[colors]
|
||||
background = #222
|
||||
foreground = #eee
|
||||
linecolor = #fba922
|
||||
bordercolor = #333
|
||||
accent = #e60053
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
|
||||
[global/wm]
|
||||
margin-top = 0
|
||||
margin-bottom = 0
|
||||
|
||||
[bar/top-left]
|
||||
enable-ipc = true
|
||||
monitor = HDMI-1
|
||||
width = 100%
|
||||
height = 24
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-color = ${colors.linecolor}
|
||||
underline-size = 1
|
||||
overline-size = 2
|
||||
|
||||
border-bottom-size = 2
|
||||
border-bottom-color = ${colors.bordercolor}
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 2
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
|
||||
font-0 = dina:pixelsize=9;1
|
||||
font-1 = siji:pixelsize=10;1
|
||||
font-2 = unifont:size=6;1
|
||||
|
||||
modules-left = i3
|
||||
modules-right = volume memory cpu date
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 4
|
||||
tray-maxsize = 16
|
||||
|
||||
[bar/top-right]
|
||||
enable-ipc = true
|
||||
monitor = DP-1
|
||||
width = 100%
|
||||
height = 24
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-color = ${colors.linecolor}
|
||||
underline-size = 1
|
||||
overline-size = 2
|
||||
|
||||
border-bottom-size = 2
|
||||
border-bottom-color = ${colors.bordercolor}
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 2
|
||||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
|
||||
font-0 = dina:pixelsize=9;1
|
||||
font-1 = siji:pixelsize=10;1
|
||||
font-2 = unifont:size=6;1
|
||||
|
||||
modules-left = i3
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 4
|
||||
tray-maxsize = 16
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
index-sort = true
|
||||
pin-workspaces = true
|
||||
wrapping-scroll = true
|
||||
|
||||
format = <label-state> <label-mode>
|
||||
|
||||
label-mode = %mode%
|
||||
label-mode-padding = 2
|
||||
label-mode-background = ${colors.accent}
|
||||
|
||||
label-focused = %index%
|
||||
label-focused-foreground = #cccccc
|
||||
label-focused-underline = #cccccc
|
||||
label-focused-padding = 3
|
||||
|
||||
label-unfocused = %index%
|
||||
label-unfocused-padding = 3
|
||||
|
||||
label-urgent = %index%!
|
||||
label-urgent-background = #00ffa1
|
||||
label-urgent-padding = 3
|
||||
|
||||
label-visible = %index%
|
||||
label-visible-padding = 3
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
label = %percentage%%
|
||||
format-prefix = "CPU "
|
||||
format-prefix-foreground = #666
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
label = %percentage_used%%
|
||||
format-prefix = "RAM "
|
||||
format-prefix-foreground = #666
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
label = %{F#666}TIME%{F-} %time% - %date%
|
||||
label-prefix = "TIME"
|
||||
date = %d.%m.%Y
|
||||
time = %H:%M
|
||||
interval = 5
|
||||
|
||||
[module/volume]
|
||||
type = internal/pulseaudio
|
||||
speaker-mixer = Speaker
|
||||
headphone-mixer = Headphone
|
||||
headphone-id = 9
|
||||
|
||||
format-volume = <label-volume>
|
||||
format-volume-prefix = "AUDIO "
|
||||
format-volume-prefix-foreground = #666
|
||||
label-volume = %percentage%%
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
format-muted-foreground = #777
|
||||
label-muted = AUDIO MUTED
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
full-at = 99
|
||||
time-format = %H:%M
|
||||
|
||||
format-charging = <label-charging>
|
||||
format-charging-prefix = "CHR "
|
||||
format-charging-prefix-foreground = #666
|
||||
label-charging = %percentage%% - %time%
|
||||
|
||||
format-discharging = <label-discharging>
|
||||
format-discharging-prefix = "BAT "
|
||||
format-discharging-prefix-foreground = #666
|
||||
label-discharging = %percentage%% - %time%
|
||||
|
||||
format-full = <label-full>
|
||||
format-full-prefix = "FLL "
|
||||
format-full-prefix-foreground = #666
|
||||
|
8
scripts/doom-emacs-setup.sh
Normal file
8
scripts/doom-emacs-setup.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# install emacs
|
||||
sudo pacman -S emacs
|
||||
|
||||
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
|
||||
~/.emacs.d/bin/doom install
|
||||
|
@ -14,7 +14,7 @@ sudo pacman -S python --noconfirm
|
||||
sudo pacman -S kitty i3-gaps picom polybar nitrogen --noconfirm
|
||||
|
||||
# full system upgrade
|
||||
sudo pacman -Syu
|
||||
sudo pacman -Syu --noconfirm
|
||||
|
||||
mkdir ~/.config/kitty ~/.config/i3 ~/.config/picom ~/.config/polybar
|
||||
|
||||
@ -24,3 +24,5 @@ cp ../.config/picom/picom.conf ~/.config/picom/picom.conf
|
||||
cp ../.config/polybar/config-laptop ~/.config/polybar/config
|
||||
|
||||
cp ../.bashrc ~/.bashrc
|
||||
|
||||
sh setup-doom-emacs.sh
|
||||
|
35
scripts/setup-pc.sh
Normal file
35
scripts/setup-pc.sh
Normal file
@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
|
||||
# install curl
|
||||
sudo pacman -S curl --noconfirm
|
||||
|
||||
sh update-pacman-mirrors.sh
|
||||
sh vim-setup.sh
|
||||
sh git-setup.sh
|
||||
|
||||
# install python as a dependency for kitty
|
||||
sudo pacman -S python --noconfirm
|
||||
|
||||
# install kitty, i3-gaps, picom, polybar and nitrogen
|
||||
sudo pacman -S kitty i3-gaps picom polybar nitrogen --noconfirm
|
||||
|
||||
# full system upgrade
|
||||
sudo pacman -Syu --noconfirm
|
||||
|
||||
mkdir ~/.config/kitty ~/.config/i3 ~/.config/picom ~/.config/polybar
|
||||
|
||||
cp ../.config/kitty/kitty.conf ~/.config/kitty/kitty.conf
|
||||
cp ../.config/i3/config-pc ~/.config/i3/config
|
||||
cp ../.config/picom/picom.conf ~/.config/picom/picom.conf
|
||||
cp ../.config/polybar/config-pc ~/.config/polybar/config
|
||||
|
||||
cp ../.bashrc ~/.bashrc
|
||||
|
||||
sh setup-doom-emacs.sh
|
||||
|
||||
# install rtl8821ce WiFi driver
|
||||
cd ~/Downloads
|
||||
git clone git clone https://github.com/tomaspinho/rtl8821ce
|
||||
cd rtl8821ce
|
||||
makepkg -si --noconfirm
|
||||
|
Loading…
x
Reference in New Issue
Block a user