Skip to content

Commit

Permalink
Install gnome
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed Jun 24, 2023
1 parent 8659fe4 commit 668d94f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 20 deletions.
12 changes: 4 additions & 8 deletions bin/x
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,17 @@ if [[ "$1" = "-b" ]]; then

# fcitx
fcitx -rd && im-config -n fcitx
set -e

# plasma session
plasma_session &>/dev/null &
# start session
nohup gnome-session &>>/tmp/gnome-session.log &

# reload awesome
until [ -n "$(pgrep kdeinit5)" ]; do
until [ -n "$(pgrep gnome)" ]; do
sleep 1
done
sleep 1
awesome-client 'awesome.restart()' || echo

# kill plasma shell
pgrep plasmashell || exit
pkill plasmashell && exit
exit
fi

DISPLAYS=("" $(xrandr | grep connected | awk '{print $1}'))
Expand Down
5 changes: 0 additions & 5 deletions dotfiles/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ alias code='code -n'
alias cpufreq='sudo cpupower frequency-set -d'
alias datev='date +%Y%m%d%H%M%S'
alias digs='dig +noall +answer'
alias docker='sudo podman'
alias ffunix='vi -c ":set ff=unix" -c ":wq"'
alias fish='fish -P'
alias gl='git log --pretty=format:"%Cblue%<(22,trunc)%cd %Cgreen%h%Creset %s %Cred@%an" --date=iso8601'
Expand All @@ -50,10 +49,6 @@ alias isp='curl -s http://ip-api.com/json | jq'
alias jdump='bash -c "set -x; jmap -dump:format=b,file=\$0.dump \$0"'
alias jqi='bash -c "cat <<< \$(jq \$0 \$1) > \$1"'
alias jurl='curl -s -H Content-type:application/json'
alias kcm-mouse='kcmshell5 mouse'
alias kcm-network='kcmshell5 kcm_networkmanagement'
alias kcm-touchpad='kcmshell5 touchpad'
alias kde-settings='systemsettings5'
alias la='ls -A'
alias lh='ls -lh'
alias ll='ls -l'
Expand Down
1 change: 1 addition & 0 deletions etc/apt/sources.list.d/devicemanager.list
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deb https://pro-driver-packages.uniontech.com eagle non-free
7 changes: 6 additions & 1 deletion install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@

tasks:
- name: create user
user: name={{user}} state=present group=root shell=/bin/bash
user:
name: "{{user}}"
groups:
- root
- video
shell: /bin/bash

- name: change file mode of this repo
file:
Expand Down
4 changes: 1 addition & 3 deletions roles/brook/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@

- name: start brook
shell: >-
podman run
-d --replace
docker run -d
--name brook
--restart always
--network host
--dns 1.2.4.8
--dns 8.8.4.4
--dns 8.8.8.8
--log-driver k8s-file
--log-opt max-file=10
--log-opt max-size=100m
--entrypoint /bin/sh
Expand Down
4 changes: 1 addition & 3 deletions roles/socks/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
- name: start container
shell: >-
podman run
-d --replace
docker run -d
--name socks
--restart always
--network host
--dns 223.5.5.5
--dns 223.6.6.6
--dns 8.8.8.8
--dns 8.8.4.4
--log-driver k8s-file
--log-opt max-file=10
--log-opt max-size=100m
-v {{role_path}}/files:/opt/proxy
Expand Down
6 changes: 6 additions & 0 deletions tasks/desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@

- name: install chrome
apt: deb=https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

- name: install gnome
apt:
name:
- gnome-session
- nautilus

0 comments on commit 668d94f

Please sign in to comment.