-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Gao
authored and
David Gao
committed
Jan 17, 2023
1 parent
05e3468
commit a1d643a
Showing
8 changed files
with
399 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
Xcursor.size:24 | ||
|
||
Xft.antialias: true | ||
Xft.hinting: true | ||
Xft.rgba: rgb | ||
Xft.autohint: true | ||
Xft.hintstyle: hintfull | ||
Xft.lcdfilter: lcdfilter | ||
|
||
|
||
XTerm.termName: xterm-256color | ||
Xterm*loginShell: true | ||
XTerm*locale: false | ||
XTerm*utf8: true | ||
XTerm*faceName: xft:Source Code Pro:antialias=true | ||
XTerm*faceNameDoublesize: xft:WenQuanYi Zen Hei Mono:antialias=true | ||
XTerm*faceSize: 8 | ||
XTerm*saveLines: 4096 | ||
XTerm*selectToClipboard: true | ||
XTerm*rightScrollBar: true | ||
XTerm*scrollBarBorder: 4 | ||
XTerm*metaSendsEscape: true | ||
|
||
#define S_base03 #002b36 | ||
#define S_base02 #073642 | ||
#define S_base01 #586e75 | ||
#define S_base00 #657b83 | ||
#define S_base0 #839496 | ||
#define S_base1 #93a1a1 | ||
#define S_base2 #eee8d5 | ||
#define S_base3 #fdf6e3 | ||
|
||
*background: S_base3 | ||
*foreground: S_base00 | ||
*fadeColor: S_base3 | ||
*cursorColor: S_base01 | ||
*pointerColorBackground:S_base1 | ||
*pointerColorForeground:S_base01 | ||
|
||
#define S_yellow #b58900 | ||
#define S_orange #cb4b16 | ||
#define S_red #dc322f | ||
#define S_magenta #d33682 | ||
#define S_violet #6c71c4 | ||
#define S_blue #268bd2 | ||
#define S_cyan #2aa198 | ||
#define S_green #859900 | ||
|
||
!! black dark/light | ||
*color0: S_base02 | ||
*color8: S_base03 | ||
! | ||
!!! red dark/light | ||
*color1: S_red | ||
*color9: S_orange | ||
! | ||
!!! green dark/light | ||
*color2: S_green | ||
*color10: S_base01 | ||
! | ||
!!! yellow dark/light | ||
*color3: S_yellow | ||
*color11: S_base00 | ||
! | ||
!!! blue dark/light | ||
*color4: S_blue | ||
*color12: S_base0 | ||
! | ||
!!! magenta dark/light | ||
*color5: S_magenta | ||
*color13: S_violet | ||
! | ||
!!! cyan dark/light | ||
*color6: S_cyan | ||
*color14: S_base1 | ||
! | ||
!!! white dark/light | ||
*color7: S_base2 | ||
*color15: S_base3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
set $mod Mod4 | ||
|
||
set $up k | ||
set $right l | ||
set $down j | ||
set $left h | ||
|
||
set $w1 1 | ||
set $w2 2 | ||
set $w3 3 | ||
set $w4 4 | ||
set $w5 5 | ||
set $w6 6 | ||
set $w7 7 | ||
set $w8 8 | ||
set $w9 9 | ||
set $w10 10 | ||
|
||
# Colors | ||
set $active #e500af | ||
set $inactive #181818 | ||
|
||
# Font for window titles. Will also be used by the bar unless a different font | ||
# is used in the bar {} block below. | ||
font pango:Hack Nerd Font bold 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:Hack 10 | ||
|
||
# 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+Return exec xterm | ||
|
||
# kill focused window | ||
bindsym $mod+Shift+q kill | ||
|
||
# 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+$left focus left | ||
bindsym $mod+$down focus down | ||
bindsym $mod+$up focus up | ||
bindsym $mod+$right 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+$left move left | ||
bindsym $mod+Shift+$down move down | ||
bindsym $mod+Shift+$up move up | ||
bindsym $mod+Shift+$right 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+c 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+d layout toggle split | ||
|
||
# toggle tiling / floating | ||
bindsym $mod+Shift+x floating toggle | ||
|
||
# change focus between tiling / floating windows | ||
bindsym $mod+x focus mode_toggle | ||
|
||
# focus the parent container | ||
# bindsym $mod+a focus parent | ||
|
||
# focus the child container | ||
# bindsym $mod+Shift+a focus child | ||
|
||
# switch to workspace | ||
bindsym $mod+1 workspace $w1 | ||
bindsym $mod+2 workspace $w2 | ||
bindsym $mod+3 workspace $w3 | ||
bindsym $mod+4 workspace $w4 | ||
bindsym $mod+5 workspace $w5 | ||
bindsym $mod+6 workspace $w6 | ||
bindsym $mod+7 workspace $w7 | ||
bindsym $mod+8 workspace $w8 | ||
bindsym $mod+9 workspace $w9 | ||
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 $w3 | ||
bindsym $mod+Shift+4 move container to workspace $w4 | ||
bindsym $mod+Shift+5 move container to workspace $w5 | ||
bindsym $mod+Shift+6 move container to workspace $w6 | ||
bindsym $mod+Shift+7 move container to workspace $w7 | ||
bindsym $mod+Shift+8 move container to workspace $w8 | ||
bindsym $mod+Shift+9 move container to workspace $w9 | ||
bindsym $mod+Shift+0 move container to workspace $w10 | ||
|
||
# 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'" | ||
|
||
# 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 $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 | ||
|
||
|
||
bindsym Shift+$left resize shrink width 50 px or 10 ppt | ||
bindsym Shift+$down resize grow height 50 px or 10 ppt | ||
bindsym Shift+$up resize shrink height 50 px or 10 ppt | ||
bindsym Shift+$right resize grow width 50 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" | ||
|
||
|
||
## Style | ||
# border color | ||
# class border backgr. text | ||
client.focused $active $active $inactive $active | ||
client.unfocused $inactive $inactive $active $inactive | ||
client.focused_inactive $inactive $inactive #4f97d7 $inactive | ||
client.urgent $inactive $inactive #4f97d7 $inactive | ||
|
||
new_window pixel 1 | ||
default_border pixel 1 | ||
|
||
# Disable title bar | ||
|
||
# Polybar | ||
# exec_always --no-startup-id ~/.config/polybar/launch.sh | ||
|
||
# Audio | ||
bindsym XF86AudioRaiseVolume exec "amixer -D pulse set Master 5%+" | ||
bindsym XF86AudioLowerVolume exec "amixer -D pulse set Master 5%-" | ||
bindsym XF86AudioMute exec "amixer -D pulse set Master 1+ toggle" | ||
|
||
# Screenshots | ||
#bindsym --release Print exec --no-startup-id gnome-screenshot -f "$HOME/Pictures/$(date +%F_%H-%M-%S).png" | ||
bindsym $mod+Print --release exec --no-startup-id i3-scrot -w | ||
bindsym Ctrl+Print --release exec --no-startup-id i3-scrot -wc | ||
bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s | ||
bindsym Ctrl+Shift+Print --release exec --no-startup-id i3-scrot -sc | ||
|
||
# Screen brightness | ||
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 20 | ||
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 20 | ||
|
||
# no mouse follow | ||
focus_follows_mouse no | ||
|
||
# Background | ||
#exec --no-startup-id feh --bg-scale ~/Pictures/wallpaper.png | ||
|
||
# Picom | ||
exec --no-startup-id picom --experimental-backends -f | ||
|
||
# Gaps | ||
#smart_gaps on | ||
#smart_borders on | ||
gaps inner 10 | ||
gaps outer 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
[colors] | ||
background = #060608 | ||
background-alt = #121312 | ||
foreground = #FCEDF7 | ||
primary = #FCEDF7 | ||
secondary = #ff0055 | ||
alert = #7A0000 | ||
disabled = #F9E5F2 | ||
|
||
[bar/mybar] | ||
width = 1000% | ||
height = 30 | ||
radius = 8 | ||
|
||
background = ${colors.background} | ||
foreground = ${colors.foreground} | ||
|
||
line-size = 1pt | ||
|
||
border-size = 8 | ||
border-color = #00000000 | ||
|
||
padding-left = 0 | ||
padding-right = 1 | ||
|
||
module-margin = 1 | ||
|
||
separator = | ||
separator-foreground = ${colors.primary} | ||
|
||
font-0 = JetBrainsMono Nerd Font;3 | ||
|
||
modules-left = bspwm i3 | ||
modules-right = date | ||
|
||
cursor-click = pointer | ||
cursor-scroll = ns-resize | ||
|
||
enable-ipc = true | ||
|
||
; tray-position = right | ||
|
||
; wm-restack = generic | ||
; wm-restack = bspwm | ||
; wm-restack = i3 | ||
|
||
; override-redirect = true | ||
|
||
[module/i3] | ||
type = internal/i3 | ||
show-urgent = true | ||
format = <label-state> <label-mode> | ||
index-sort = true | ||
wrapping-scroll = false | ||
|
||
label-mode-padding = 2 | ||
label-mode-foreground = #f500af | ||
|
||
label-visible = %index% | ||
label-separator = " |" | ||
|
||
[module/bspwm] | ||
|
||
|
||
[module/date] | ||
type = internal/date | ||
interval = 1 | ||
|
||
date = %H:%M | ||
|
||
label = %date% | ||
label-foreground = ${colors.primary} | ||
|
||
[settings] | ||
screenchange-reload = true | ||
pseudo-transparency = true | ||
|
||
; vim:ft=dosini |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.